roboflow / notebooks

Examples and tutorials on using SOTA computer vision models and techniques. Learn everything from old-school ResNet, through YOLO and object-detection transformers like DETR, to the latest models like Grounding DINO and SAM.
https://roboflow.com/models
4.89k stars 759 forks source link

FileNotFoundError in Dataloader #170

Closed armanbabayan closed 1 year ago

armanbabayan commented 1 year ago

Search before asking

Notebook name

train_yolo_nas_on_custom_dataset.ipynb

Bug

Screenshot from 2023-07-18 12-33-38 I am encountering a 'FileNotFoundError' in Dataloader while training my YOLO-NAS model on custom dataset. However, the file mentioned in the error message does exist in the directory. After training model for 13 epochs, I received the following error. I need assistance in resolving this issue.

Environment

Google Colab

Minimal Reproducible Example

No response

Additional

No response

Are you willing to submit a PR?

github-actions[bot] commented 1 year ago

👋 Hello @armanbabayan, thank you for leaving an issue on Roboflow Notebooks.

🐞 Bug reports

If you are filing a bug report, please be as detailed as possible. This will help us more easily diagnose and resolve the problem you are facing. To learn more about contributing, check out our Contributing Guidelines.

If you require support with custom code that is not part of Roboflow Notebooks, please reach out on the Roboflow Forum or on the GitHub Discussions page associated with this repository.

💬 Get in touch

Do you have more questions about Roboflow that we haven't responded to yet? Feel free to ask them on the Roboflow Discuss forum. Our developer advocates and community team actively respond to questions there.

To ask questions about Notebooks, head over to the GitHub Discussions section of this repository.

SkalskiP commented 1 year ago

Hi, @armanbabayan 👋🏻!

Could you run this code:

import os

file_path = "/content/gdrive/MyDrive/YOLO NAS/small data/train/images/4721 9d6e3525159ac42240be816022c6101534962.png"
file_exists = os.path.isfile(file_path)

print(file_exists)
armanbabayan commented 1 year ago

Hi, @SkalskiP ! Thank you for reply. Actually I run this code and it returns True:

import os

file_path = "/content/gdrive/MyDrive/YOLO_NAS/small_data/train/images/4721_9d6e3525159ac42240be816022cc6101534962.png" file_exists = os.path.isfile(file_path)

print(file_exists)

SkalskiP commented 1 year ago

@armanbabayan, that's super weird. It doesn't relate to our notebook but to YOLO-NAS internals. Unfortunately, we won't be able to help you with that. Please create an issue here: https://github.com/Deci-AI/super-gradients. You can refer to this issue for more visibility.

armanbabayan commented 1 year ago

@SkalskiP Ok, thank you very much!

SkalskiP commented 1 year ago

@armanbabayan I'm sorry I couldn't be more helpful.