-
Notifications
You must be signed in to change notification settings - Fork 306
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
How to train a model for dataset other than Pascal dataset for eg. some tiger dataset for detecting tigers? #16
Comments
It is possible to train models using your own dataset. I recommend taking a look at |
@das007 were you successful in training on your Tiger dataset? I'm working on a similar project |
I didn't use the DPM in my project because I got the above reply from primetang just 2 days back. |
If you're still interested in using DPM, I've successfully trained on my own images. I was able to just insert my images into the PASCAL 2007 devkit and augment a few configuration files to reflect the additional images being inserted. Basically I just tricked the training program into thinking the PASCAL dataset had an additional class. After that it was as simple as running:
The object I was trying to detect was helmet so you would put |
Thanks, I will surely try it. |
hi.. @jlevis73 could you help me please, Currently I am doing a thesis on object detection using deformable part model that requires me to train a new model to detect a certain object.
i use Voc-release 3.1. the library i got here : https://github.com/ApprenticeZ/voc-release-3.1-win, and pascal voc 2007, I tried looking at their Readme and documentation guides but unfortunetly they do not make any mention detaily. Do correct me if I am wrong. Let me know if I have not made my problem clear enough. Would you like to give me a simple tutorial how to train a new model in pascal voc for dpm method, i use it in windows 64 bit. for your attention i appreciated and thanks in advance |
@jlevis73 Hello! I want to train my own dataset, but I don't know how to start training when I have made the dataset. could you please tell me about the functions you have modified and how to modify them? |
@AdeKurniawan44 I encountered that attempting to direct the system to my own file structure was incredibly difficult due to the depth of file path variables that depend on the PASCAL VOC file structure. To work around this I simply added my images into the PASCAL VOC's main image folder and created test.txt, train.txt, trainval.txt and val.txt files for each of my objects in the ImageSets/Main folder. By doing this you are effectively expanding the number of objects in the PASCAL dataset to include the ones that you wish to train models for. Also, I used a Linux 64 bit environment so I can imagine you might encounter some other issues. If you are still encountering errors or if I was unclear I'd be more than happy to help further. |
@cherishtttz I did not actually have to modify any functions, instead I modified the PASCAL dataset that the dpm software was built around to contain the objects that I desired models for. My previous couple posts outline a little bit of how I did it, but if you still have any questions let me know! |
I wish i can see a video that explain how to modify the PASCAL dataset as Joel did , am a bit stuck . |
@jlevis73 Thank you for your reply, I guess I know what you mean, and I have tried to modify the function in voc-release5,it's pascal_data(),I think maybe you have used this function,too.Do you mean that? |
@jlevis73 @jlevis thankyou so much for your reply, this is my email ([email protected]), could you send me the project which you have ever tried and got successfull including PASCAL VOC's main image folder, also test.txt, train.txt, trainval.txt and val.txt files for each of your objects in the ImageSets/Main folder, i wish those has been structured(path location for those files) based on your trying, i wanna try it in linux too, i hope i'll finding the answer, i think DPM is a new method for object detection, so it'll be a general issue, for the result i'll share it here, so everyone can learn and try it. |
I have the same problem of using my own data to train the dpm model.could you please show me an example?code details may be better. thank you. @jlevis73 |
@jlevis73 Sorry for this (naive) question, but for the objection we need only these 4 files, i.e. train.txt, val.txt, trainval.txt and test.txt, right? |
Hi,
I am working on a project "Tiger Detection with Body Part Localization".
So I want to detect and localize body parts of tiger using Deformable Part Models.
I read your ReadMe file in which you have only discussed how to train and learn a model using Pascal Dataset. Can you please tell me how can I use your code to learn and model my dataset?
Thanks.
The text was updated successfully, but these errors were encountered: