You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+48-12Lines changed: 48 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,7 +138,7 @@ Object detection is used to detect, locate and estimate the occurrences probabil
138
138
|[ST Yolo LC v1](https://github.com/STMicroelectronics/stm32ai-modelzoo/blob/master/object_detection/st_yolo_lc_v1/README.md)| 192x192x3<br> 224x224x3<br> 256x256x3<br> | Full OD Services |[STM32H747I-DISCO](application_code/object_detection/STM32H7/Application/STM32H747I-DISCO) with B-CAMS-OMV camera daughter board<br> |
139
139
|[Tiny Yolo v2](https://github.com/STMicroelectronics/stm32ai-modelzoo/blob/master/object_detection/tiny_yolo_v2/README.md)| 224x224x3<br> 416x416x3<br> | Full OD Services |[STM32N6570-DK](https://www.st.com/en/development-tools/stm32n6-ai.html)<br> |
140
140
|[ST Yolo X](https://github.com/STMicroelectronics/stm32ai-modelzoo/blob/master/object_detection/st_yolo_x/README.md)| 256x256x3<br> 416x416x3<br> | Full OD Services |[STM32N6570-DK](https://www.st.com/en/development-tools/stm32n6-ai.html)<br> |
In [tutorials/notebooks](tutorials/notebooks/README.md) you will find a jupyter notebook that can be easily deployed on
461
-
Colab to exercise STM32 model zoo training scripts.
462
-
460
+
In the `tutorials/notebooks` directory, you will find a Jupyter notebook that can be easily deployed on Colab to exercise STM32 model zoo training scripts.
463
461
464
462
> [!IMPORTANT]
465
-
> In this project, we are using **TensorFLow version 2.8.3** following unresolved issues with newest versions of TensorFlow, see [more](https://github.com/tensorflow/tensorflow/issues/56242).
463
+
> In this project, we are using TensorFlow version 2.8.3 due to unresolved issues with newer versions of TensorFlow. For more details, see [this issue](https://github.com/tensorflow/tensorflow/issues/56242).
466
464
467
-
>[!CAUTION]
468
-
> If there are some white spaces in the paths (for Python, STM32CubeIDE, or, STM32Cube.AI local installation) this can result in errors. So avoid having paths with white spaces in them.
465
+
>[!CAUTION]
466
+
> If there are any white spaces in the paths (for Python, STM32CubeIDE, or STM32Cube.AI local installation), this can result in errors. Avoid having paths with white spaces.
469
467
470
-
>[!TIP]
471
-
> In this project we are using the `mlflow` library to log the results of different runs. Depending on which version of Windows OS are you using or where you place the project the output log files might have a very long path which might result in an error at the time of logging the results. As by default, Windows uses a path length limitation (MAX_PATH) of 256 characters: Naming Files, Paths, and Namespaces. To avoid this potential error, create (or edit) a variable named `LongPathsEnabled` in **Registry Editor** under **Computer/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/FileSystem/** and assign it a value of `1`. This will change the maximum length allowed for the file length on Windows machines and will avoid any errors resulting due to this. For more details have a look at this [link](https://knowledge.autodesk.com/support/autocad/learn-explore/caas/sfdcarticles/sfdcarticles/The-Windows-10-default-path-length-limitation-MAX-PATH-is-256-characters.html). Note that using GIT, line below may help solving long path issue :
472
-
```bash
473
-
git config --system core.longpaths true
474
-
```
468
+
> [!TIP]
469
+
> In this project, we are using the ClearML library to log the results of different runs.
470
+
471
+
### ClearML Setup
472
+
473
+
1. **Sign Up**: Sign up for free to the [ClearML Hosted Service](https://app.clear.ml). Alternatively, you can set up your own server as described [here](https://clear.ml/docs/latest/docs/deploying_clearml/).
474
+
475
+
2. **Create Credentials**: Go to your ClearML workspace and create new credentials.
476
+
477
+
3. **Configure ClearML**: Create a `clearml.conf` file and paste the credentials into it. If you are behind a proxy or using SSL portals, add `verify_certificate = False` to the configuration to make it work. Here is an example of what your `clearml.conf` file might look like:
478
+
479
+
```ini
480
+
api {
481
+
web_server: https://app.clear.ml
482
+
api_server: https://api.clear.ml
483
+
files_server: https://files.clear.ml
484
+
# Add this line if you are behind a proxy or using SSL portals
485
+
verify_certificate = False
486
+
credentials {
487
+
"access_key" = "YOUR_ACCESS_KEY"
488
+
"secret_key" = "YOUR_SECRET_KEY"
489
+
}
490
+
}
491
+
492
+
```
493
+
494
+
Once configured, your experiments will be logged directly and shown in the project section under the name of your project.
495
+
496
+
### MLflow Setup
497
+
498
+
In this project, we are also using the MLflow library to log the results of different runs.
499
+
500
+
#### Windows Path Length Limitation
501
+
502
+
Depending on which version of Windows OS you are using or where you place the project, the output log files might have a very long path, which might result in an error at the time of logging the results. By default, Windows uses a path length limitation (MAX_PATH) of 256 characters. To avoid this potential error, follow these steps:
503
+
504
+
1. **Enable Long Paths**: Create (or edit) a variable named `LongPathsEnabled` in the Registry Editor under `Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem` and assign it a value of `1`. This will change the maximum length allowed for the file path on Windows machines and will avoid any errors resulting due to this. For more details, refer to [Naming Files, Paths, and Namespaces](https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file).
505
+
506
+
2. **GIT Configuration**: If you are using GIT, the line below may help solve the long path issue:
ClearML is an open-source tool used for logging and tracking machine learning experiments. It allows you to record metrics, parameters, and results, making it easier to monitor and compare diffrent runs.
36
+
37
+
Follow these steps to configurate ClearML for logging your results. This setup only needs to be done once. if you haven't set it up yet, complete the steps below. if you've already configured ClearML, your results should be automatically logged and available in your session.
38
+
39
+
- Sign up for free to the [ClearML Hosted Service](https://app.clear.ml), then go to your ClearML workspace and create new credentials.
40
+
41
+
- Create a `clearml.conf` file and paste the credentials into it. If you are behind a proxy or using SSL portals, add `verify_certificate = False` to the configuration to make it work. Here is an example of what your `clearml.conf` file might look like:
42
+
43
+
```ini
44
+
api {
45
+
web_server: https://app.clear.ml
46
+
api_server: https://api.clear.ml
47
+
files_server: https://files.clear.ml
48
+
# Add this line if you are behind a proxy or using SSL portals
49
+
verify_certificate = False
50
+
credentials {
51
+
"access_key" = "YOUR_ACCESS_KEY"
52
+
"secret_key" = "YOUR_SECRET_KEY"
53
+
}
54
+
}
55
+
56
+
```
57
+
58
+
Once configured, your experiments will be logged directly and shown in the project section under the name of your project.
Copy file name to clipboardExpand all lines: hand_posture/src/README.md
+30-2Lines changed: 30 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ Remember that minimalistic yaml files are available [here](./config_file_example
19
19
-[3.1 Saved results](#3-1)
20
20
-[3.2 Run tensorboard](#3-2)
21
21
-[3.3 Run MLFlow](#3-3)
22
+
-[3.4 Run ClearML](#3-4)
22
23
23
24
<detailsopen><summary><ahref="#1"><b>1. Hand Posture Model Zoo introduction</b></a></summary><aid="1"></a>
24
25
@@ -357,7 +358,7 @@ tensorboard --logdir logs
357
358
This will start a server and its address will be displayed. Use this address in a web browser to connect to the server. Then, using the web browser, you will be able to explore the learning curves and other training metrics.
358
359
359
360
</details></ul>
360
-
<ul><detailsopen><summary><ahref="#3-3">3.3 Run MLFlow</a></summary><aid="4-3"></a>
361
+
<ul><detailsopen><summary><ahref="#3-3">3.3 Run MLFlow</a></summary><aid="3-3"></a>
361
362
362
363
MLflow is an API that allows you to log parameters, code versions, metrics, and artifacts while running machine learning code, and provides a way to visualize the results.
363
364
@@ -368,8 +369,35 @@ mlflow ui
368
369
```
369
370
This will start a server and its address will be displayed. Use this address in a web browser to connect to the server. Then, using the web browser, you will be able to navigate the different experiment directories and look at the metrics that were collected. Refer to [MLflow Home](https://mlflow.org/) for more information about MLflow.
370
371
372
+
371
373
</details></ul>
372
-
</details>
374
+
<ul><detailsopen><summary><ahref="#3-4">3.4 Run ClearML</a></summary><aid="3-4"></a>
375
+
376
+
ClearML is an open-source tool used for logging and tracking machine learning experiments. It allows you to record metrics, parameters, and results, making it easier to monitor and compare diffrent runs.
377
+
378
+
Follow these steps to configurate ClearML for logging your results. This setup only needs to be done once. if you haven't set it up yet, complete the steps below. if you've already configured ClearML, your results should be automatically logged and available in your session.
379
+
380
+
- Sign up for free to the [ClearML Hosted Service](https://app.clear.ml), then go to your ClearML workspace and create new credentials.
381
+
382
+
- Create a `clearml.conf` file and paste the credentials into it. If you are behind a proxy or using SSL portals, add `verify_certificate = False` to the configuration to make it work. Here is an example of what your `clearml.conf` file might look like:
383
+
384
+
```ini
385
+
api {
386
+
web_server: https://app.clear.ml
387
+
api_server: https://api.clear.ml
388
+
files_server: https://files.clear.ml
389
+
# Add this line if you are behind a proxy or using SSL portals
390
+
verify_certificate = False
391
+
credentials {
392
+
"access_key" = "YOUR_ACCESS_KEY"
393
+
"secret_key" = "YOUR_SECRET_KEY"
394
+
}
395
+
}
396
+
397
+
```
398
+
399
+
Once configured, your experiments will be logged directly and shown in the project section under the name of your project.
0 commit comments