Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YoloNas training error #1

Open
1chimaruGin opened this issue Jul 19, 2023 · 2 comments
Open

YoloNas training error #1

1chimaruGin opened this issue Jul 19, 2023 · 2 comments

Comments

@1chimaruGin
Copy link

How to fix this error?

My code

from autodistill_yolonas import YOLONAS

# load the model
target_model = YOLONAS()

target_model.train("data/dataset", epochs=10)

Error:

root@5bbe96e58fd8:/workdir# python workdir/yolonas_train.py 
The console stream is logged into /root/sg_logs/console.log
[2023-07-19 05:46:53] INFO - crash_tips_setup.py - Crash tips is enabled. You can set your environment variable to CRASH_HANDLER=FALSE to disable it
Traceback (most recent call last):
  File "workdir/yolonas_train.py", line 2, in <module>
    from autodistill_yolonas import YOLONAS
  File "/opt/conda/lib/python3.7/site-packages/autodistill_yolonas/__init__.py", line 1, in <module>
    from autodistill_yolonas.yolonas_model import YOLONAS
  File "/opt/conda/lib/python3.7/site-packages/autodistill_yolonas/yolonas_model.py", line 6, in <module>
    from super_gradients.training import Trainer, models
  File "/opt/conda/lib/python3.7/site-packages/super_gradients/__init__.py", line 2, in <module>
    from super_gradients.training import losses, utils, datasets_utils, DataAugmentation, Trainer, KDTrainer, QATTrainer
  File "/opt/conda/lib/python3.7/site-packages/super_gradients/training/__init__.py", line 4, in <module>
    from super_gradients.training.sg_trainer import Trainer
  File "/opt/conda/lib/python3.7/site-packages/super_gradients/training/sg_trainer/__init__.py", line 3, in <module>
    from super_gradients.training.sg_trainer.sg_trainer import Trainer, MultiGPUMode, StrictLoad
  File "/opt/conda/lib/python3.7/site-packages/super_gradients/training/sg_trainer/sg_trainer.py", line 15, in <module>
    from piptools.scripts.sync import _get_installed_distributions
  File "/opt/conda/lib/python3.7/site-packages/piptools/scripts/sync.py", line 17, in <module>
    from .. import sync
  File "/opt/conda/lib/python3.7/site-packages/piptools/sync.py", line 11, in <module>
    from pip._internal.commands.freeze import DEV_PKGS
ImportError: cannot import name 'DEV_PKGS' from 'pip._internal.commands.freeze' (/opt/conda/lib/python3.7/site-packages/pip/_internal/commands/freeze.py)
@capjamesg
Copy link
Member

@1chimaruGin Apolygies for the slow response. Were you able to fix this issue? if not, I will take a closer look. My first inclination is we need to update the way we install YOLO-NAS.

@doubleplusplus
Copy link

I have a different error when training Yolonas:

Incorrect checkpoint directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants