Closed AlmendrosCarmona closed 4 months ago
SOLUTION:
This happens because the system does not know where to find the folder ultralytics. There are three main solutions (as far as I know):
import sys
fastsam_path = './FastSAM'
if fastsam_path not in sys.path:
sys.path.insert(0, fastsam_path)
I highly recommend to use the ultralytics implementation or a virtual envorionment to prevent this problems.
Thanks.
Hi!
I am cloning the repository, changing directory to it and installing requirements but when I run a simple code to test fastsam I found the follwoing error:
ModuleNotFoundError: No module named 'ultralytics'
The code I am trying to run is:
And my folder structure is as simple as:
Someones can help me ? Thanks in advance..
UPDATE: I know that I have to use the folder ultralytics rather than de module of ultralytics. When I wasn't using venv my error was ultralytics.yolo not found but this error was solved by applying a venv and installing only the packages in requirements.txt of the FastSAM repository.