Giter Club home page Giter Club logo

Comments (14)

jlevis73 avatar jlevis73 commented on June 3, 2024 2

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:

pascal_train('helmet', 2);

The object I was trying to detect was helmet so you would put 'tiger' instead, but I'm sure you get the idea.

from voc-dpm.

primetang avatar primetang commented on June 3, 2024

It is possible to train models using your own dataset. I recommend taking a look at data/pascal_data.m, which defines the function that we use for loading the PASCAL data into the internal data structures used by our code. To support your own data, you will need to define your own function that reads in your positive and negative examples and returns the same data structures as the function pascal_data(). After that, you can train and evaluate a model by pascal.m.

from voc-dpm.

jlevis73 avatar jlevis73 commented on June 3, 2024

@das007 were you successful in training on your Tiger dataset? I'm working on a similar project

from voc-dpm.

das007 avatar das007 commented on June 3, 2024

I didn't use the DPM in my project because I got the above reply from primetang just 2 days back.
So I used texture detection "Texton theoryrevisited:Abag-of-wordsapproachtocombinetextons" method to detect tiger location and then ran a Breadth First Search from that location to the surrounding regions of the image to detect the complete tiger.

from voc-dpm.

das007 avatar das007 commented on June 3, 2024

Thanks, I will surely try it.

from voc-dpm.

adekoerniawan avatar adekoerniawan commented on June 3, 2024

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.
However I have no idea how to direct the system to use my dataset(a collection of images and annotation) which is different from the the PASCAL datasets so as to train a new model. In this case i made some folders that i filled out with some images and anotations. those folders, divided :

  1. sample positif images

  2. Sample Negative Images

  3. Anotations

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

from voc-dpm.

cherishtttz avatar cherishtttz commented on June 3, 2024

@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?

from voc-dpm.

jlevis73 avatar jlevis73 commented on June 3, 2024

@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.

from voc-dpm.

jlevis73 avatar jlevis73 commented on June 3, 2024

@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!

from voc-dpm.

zackKassem avatar zackKassem commented on June 3, 2024

I wish i can see a video that explain how to modify the PASCAL dataset as Joel did , am a bit stuck .

from voc-dpm.

cherishtttz avatar cherishtttz commented on June 3, 2024

@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?

from voc-dpm.

adekoerniawan avatar adekoerniawan commented on June 3, 2024

@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.
once more thankyou so much

from voc-dpm.

shaozhefeng avatar shaozhefeng commented on June 3, 2024

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

from voc-dpm.

thanasissdr avatar thanasissdr commented on June 3, 2024

@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?

from voc-dpm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.