GithubHelp home page GithubHelp logo

idejie / bottom-up-attention-colab Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 24.42 MB

License: MIT License

CMake 0.67% Makefile 15.35% Dockerfile 0.02% HTML 0.04% CSS 0.06% Jupyter Notebook 58.11% C++ 18.70% Shell 0.35% Python 4.88% Cuda 1.55% MATLAB 0.22% C 0.06%

bottom-up-attention-colab's People

Contributors

idejie avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bottom-up-attention-colab's Issues

Unable to run it with python 3

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!

generate_tsv_36 error

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 !

No module named 'caffe._caffe

Hello ,I follow the steps to run
when run this !python /content/tools/generate_tsv.py
"No module named 'caffe._caffe'"

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.