cabaf/sparseprop

Error in the Demo

fizamurtaza opened this issue · 4 comments

Hello

I want to run demo using this command line
python retrieve_proposals.py data/demo_input.csv data/demo_c3d.hdf5 data/class_induced_thumos14.pkl data/demo_proposals.csv

But I am getting following error
error

Although I have installed all the dependencies (as far as I know) which you mentioned in description but still I don't know how to solve this problem. Also I am new in Python and I am facing problem in understanding the error.
Kindly help me to remove this error.

Thanks in advance
Fiza Murtaza

cabaf commented

Hi Fiza,

Thanks for your interest in our work.

Unfortunately the traced error is not much informative due to the crash occurred inside a Parallel job. Try to reproduce the error in sequential mode: set n_jobs to 1 in this line and report back if the error persists.

Thank you for your kind reply.
Following error I got after setting n_jobs to 1 in https://github.com/cabaf/sparseprop/blob/master/sparseprop/retrieve.py#L108

image

cabaf commented

Thanks for reporting back. It seems SPAMs does not support the parameter linesearch_mode on windows. You can remove that key from the parameters dictionary: after this line write del params['linesearch_mode']. Let us know if it solves the problem.

Thank you so much Fabian 👍
Yes byy writing
del params['linesearch_mode'] after line https://github.com/cabaf/sparseprop/blob/master/sparseprop/retrieve.py#L100
solved the problem Thanks God :)

How I can learn coding in Python? Can you send me the tutorial links from where I can learn from very start??
Also Why you preferred Python over Matlab?