-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not get the code to run properly #5
Comments
Hi, |
Ok thanks I ll try that version. One question: can I train the model just on CPU or do I must use GPU cuda accel? Asking because getting Colab to run on GPU with <TF 2.0 is very difficult not to say impossible nowadays. |
so after using TF1.5 the first error is gone but I have a new error , same as the one I had with TF1.12: !python -m acres.binarization.task --dataset-dir data/muenster_blur/ --train-steps 500 --job-dir logs/example/
There seems to be something silly happening where instead of getting the training images as input the code receives some string "version https://". As you can see I do not have any GPU acceleration on colab with TF1.5. Would you have an idea on how to fix this? thanks a lot |
ok, so I googled the error and found this thread. I renamed all the blur training images extensions under But now there is a piece of code somewhere which still expects the old name with the ".jpg" extension, not sure where it is. Probably easy to fix but I can not see where to change the code in your code base. Below the new error message, can you point me in the right direction?
thanks |
ok so I found the line in dataset.py where the image filenames extension is expected as .jpg and I did replace it with .jpeg, but that brought me back to the previous error, i.e. by changing the extensions of the images from .jpg to .jpeg I did not fix the previous error but I did create one earlier in the code... So I am back stuck with the error (full error log already provided above):
do you have any idea? |
I am facing the same problem. Did you find any solution this? @Tetsujinfr @vvolhejn |
@mainulquraishi i did give up on this. |
Hi, sorry for not replying. I'm afraid I don't have the time to maintain this project anymore. I found this StackOverflow thread and the answer seems pretty plausible - the type of the image is determined by "magic bytes" at the beginning of the file, so it seems like it's reading some kind of text file that starts with "version https://" rather than the expected magic bytes of the JPG format. It's possible that the issue is caused by the fact that the data files are stored using Git Large File Storage and need to be loaded separately. See the Installation section in the README. In either case, this was an experimental project and I don't think it's suitable for applications - the barcodes are unblurred, but I haven't had much luck trying to scan the unblurred barcodes using software. Good luck! |
Thanks, @vvolhejn and @Tetsujinfr. |
hi
first, thanks for sharing this great project! Looks really cool applied neural net.
I am trying to run the training on a colab instance but getting some python errors. I suspect this is due to some python dependencies versions mismatch but cannot figure out where the problem is.
Here are my commands:
Here is the error message I get:
I am not sure where the root cause is. I have tried to run with python2 and with python3 just in case but I got the same error.
Can you help please? Do I need to install specific versions of the dependencies like tf or numpy?
thanks a lot
The text was updated successfully, but these errors were encountered: