-
Notifications
You must be signed in to change notification settings - Fork 1
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
Test accuracy with coco dataset #5
Comments
Hi, I've pushed a fix for this issue farrajota/fast-rcnn-torch@0a286bc. It was due to tensor type mismatch in the |
Thank you very much. |
The |
That's great, thank you very much! |
I retrained the test: 40500/40504 dev: 1, forward time: 0.857, select time: 0.758s, nms time: 0.758s, total time: 1.636s
test: 40501/40504 dev: 1, forward time: 0.498, select time: 0.677s, nms time: 0.677s, total time: 1.199s
test: 40502/40504 dev: 1, forward time: 0.477, select time: 0.638s, nms time: 0.638s, total time: 1.157s
test: 40503/40504 dev: 1, forward time: 0.801, select time: 0.660s, nms time: 0.660s, total time: 1.492s
test: 40504/40504 dev: 1, forward time: 0.877, select time: 1.365s, nms time: 1.365s, total time: 2.265s
*********************************************
*** COCO evaluation metric
*********************************************
Loading files to calculate sizes...
Total boxes: 4065662
Loading files to create giant tensor...
Converting data tensor to table format (to save as a .json file)...
/home/wangty/torch/install/bin/luajit: not enough memory===>.] ETA: 252ms | Step: 0ms Thank you very much. |
I'll take a look into it. It looks like luajit is hitting its memory limits (2gb) when creating the It takes some time to complete the testing script on the |
Ok, it is quite a time consuming work to test all the 40504 images, and that's why I want to make a samll coco dataset, such as coco5K to reduce hours of test in the experiment. |
I've committed some fixes to solve this issue. This took me a while to fix because the Moreover, I've set a new flag named To get this fixes you'll need to do the following:
|
It is very kind of you! I will try it immediately. Thank you very much! |
I updated this repo and the fastrcnn package, after that re-install the fastrcnn and dbcollection package, when I ran the test.lua with the config as follows: opt.expID = 'frcnn_vgg16_coco'
opt.dataset = 'coco'
opt.GPU = 2
opt.netType = 'vgg16'
opt.frcnn_test_mode = 'coco' and used the flag ==> (1/5) Load options
==> (2/5) Load dataset data loader
==> (3/5) Load roi proposals data
==> (4/5) Load model: /home/wangty/geekvc/fastrcnn-example-torch/data/exp/coco/frcnn_vgg16_coco/model_final.t7
==> (5/5) Test Fast-RCNN model
Saving temporary files to: /mnt/geekvc/fastrcnn-example-torch/Tester_Eval
/home/wangty/torch/install/bin/luajit: ...e/wangty/torch/install/share/lua/5.1/fastrcnn/Tester.lua:72: bad argument #2
to 'getFilename' (string expected, got table)
stack traceback:
[C]: in function 'getFilename'
...e/wangty/torch/install/share/lua/5.1/fastrcnn/Tester.lua:72: in function 'getImage'
...e/wangty/torch/install/share/lua/5.1/fastrcnn/Tester.lua:114: in function 'testOne'
...e/wangty/torch/install/share/lua/5.1/fastrcnn/Tester.lua:236: in function 'test_use_cache'
...e/wangty/torch/install/share/lua/5.1/fastrcnn/Tester.lua:278: in function 'test'
/home/wangty/torch/install/share/lua/5.1/fastrcnn/test.lua:34: in function 'test'
test.lua:73: in main chunk
[C]: in function 'dofile'
...ngty/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00406620 I tested with anaconda python 3 and python 2.7. |
I'm not able to reproduce this issue, although I've pushed a commit to fish a small issue regarding data fetching, so its best to do a
or you want to select different gpus from your cluster in a particular order then
This is the recommended way to select GPUs for your script. |
Oh, that's a good idea to use the $ CUDA_VISIBLE_DEVICES=1 th test.lua
==> (1/5) Load options
==> (2/5) Load dataset data loader
==> (3/5) Load roi proposals data
==> (4/5) Load model: /home/wangty/geekvc/fastrcnn-example-torch/data/exp/pascal_voc_2007/vgg16/model_final.t7
==> (5/5) Test Fast-RCNN model
/home/wangty/torch/install/bin/luajit: ...e/wangty/torch/install/share/lua/5.1/fastrcnn/Tester.lua:72: bad argument #2 to 'getFilename' (string expected, got table)
stack traceback:
[C]: in function 'getFilename'
...e/wangty/torch/install/share/lua/5.1/fastrcnn/Tester.lua:72: in function 'getImage'
...e/wangty/torch/install/share/lua/5.1/fastrcnn/Tester.lua:114: in function 'testOne'
...e/wangty/torch/install/share/lua/5.1/fastrcnn/Tester.lua:208: in function 'test_no_cache'
...e/wangty/torch/install/share/lua/5.1/fastrcnn/Tester.lua:280: in function 'test'
/home/wangty/torch/install/share/lua/5.1/fastrcnn/test.lua:34: in function 'test'
test.lua:58: in main chunk
[C]: in function 'dofile'
...ngty/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00406620 |
I've built my
After these steps try to see if you still get the same error as before. |
Ok, I did as you told me, the voc and coco dataset testing goes well, that's great! |
Hi, farrajota
I trained and tested the fastrcnn with voc dataset, everything goes well.
I trained the fastrcnn in coco dataset with no error, when I tested the accuracy with the trained model, error occured:
-netType vgg16.
The text was updated successfully, but these errors were encountered: