Skip to content

Commit 935b881

Browse files
committed
Update common_deploy and the main README.md file, and rename Colab notebook.
Signed-off-by: khaoula boutiche <[email protected]>
1 parent 0e7bdb2 commit 935b881

File tree

3 files changed

+11
-21
lines changed

3 files changed

+11
-21
lines changed

README.md

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -155,22 +155,12 @@ on [How to install STM32 model zoo](https://wiki.st.com/stm32mcu/index.php?title
155155
In [tutorials/notebooks](tutorials/notebooks/README.md) you will find a jupyter notebook that can be easily deployed on
156156
Colab to exercise STM32 model zoo training scripts.
157157
158-
## Notes
159-
160-
In this project, we are using **TensorFLow version 2.8.3** following unresolved issues with newest versions of
161-
TensorFlow, see [more](https://github.com/tensorflow/tensorflow/issues/56242).
162-
163-
**Warnings** :
164-
165-
* In this project we are using the `mlflow` library to log the results of different runs. Depending on which version of
166-
Windows OS are you using or where you place the project the output log files might have a very long path which might
167-
result in an error at the time of logging the results. As by default, Windows uses a path length limitation (MAX_PATH)
168-
of 256 characters: Naming Files, Paths, and Namespaces. To avoid this potential error, create (or edit) a variable
169-
named `LongPathsEnabled` in **Registry Editor**
170-
under `Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\` and assign it a value of `1`. This
171-
will change the maximum length allowed for the file length on Windows machines and will avoid any errors resulting due
172-
to this. For more details have a look at
173-
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)
174-
.
175-
* If there are some white spaces in the paths (for Python, STM32CubeIDE, or, STM32Cube.AI local installation) this can
176-
result in errors. So avoid having paths with white spaces in them.
158+
159+
> [!IMPORTANT]
160+
> 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).
161+
162+
>[!CAUTION]
163+
> 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.
164+
165+
>[!TIP]
166+
> 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).

common/common_deploy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ def stmaic_local_call(session):
279279
# Get footprints of the given model
280280
results = cloud_analyze(ai=ai, model_path=model_path, optimization=optimization,
281281
get_model_name_output=get_model_name_output)
282-
needed_ram = round(int(results["ram_size"]) / 1024, 2)
283-
needed_rom = round(int(results["rom_size"]) / 1024, 2)
282+
needed_ram = int(results["ram_size"])
283+
needed_rom = int(results["rom_size"])
284284

285285
with open(os.path.join(board.config.memory_pool_path), 'r') as f:
286286
memory_pool = json.load(f)

0 commit comments

Comments
 (0)