-
-
Notifications
You must be signed in to change notification settings - Fork 16k
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
如何训练图片尺寸为(640,480)的模型 #11768
Comments
@xingjunhong hi there, To train the YOLOv5 model with a rectangular shape such as (640, 480), you can modify the input size in the training configuration file. Simply edit the Please note that modifying the input size may affect the performance and accuracy of your model, so it's important to experiment with different sizes and evaluate the results accordingly. If you have any further questions or encounter any issues, please don't hesitate to ask. Best regards, |
修改这个参数后,会出现报错。 Traceback (most recent call last): |
@xingjunhong I apologize for the confusion. It seems that the issue you encountered is related to a type mismatch in the To resolve this error, make sure that the Once you make this adjustment, you should be able to train the model successfully with the desired rectangular shape (640, 480). If you have any further questions or need additional assistance, please feel free to ask. Best regards, |
但是我想训练的是(640,480)尺寸的模型,而不是(640,640)尺寸的模型 |
@xingjunhong I apologize for the confusion in my previous response. To train a YOLOv5 model with a resolution of (640, 480) instead of (640, 640), you can modify the By setting the Please let me know if you have any further questions or need any additional assistance. Best regards, |
好家伙,跨语言交流,在训练的时候声明rect参数即可:python train.py --imgsz 640 --rect |
@JiahuiSun hello, Thank you for your input. Yes, when training the YOLOv5 model, you can specify the
This will ensure that the input images are resized to the desired dimensions during training. If you have any further questions or need additional assistance, please don't hesitate to ask. Best regards, |
👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help. For additional resources and information, please see the links below:
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 YOLO 🚀 and Vision AI ⭐ |
Best regards, Tina |
Hi @s2244521, If you are training a YOLOv5 model with a rectangular shape and experiencing lower AP and Recall, there are several parameters you can try adjusting to improve your model's results. Here are a few recommendations:
Please note that these recommendations may require some experimentation and fine-tuning to find the best configuration for your specific dataset. It's always a good idea to keep track of your changes and evaluate the results using metrics such as AP and Recall. If you have any further questions or need additional guidance, please let me know. Best regards, Glenn Jocher |
Search before asking
Question
目前官方的模型训练的尺寸是正方形尺寸,如何训练修改为长方形(640,480)尺寸的模型?
Additional
No response
The text was updated successfully, but these errors were encountered: