mit-han-lab / tiny-training

On-Device Training Under 256KB Memory [NeurIPS'22]
http://tinytraining.mit.edu
MIT License
438 stars 60 forks source link

how to run the usage in algorithm #7

Open Django-Jiang opened 1 year ago

Django-Jiang commented 1 year ago

I follow the setup in the algorithm, and I fail to replicate the procedure in scripts by encountering the following error:

  File "path/tiny-training/algorithm/train_cls.py", line 11, in <module>
    from core.model import build_mcu_model
  File "path/tiny-training/algorithm/core/model/__init__.py", line 1, in <module>
    from .model_entry import *
  File "path/tiny-training/algorithm/core/model/model_entry.py", line 2, in <module>
    from ...core.utils.config import configs 
ValueError: attempted relative import beyond top-level package

So what is the right way to boot the script, thx for any help