Closed shackenberg closed 11 years ago
The problem was caused by os.system(cmmd), which does not wait till the process finishes till it returns. Now replaced with subprocess.call(cmmd, shell=True).
Hello ! Hope you're fine. Sorry to re-open this issue
I'm facing the same errors despite the update of subprocess.call(cmmd, shell=True). here is the screenshot .
problem: when I check the file image_0001.jpg.sift does exist.
Please, help me!
Hi Edess,
can you try to change this line https://github.com/shackenberg/Minimal-Bag-of-Visual-Words-Image-Classifier/blob/master/sift.py#L93
to:
if exists(filename) is False | os.path.getsize(filename) == 0:
If this fixes your problem I will change it in the repo.
Hi shackenberg ,
I did as you said and changed " if exists(filename) != False | os.path.getsize(filename) == 0: " by " if exists(filename) is False | os.path.getsize(filename) == 0: "
And this yield to another error. here is the screenshot.
Actually, I found the same error when I was trying to find a solution (At that time, I made this like a comment """ if exists(filename) != False | os.path.getsize(filename) == 0: raise IOError("wrong file path or file empty: "+ filename)"""
Do you have any idea about the problem?
Sorry, no. I would have to try it out myself. But I probably wont have time in the next two or three weeks for that. :-(
But can you open a new issue, so that the issues don't get mixed up too much?
Okay! Thanks!
I also opened a new issue today (issue number 7)
I run
learn.py
with the Caltech101 dataset, but I get follwowing error message:But when I check the file
image_0285.jpg.sift
does exist.