ultralytics / hub

Ultralytics HUB tutorials and support
https://hub.ultralytics.com
GNU Affero General Public License v3.0
107 stars 11 forks source link

error to save trained model #649

Open Vandosud opened 3 weeks ago

Vandosud commented 3 weeks ago

Search before asking

HUB Component

No response

Bug

FileNotFoundError Traceback (most recent call last) in <cell line: 4>() 2 3 model = YOLO('https://hub.ultralytics.com/models/sFqQPgYxYcNWILvVkohL') ----> 4 results = model.train()

6 frames /usr/local/lib/python3.10/dist-packages/ultralytics/data/utils.py in check_det_dataset(dataset, autodownload) 327 else: 328 m += f"\nNote dataset download directory is '{DATASETS_DIR}'. You can update this in '{SETTINGS_YAML}'" --> 329 raise FileNotFoundError(m) 330 t = time.time() 331 r = None # success

FileNotFoundError: Dataset '/content/datasets/teste_hub/leitor.v1i.yolov8-obb/data.yaml' images not found ⚠️, missing path '/content/datasets/roboflow/valid/images' Note dataset download directory is '/content/datasets'. You can update this in '/root/.config/Ultralytics/settings.ya

Environment

No response

Minimal Reproducible Example

No response

Additional

No response

github-actions[bot] commented 3 weeks ago

👋 Hello @Vandosud, thank you for raising an issue about Ultralytics HUB 🚀! Please visit our HUB Docs to learn more:

If this is a 🐛 Bug Report, please provide screenshots and steps to reproduce your problem to help us get started working on a fix.

If this is a ❓ Question, please provide as much information as possible, including dataset, model, environment details etc. so that we might provide the most helpful response.

We try to respond to all issues as promptly as possible. Thank you for your patience!

pderrenger commented 3 weeks ago

@Vandosud hello! 😊 It appears that the error you're encountering is due to the trained model not being able to locate the dataset specified in your data.yaml file, particularly the /content/datasets/roboflow/valid/images directory. This is often because the dataset directory does not exist in the path you've specified or the path itself is incorrect.

Please ensure that:

  1. The dataset directory exists at the specified path.
  2. The paths to your dataset in data.yaml accurately reflect their locations.

You might want to double-check the data.yaml file to ensure all paths are correct. Also, consider verifying the dataset directory to confirm it's in the expected location with the expected structure.

For more details on configuring datasets and troubleshooting, please refer to the Ultralytics HUB Docs. Let us know if you need any further assistance!