-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Thermal facial expressions #755
Comments
👋 Hello @Mohammad96yahia, 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! |
@Mohammad96yahia hi there, Thank you for reaching out and for providing details about your project. Yes, you can absolutely use the Ultralytics HUB to train YOLOv8 on your thermal images for facial expression recognition. To get started, you'll need to convert your labeled data from XML format to the YOLO format, which consists of text files with the same name as your images but with a Here's a brief outline of the steps you can follow:
Please ensure you are using the latest versions of the Ultralytics packages to avoid any compatibility issues. If you encounter any problems or need further assistance, feel free to provide more details or a reproducible example, as outlined in our minimum reproducible example guide. Best of luck with your project, and feel free to reach out if you have any more questions! 😊 |
Hi @pderrenger, thank you, I'm happy to hear this, but I have two questions: 1- based on the documentation I need to upload the data in files, one have the images and the second have the labels in yolo format, and in the images file I don't need to separate them in sub files according to there labels, instead all images should be together in one file. 2- If you may can you check to me if the xml to yolo format conversions is correct. and this is the yolo format for this xml file: Thank you in advance |
Hi @Mohammad96yahia, Thank you for your questions! I'm glad to assist you further. 😊
Please verify that the issue persists with the latest versions of the Ultralytics packages. Keeping your software up-to-date ensures you benefit from the latest features and bug fixes. If you have any further questions or need additional assistance, feel free to ask. We're here to help! |
Hi, I uploaded the data to Roboflow because it is easier and more accurate to label the data for use on Ultralytics HUB. Still, when I wanted to upload the data to the Ultralytics HUB, I was surprised that for classification I must upload the data in a way that all the images with the same label should be in a file so I had 7 separate files for 7 labels happy, sad, disgust, angry, surprised, fear, normal] and without the XML files or the yolo format labels. Still, if I want to train the model as an object detection I must upload all the images in one file and all labels in another. However, I trained the model for the classification and got good results, and I think I can get better results because during the 100 or 200 epochs the Val-loss is still between 1.700 and 1.890, but the train-loss reaches 0.092. So if you have any suggestions as an expert I will be grateful, I want to mention that before I upload them to the HUB and while using the Roboflow website I did a preprocess : Auto-Orient: Applied, Resize: Fit within 300x300, and Grayscale: Applied. Also an augmentation: 90° Rotate: Clockwise, Counter-Clockwise, and Exposure: Between -12% and +12%, so the total number of images reached 2687. For the training, I used YOLOv8m-CLS (Epochs: 300, Image Size: 205, Patience: 100) which gave me the best result compared to others. Finally, I want to mention your amazing work in my reports specifically in the methodology but I don't know how, If you may can you provide me with any papers or literature to cite them and explain in this chapter how the classification and object detection works and add some mathematical equations and scientific explanation if possible. Thank you in advance, and sorry for the long message |
Hi @Mohammad96yahia, Thank you for your detailed message and for sharing your experience with using Ultralytics HUB and Roboflow. I'm glad to hear that you achieved good results with your classification model! 😊 Data Upload and TrainingFor classification tasks, it's indeed necessary to organize your images into separate directories for each class. This structure helps the model understand the different categories during training. For object detection, as you mentioned, all images should be in one directory, and the corresponding labels should be in another. Improving Model PerformanceGiven your current results, here are a few suggestions to potentially improve your model's performance:
Citing Ultralytics in Your WorkWe appreciate your intention to mention Ultralytics in your reports! You can cite our work using the following paper:
For a detailed explanation of how YOLO models work, including mathematical equations and scientific explanations, you can refer to the original YOLO papers: These papers provide a comprehensive overview of the architecture, training process, and underlying mathematics of YOLO models. ConclusionI hope these suggestions help you further improve your model's performance. If you have any more questions or need further assistance, feel free to ask. We're here to help! Best of luck with your project, and thank you for your kind words about our work. The YOLO community and the Ultralytics team appreciate your support! 🚀 |
👋 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 ⭐ |
Hi @Mohammad96yahia, Thank you for your detailed message and for sharing your experience with Ultralytics HUB! It's great to hear that you've achieved good results with your classification model. Let's address your points one by one:
If you have any further questions or need additional assistance, feel free to ask. We're here to help! |
Search before asking
Question
Hi,
I have almost 1600 thermal images with format .bmp and I have labeled them using labelimg to 7 classes [happy, sad, disgust, angry, surprised, fear, normal], and each image has the xml file. Can I use ultralytics hub to train the Yolov8 for this task?
thank you in advance
Additional
No response
The text was updated successfully, but these errors were encountered: