-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Train and Test R-CNN on Another Dataset #21
base: master
Are you sure you want to change the base?
Conversation
Hi @zeyuanxy, I'm curious to know what mAP you get on INRIA? I won't be able to merge this PR in its current form because it includes the selective search code, which is under a license that does not permit redistribution. |
Hi @rbgirshick It is about 87.8, a very high number. |
@zeyuanxy Do you have a trained model that I can already use in my project? |
You don't have to stick with the MATLAB implementation of selective search. There's a pure python version. Usage is a super easy one-liner |
How do I use it futurely? Where do I add that line to point to the python wrapper of Selective Search? |
@zeyuanxy Hi~, How did you generate images for the background class? How many images are needed for this class? |
@pradeepj247 You don't need to mention which class the image belongs to in the train.txt file, its only the names of the images, if you see classes included in images' names, that's pure coincidence. The annotation files should indicate which class a image belongs to.
Then the name tag tells you which class this object belongs to. Yes, you need to mention the full path to the images in factory.py. |
@sunshineatnoon, just 2 more questions: I) in your Factory.py, there are 3 for..loops outside the functions, and they contain, the imagenet_devkit_path = '/home/xuetingli/imagenet' and towncenter_devkit_path = '/home/szy/TownCenter' and also inria_devkit_path = '/home/xuetingli/test/INRIA'. This is a bit confusing for me. if you are dealing with only one dataset (i.e imagenet), then only the imagenet should suffice?
|
|
Thanks @sunshineatnoon, I crossed all those stages - it loaded the dataset, annotations and the caffeNet model required for training. But just before starting the training, it failed with the following error: This seems to be quite a popular error and I read quite a few posts on the forums, but couldn't resolve it. I am running this on AWS g2.2x and my caffe device_query call works fine. Any suggestions on how to get past this one? |
@DaChaoXc I met the problem you mentioned. Have you figured it out? |
@DaChaoXc |
@leejiajun e.g. (I am interesting in the pull request too, so I might later try merging it with mine.) |
@nw362 |
Hello, File "/home/attilio/fast-rcnn/tools/../lib/datasets/amph.py", line 190, in get_data_from_tag Would you help to understand how to fix it? |
This looks to be code you have written (amph.py)? Hard to say without seeing both the code and the annotation file. |
I fixed it adding to the .xml files (which I got from Matlab) the fields name and folder. |
Dear All, (@zeyuanxy ) |
Editing the config file FAST-RCNN-ROOT/lib/fast_rcnn/config.py 发自我的 iPhone
|
thanks @IdiosyncraticDragon |
Well, that's because of too much training data. I don't know whether it will be helpful if you have more memory size. 发自我的 iPhone
|
Can you tell me why running detection, the frame detect just one item at a time? |
One ROI at a time? |
@nw362 exactly :) |
The convolutional layers of the CNN are calculated on the whole image (resized before hand). The final polling layer pools over only the ROI and so the CNN must run the forward steps over these layers for every ROI. |
In order to detect more ROIs in the same frame there is anything I could do? |
It should happen already "lib/fast_rcnn/test.py": _get_blobs will take in one image but multiple ROIs. In im_detect(net, im, boxes), the CNN will be called forward only once for an image and a set of ROIs. Is only one ROI being sent to this method? |
@nw362 I checked and it seems to me that it does not send only one ROI. |
I have a little doubt. During the labeling of the training set, is it possible to label more items (ROIs) in the same image? |
Yes, e.g. the xml format used for annotations. |
@nw362 Do you mean that is not a problem if there are more bounding boxes for the same .xml file? |
No problem at all. This is the case for many data sets. |
@nw362 I'm not sure about what you mean with many data sets. I have only two classes (background and amphora) and in some image from the data set there are many amphoras. |
hi all, IPython 4.2.0 -- An enhanced Interactive Python. In [1]: when I run the training code on terminal the IPython console is open? I don’t know what is the problem? I am a beginner in this area. Please help me. |
Hi Ross, Fast-RCNN is really fantastic! I am impressed by its great performance and speed, thus I add some other code and two READMEs to help train and test Fast-RCNN on INRIA Person, and it is easy to modify it to train on other datasets, not limiting to PASCAL VOC. It is really a honor for me to help with this, Thanks!