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

training with .pfm extension #9222

Closed
1 task done
urbansound8K opened this issue Aug 30, 2022 · 9 comments · Fixed by #9230
Closed
1 task done

training with .pfm extension #9222

urbansound8K opened this issue Aug 30, 2022 · 9 comments · Fixed by #9230
Labels
question Further information is requested Stale

Comments

@urbansound8K
Copy link

Search before asking

Question

how to train yolov5 with pfm files?

Additional

No response

@urbansound8K urbansound8K added the question Further information is requested label Aug 30, 2022
@spacewalk01
Copy link
Contributor

spacewalk01 commented Aug 31, 2022

I found that opencv imread supports pfm files.

You may try adding 'pfm' extention to IMG_FORMATS list.

CODE:

IMG_FORMATS = 'bmp', 'dng', 'jpeg', 'jpg', 'mpo', 'png', 'tif', 'tiff', 'webp' # include image suffixes

@spacewalk01
Copy link
Contributor

created a pr : #9230 (comment)

@urbansound8K
Copy link
Author

do I need to change the number of channel?
or just train as RGB images no need to change anything while training pfm only????

@spacewalk01
Copy link
Contributor

Tested with this image, it works like 'jpg' image and you don't need to change number of channels. But in case, check your pfm shape as follows:
image

@spacewalk01
Copy link
Contributor

I think you don't need to change anything beside adding 'pfm' extension to dataloaders.py as I suggested. When you try, let me know if it works or not. Good luck.

@glenn-jocher glenn-jocher linked a pull request Aug 31, 2022 that will close this issue
@glenn-jocher
Copy link
Member

@urbansound8K good news 😃! Your original issue may now be fixed ✅ in PR #9230 by @spacewalk01. To receive this update:

  • Gitgit pull from within your yolov5/ directory or git clone https://github.com/ultralytics/yolov5 again
  • PyTorch Hub – Force-reload model = torch.hub.load('ultralytics/yolov5', 'yolov5s', force_reload=True)
  • Notebooks – View updated notebooks Open In Colab Open In Kaggle
  • Dockersudo docker pull ultralytics/yolov5:latest to update your image Docker Pulls

Thank you for spotting this issue and informing us of the problem. Please let us know if this update resolves the issue for you, and feel free to inform us of any other issues you discover or feature requests that come to mind. Happy trainings with YOLOv5 🚀!

@urbansound8K
Copy link
Author

cloud you please open it again?

@glenn-jocher glenn-jocher reopened this Sep 6, 2022
@glenn-jocher
Copy link
Member

@spacewalk01 @urbansound8K could you try training again with PFM images after PR #9230? If it doesn't work please submit another PR with a fix, thank you!

@github-actions
Copy link
Contributor

github-actions bot commented Oct 7, 2022

👋 Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs.

Access additional YOLOv5 🚀 resources:

Access additional Ultralytics ⚡ resources:

Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLOv5 🚀 and Vision AI ⭐!

@github-actions github-actions bot added the Stale label Oct 7, 2022
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested Stale
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants