mit-han-lab / tinyengine

[NeurIPS 2020] MCUNet: Tiny Deep Learning on IoT Devices; [NeurIPS 2021] MCUNetV2: Memory-Efficient Patch-based Inference for Tiny Deep Learning; [NeurIPS 2022] MCUNetV3: On-Device Training Under 256KB Memory
https://mcunet.mit.edu
MIT License
757 stars 127 forks source link

No module named 'code_generator' #100

Open tracyyy19 opened 3 months ago

tracyyy19 commented 3 months ago

So, I tried following the instructions of this tutorial, https://github.com/mit-han-lab/tinyengine/tree/main/tutorial/inference but I still get the same error

(tinyengine) C:\Users\USER\Downloads\tinyengine-main\tinyengine-main\examples>python vww.py Traceback (most recent call last): File "vww.py", line 19, in from code_generator.CodegenUtilTFlite import GenerateSourceFilesFromTFlite ModuleNotFoundError: No module named 'code_generator'

jin3qin commented 1 month ago

So, I tried following the instructions of this tutorial, https://github.com/mit-han-lab/tinyengine/tree/main/tutorial/inference but I still get the same error

(tinyengine) C:\Users\USER\Downloads\tinyengine-main\tinyengine-main\examples>python vww.py Traceback (most recent call last): File "vww.py", line 19, in from code_generator.CodegenUtilTFlite import GenerateSourceFilesFromTFlite ModuleNotFoundError: No module named 'code_generator'

Before running the Python script, you need to ensure that it runs in a conda environment with the configuration name tinyengine. If the "code_generator" module is missing, you need to run export PYTHONPATH=${PYTHONPATH}: $(tinyengine's path) first.