GithubHelp home page GithubHelp logo

robert0812 / deepsaldet Goto Github PK

View Code? Open in Web Editor NEW
70.0 70.0 45.0 3.32 MB

Source code for our CVPR 2015 work on saliency detection by multi-context deep learning

Python 10.61% Shell 0.35% Makefile 0.78% HTML 0.07% CSS 0.38% C++ 82.31% Cuda 3.81% Protocol Buffer 1.28% MATLAB 0.40%

deepsaldet's People

Contributors

robert0812 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deepsaldet's Issues

Models not found

Hi,
I cannot download the models via Dropbox. It seems that Dropbox has temporarily disabled the account as it is generating too much traffic.
Is there other way rather than Baidu or Dropbox to share the models?
Thank you,

questions about figure 3

Hi, in figure 3: the output of global-context branch is fc8 with 2 neurons, but how can it be a binary map and downsampled to 64x64 and then flattened into 4096 vector? Also, as mentioned in the paper

Superpixel segmentation is firstly performed on images using the SLIC method, and the input of global-context CNN is a superpixel-centered large context window including the full image.

Is there only one superpixel per image? I found SLIC would generate many superpixels for each image, Can u tell more detail on this part? thanks.

pytorch

could you offer the pytorch code?
thanks

Problem compiling Caffe: /bin/ld: cannot find -lblas

Hi, I can successfully compile the caffe from caffe.berkeleyvision.org/. But I failed to compile the caffe in caffe-sal folder and got the following problem:

/bin/ld: cannot find -lblas
collect2: error: ld returned 1 exit status
make: *** [.build_release/lib/libcaffe.so] Error 1

Is anything important that i missed?

Problem compiling Caffe

Hi,

I am facing errors while compiling the caffe contained in the caffe-sal folder.
running the command 'make all' results in error.
How do I compile the caffe-sal version of caffe. Any help would be really appreciated. Thanks.

How to solve this problem?

Downloading...
--2019-05-07 12:51:20--  http://dl.caffe.berkeleyvision.org/caffe_ilsvrc12.tar.gz
Resolving dl.caffe.berkeleyvision.org (dl.caffe.berkeleyvision.org)... 169.229.222.251
Connecting to dl.caffe.berkeleyvision.org (dl.caffe.berkeleyvision.org)|169.229.222.251|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17858008 (17M) [application/octet-stream]
Saving to: ‘caffe_ilsvrc12.tar.gz’

caffe_ilsvrc12.tar.gz                100%[======================================================================>]  17.03M  3.73MB/s    in 5.9s

2019-05-07 12:51:27 (2.90 MB/s) - ‘caffe_ilsvrc12.tar.gz’ saved [17858008/17858008]

Unzipping...
Done.
/home/winDisk/GepengJi/SOD/003-MCDL
Traceback (most recent call last):
  File "predict_stage1.py", line 11, in <module>
    import datum
  File "/home/winDisk/GepengJi/SOD/003-MCDL/datum.py", line 32, in <module>
    options=None),
  File "/home/jigepeng/.conda/envs/caffe-SSAV/lib/python2.7/site-packages/google/protobuf/descriptor.py", line 497, in __new__
    _message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors should not be created directly, but only retrieved from their parent.
cp: cannot stat '_tmp/smaps_sc/*': No such file or directory
Traceback (most recent call last):
  File "predict_stage2.py", line 11, in <module>
    import datum
  File "/home/winDisk/GepengJi/SOD/003-MCDL/datum.py", line 32, in <module>
    options=None),
  File "/home/jigepeng/.conda/envs/caffe-SSAV/lib/python2.7/site-packages/google/protobuf/descriptor.py", line 497, in __new__
    _message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors should not be created directly, but only retrieved from their parent.
cp: cannot stat '_tmp/smaps_mc/*': No such file or directory

Compile the impact of the caffe version

The caffe I compiled is the caffe-rc5 given by the official website. Can you run your code? If you need to make changes, where do you want to make changes, and need to recompile?

Problem running on CPU machine

Got this error running on a CPU machine (which had Caffe installed earlier), after following all the steps listed -


F1015 23:31:27.377449  4597 common.cpp:53] CPU-only Mode
*** Check failure stack trace: ***
    @     0x7efe9b0e9dcd  google::LogMessage::Fail()
    @     0x7efe9b0ebfb2  google::LogMessage::SendToLog()
    @     0x7efe9b0e9953  google::LogMessage::Flush()
    @     0x7efe9b0ec8ad  google::LogMessageFatal::~LogMessageFatal()
    @           0x445960  caffe::Caffe::SetDevice()
    @           0x4108b4  feature_extraction_pipeline<>()
    @     0x7efe98661ec5  __libc_start_main
    @           0x40bdd7  (unknown)
Aborted (core dumped)
Traceback (most recent call last):
  File "predict_stage1.py", line 161, in <module>
    main()
  File "predict_stage1.py", line 138, in main
    outputs = leveldb2ndarray(dbfolder=leveldb_folder, num_feat=num_window, dim_feat=2)
  File "predict_stage1.py", line 42, in leveldb2ndarray
    dt.ParseFromString(db.Get('%d' %(idx)))
KeyError
Exception TypeError: TypeError("'NoneType' object is not callable",) in <bound method UmfpackContext.new_del of <scipy.sparse.linalg.dsolve.umfpack.umfpack.UmfpackContext object at 0x7feaa8df2350>> ignored
cp: cannot stat ‘_tmp/smaps_sc/*’: No such file or directory

Any ideas what might be going wrong?

Exception TypeError: TypeError("'NoneType' object is not callable",)

Loading images ...
Superpixel segmentation ...
Extracting windows from 0-th image ... [Total: 10]
Extracting windows from 1-th image ... [Total: 10]
Extracting windows from 2-th image ... [Total: 10]
Extracting windows from 3-th image ... [Total: 10]
Extracting windows from 4-th image ... [Total: 10]
Extracting windows from 5-th image ... [Total: 10]
Extracting windows from 6-th image ... [Total: 10]
Extracting windows from 7-th image ... [Total: 10]
Extracting windows from 8-th image ... [Total: 10]
Extracting windows from 9-th image ... [Total: 10]
1023
E0702 16:22:40.293716 7705 extract_features.cpp:49] Using GPU
E0702 16:22:40.293944 7705 extract_features.cpp:55] Using Device_id=0
E0702 16:22:42.401402 7705 extract_features.cpp:135] Extacting features for 1024 images ...
E0702 16:22:45.945432 7705 extract_features.cpp:173] Extracted features of 1000 query images for feature blob fc8_msra10k
E0702 16:22:46.005468 7705 extract_features.cpp:185] Extracted features of 1024 query images for feature blob fc8_msra10k
E0702 16:22:46.005511 7705 extract_features.cpp:189] Successfully extracted the features!
Exception TypeError: TypeError("'NoneType' object is not callable",) in <bound method UmfpackContext.new_del of <scipy.sparse.linalg.dsolve.umfpack.umfpack.UmfpackContext object at 0x7f9c0aa0aa50>> ignored

The saliency images are generated, but with this error information. Is it OK?

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.