idejie / bottom-up-attention-colab Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Thanks so much for the repo, great work! However, after I followed your steps to install Caffe and cv2, it's installed with the default python 3 instead of python 2.7 since colab deprecated python 2 already.
I can manage to run generate_tsv_36.py by enforcing "!python2 generate_tsv_36.py". But the Caffe and cv2 packages are not installed in the colab python2 directory.
Do you have any idea how I may set up the environment for python 2 and solve this? Thanks again!
Hi, thank you for your work !
I changed generate_tsv.py
to generate_tsv_36.py since the former didn't exist
So when I run the following cell in the colab
!python tools/generate_tsv_36.py --split flickr30k --def /content/models/vg/ResNet-101/faster_rcnn_end2end_final/test.prototxt --net /content/resnet101_faster_rcnn_final_iter_320000.caffemodel --out 'drive/My Drive/f30k_resnet101_faster_rcnn_genome.tsv' --cfg /content/experiments/cfgs/faster_rcnn_end2end_resnet.yml
I get:
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 267, in _bootstrap
self.run()
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "tools/generate_tsv_36.py", line 185, in generate_tsv
result = get_detections_from_im(net, im_file, image_id)
File "tools/generate_tsv_36.py", line 90, in get_detections_from_im
scores, boxes, attr_scores, rel_scores = im_detect(net, im)
File "/content/tools/../lib/fast_rcnn/test.py", line 123, in im_detect
blobs, im_scales = _get_blobs(im, boxes)
File "/content/tools/../lib/fast_rcnn/test.py", line 104, in _get_blobs
blobs['data'], im_scale_factors = _get_image_blob(im)
File "/content/tools/../lib/fast_rcnn/test.py", line 34, in _get_image_blob
im_orig = im.astype(np.float32, copy=True)
AttributeError: 'NoneType' object has no attribute 'astype'
Do you have an idea why ? Did someone manage to make the colab work ? Thank you !
目前我运行的colab上分配的gpu是Tesla K80,版本是11.2,然后运行提取特征时报错?请问有什么好的解决办法嘛
Hello ,I follow the steps to run
when run this !python /content/tools/generate_tsv.py
"No module named 'caffe._caffe'"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.