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

No module named 'ultralytics.yolo' #256

Open
bminevich opened this issue Nov 4, 2024 · 0 comments
Open

No module named 'ultralytics.yolo' #256

bminevich opened this issue Nov 4, 2024 · 0 comments

Comments

@bminevich
Copy link

I followed the steps listed. I saved the repository locally, made a new python environment locally (3.9), then I ran the requirements.txt file, uninstalled torch and torchvision and installed the cuda versions, and then I ran the setup.py file.

But I am getting this error:

ModuleNotFoundError Traceback (most recent call last)
Cell In[1], line 8
5 import cv2
6 import tifffile as tf
----> 8 from fastsam import FastSAM, FastSAMPrompt
9 import torch
10 import glob

File ~/.conda/envs/image_analysis/lib/python3.9/site-packages/fastsam/init.py:3
1 # Ultralytics YOLO 🚀, AGPL-3.0 license
----> 3 from .model import FastSAM
4 from .predict import FastSAMPredictor
5 from .prompt import FastSAMPrompt

File ~/.conda/envs/image_analysis/lib/python3.9/site-packages/fastsam/model.py:12
1 # Ultralytics YOLO 🚀, AGPL-3.0 license
2 """
3 FastSAM model interface.
4
(...)
9 results = model.predict('ultralytics/assets/bus.jpg')
10 """
---> 12 from ultralytics.yolo.cfg import get_cfg
13 from ultralytics.yolo.engine.exporter import Exporter
14 from ultralytics.yolo.engine.model import YOLO

ModuleNotFoundError: No module named 'ultralytics.yolo'

How do I resolve this issue?

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

1 participant