bottom-up-attention icon indicating copy to clipboard operation
bottom-up-attention copied to clipboard

Could not open test.prototxt

Open chlorane opened this issue 4 years ago • 2 comments

I'm using the res-101 network and tools/generate_tsv.py to extract bounding box features to a tab-separated-values (tsv) file. I'm using a new dataset based on cartoon series. So I run: python tools/generate_tsv.py --cfg experiments/cfgs/faster_rcnn_end2end_resnet.yml --def models/vg/ResNet-101/faster_rcnn_end2end/test.prototxt --out test2014_resnet101_faster_rcnn_genome.tsv --net data/faster_rcnn_models/resnet101_faster_rcnn_final.caffemodel --split cartoon

However, when I tried to run generate_tsv.py, an error happened: Process Process-1: Traceback (most recent call last): File "/home/chlorane/anaconda3/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap self.run() File "/home/chlorane/anaconda3/lib/python3.7/multiprocessing/process.py", line 99, in run self._target(*self._args, **self._kwargs) File "tools/generate_tsv.py", line 162, in generate_tsv net = caffe.Net(prototxt, caffe.TEST, weights=weights) RuntimeError: Could not open file ./models/vg/ResNet-101/faster_rcnn_end2end/test.prototxt

Even if I use the absolute path here, the error still happens. What's wrong and how can I solve it?

chlorane avatar Oct 09 '19 08:10 chlorane

Hi, I had the same problem. You can solve it by change the arges --def models/vg/ResNet-101/faster_rcnn_end2end/test.prototxt to --def models/vg/ResNet-101/faster_rcnn_end2end_final/test.prototxt. That's work for me!

ghost avatar Oct 15 '19 11:10 ghost

https://github.com/peteanderson80/bottom-up-attention/issues/71#issuecomment-542163318

Dear scholar, did you run the result? I got all zero and NAN in the second picture. I am so cunfused

image image

alice-cool avatar Jul 04 '21 04:07 alice-cool