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

不同级别目录的.py文件不能相互调用 #43

Open
2662448726 opened this issue Dec 30, 2022 · 1 comment
Open

不同级别目录的.py文件不能相互调用 #43

2662448726 opened this issue Dec 30, 2022 · 1 comment

Comments

@2662448726
Copy link

不同级别目录的.py文件不能相互调用
Traceback (most recent call last):
File "segment/predict.py", line 24, in
from models.common import DetectMultiBackend
File "/mnt/yolov7-segmentation/models/common.py", line 28, in
from utils.general import (LOGGER, ROOT, Profile, check_requirements, check_suffix, check_version, colorstr,
ModuleNotFoundError: No module named 'utils.general'

@RizwanMunawar
Copy link
Owner

@2662448726! Uninstall the utils package with the mentioned command below and then try again. Seems like the utils package is pre-installed and the code is using the function from that package instead of a specifically defined and implemented function.

pip uninstall imutils
python3 segment/predict.py --weights yolov7-seg.pt --source "videopath.mp4"

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