Giter VIP home page Giter VIP logo

cdoersch / elementdiscovery Goto Github PK

View Code? Open in Web Editor NEW
20.0 20.0 5.0 3.55 MB

Author's implementation of "Visual Element Discovery as Discriminative Mode Seeking," Doersch, Gupta & Efros, NIPS 2013

Home Page: http://graphics.cs.cmu.edu/projects/discriminativeModeSeeking/

License: MIT License

MATLAB 15.86% C# 16.41% Pascal 17.43% CSS 10.40% Ruby 0.05% JavaScript 3.88% Shell 0.01% Perl 0.93% C++ 26.29% C 0.80% Python 7.62% M 0.24% Erlang 0.09%

elementdiscovery's People

Contributors

cdoersch avatar

Stargazers

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

Watchers

 avatar  avatar

elementdiscovery's Issues

Infinite loop caused by 'idleprocs is redundant'

Hi, thank you for this work!

I am trying to run this code on a Matlab 2012A version on a Ubuntu 11.04 VM. While running the code in parallel, I get the following error. Do you have any workarounds for this issue? Appreciate your help.


[ds.sample.patches{dsidx},
ds.sample.feats{dsidx}]=sampleRandomPatchesbb(ds.sample.initInds(dsidx),20);:
278+2/280
Warning: The value of local variables may have been changed to match the
globals. Future versions of MATLAB will require that you declare
a variable to be global before you use that variable.

In dsprinterr at 1
In dsdistprocmgr>readslave_atomic at 451
In dsdistprocmgr>readslave at 332
In dsdistprocmgr at 125
In dsrundistributed at 109
In indoor67_main_singleclass at 215
idleprocs is redundant
file: '/home/omkar/elementdiscovery/dswork/dsdistprocmgr.m'
name: 'readslave_atomic'
line: 450

file: '/home/omkar/elementdiscovery/dswork/dsdistprocmgr.m'
name: 'readslave'
line: 332

file: '/home/omkar/elementdiscovery/dswork/dsdistprocmgr.m'
name: 'dsdistprocmgr'
line: 125

file: '/home/omkar/elementdiscovery/dswork/dsrundistributed.m'
name: 'dsrundistributed'
line: 109

file: '/home/omkar/elementdiscovery/indoor67_main_singleclass.m'
name: 'indoor67_main_singleclass'
line: 215

Matrix dimensions must agree.
file: '/home/omkar/elementdiscovery/dswork/dsdistprocmgr.m'
name: 'readslave_atomic'
line: 457

file: '/home/omkar/elementdiscovery/dswork/dsdistprocmgr.m'
name: 'readslave'
line: 332

file: '/home/omkar/elementdiscovery/dswork/dsdistprocmgr.m'
name: 'dsdistprocmgr'
line: 125

file: '/home/omkar/elementdiscovery/dswork/dsrundistributed.m'
name: 'dsrundistributed'
line: 109

file: '/home/omkar/elementdiscovery/indoor67_main_singleclass.m'
name: 'indoor67_main_singleclass'
line: 215

Issue with the "findOverlapping3" function

As discussed I just created the new issue for the problem. Below is the small snippet of code.

findOverlapping3('ds.nextround.prevdets',find(ds.classperbatch==ds.uniquelabels(dsidx)),[ds.batchfordetr(:,1),ds.classperbatch(ds.batchfordetr(:,2))],struct('ndetsforoverlap',.5,'maxoverlaps',3,'clusterer','agglomerative'))

I get below error in the log file:

sort by image
compute overlaps
ismapreducer:1
Undefined variable "internal" or class "internal.stats.getParamVal".
file: '/data/chercheurs/kulkarnip/dev/elementdiscovery-master/linkage2.m'
name: 'linkage2'
line: 154

file: [1x73 char]
name: 'findOverlapping3'
line: 189

file: [1x82 char]
name: 'dsmapredrun'
line: 5

file: [1x83 char]
name: 'dsmapreducer'
line: 316

file: [1x90 char]
name: 'dsmapreducerbarrier'
line: 10

file: [1x87 char]
name: 'dsmapreducerwrap'
line: 6
MATLAB:undefinedVarOrClass

checkpassed =

1
Could you please help me resolve this problem.

Thanks
Praveen

aggregate_covariance infinite loop

A few people have emailed me about this now...

When the code starts running, you may see something like this:

aggregate_covariance: 0+0/1500
working workers: 
0 idle.
aggregate_covariance: 0+0/1500
working workers: 
0 idle.
aggregate_covariance: 0+0/1500
working workers: 
0 idle.
aggregate_covariance: 0+0/1500
working workers: 
0 idle.
aggregate_covariance: 0+0/1500
working workers: 
0 idle.
...

Note that if "working workers:" has numbers beside it, e.g. like:

working workers: 1 2 3 4

This means that the code is running fine! aggregate_covariance can take a while. If you want to monitor it, you can look at the worker logs in dswork's output directory in ds/sys/distproc/outputXX.log

However, if "working workers:" is blank, as above, it most likely means that the workers have not started properly, and so the main thread will keep waiting for them forever. There are many reasons this can happen. The first place to check is ds/sys/distproc/outputXX.log. If there's an error there, try to fix it. If these files don't exist (which is more likely), it means the workers crashed during startup. There should be a file called ds/sys/distproc/qsubfileXX.sh for each worker. Try running one of those from the command line. If it gives you an error, try to fix it. One common problem is that your shell cannot find matlab. To fix this, the easiest approach is to edit dswork/dsmapredopen.m so that matlabbin points to the matlab exectuable on your system. If this still doesn't work, comment below.

I am getting an error in line number 45 of file 'autoclust_optimize.m'

In line number 45 of file 'autoclust_optimize.m' which contains below code
[~,candidatepatches]=ismember(mydetrs,prevdets(:,6),'R2012a');
I am getting an Error:
MATLAB:ISMEMBER:UnknownFlag

I am using the Matlab version number R2009b. So the flag 'R2012a' is unknown. If I try to remove the flag or use the 'legacy' option, I get the error as 'classperbatch wrong' at line number 47.
What would be the alternate line of code to make it work on R2009b.

Thanks
Praveen

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.