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

ModuleNotFoundError: No module named 'utils.torch_utils' #1518

Open
sssssshf opened this issue May 10, 2024 · 2 comments
Open

ModuleNotFoundError: No module named 'utils.torch_utils' #1518

sssssshf opened this issue May 10, 2024 · 2 comments

Comments

@sssssshf
Copy link

Env

  • GPU, e.g. V100, RTX2080, TX2, Xavier NX, Nano, etc.
  • OS, e.g. Ubuntu16.04, Win10, etc.
  • Cuda version
  • TensorRT version

About this repo

  • which branch/tag/commit are you using?
  • which model? yolov5, retinaface?

Your problem

pt转wts时候报错,ModuleNotFoundError: No module named 'utils.torch_utils'
这个文件找不到是为啥呢

  • what is your command? e.g. sudo ./yolov5 -s
  • what's your output?
  • what output do you expect?
@sssssshf
Copy link
Author

w我把yoloV7的utils文件夹丢进去在加在模型时候报错
ModuleNotFoundError: No module named 'models'

@wang-xinyu
Copy link
Owner

gen_wts是在pytorch代码库目录下运行,再看下readme

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

2 participants