Skip to content
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

How much Accuracy is achieved? #2

Open
Zaibjee opened this issue Nov 21, 2016 · 13 comments
Open

How much Accuracy is achieved? #2

Zaibjee opened this issue Nov 21, 2016 · 13 comments

Comments

@Zaibjee
Copy link

Zaibjee commented Nov 21, 2016

Hi zakizhou
This is a wonderful work, i would like to know that how much accuracy you have achieved on your model?

@zakizhou
Copy link
Owner

zakizhou commented Nov 25, 2016

Thank you and sorry to be late, I trained it in single tesla K20m for 40 minutes, and reached a peak accuracy about 86% on validation set, adding dropout or increasing the scale of parameters should still improve the accuracy.

@Zaibjee
Copy link
Author

Zaibjee commented Nov 28, 2016

ok and thanks for your reply

@Zaibjee
Copy link
Author

Zaibjee commented Nov 28, 2016

Zakizhou can you kindly help in this regard:
The following error occurred while running: python model/captcha_producer.py -n 50000 -p "images/train"

Traceback (most recent call last):
File "model/captcha_producer.py", line 39, in
main()
File "model/captcha_producer.py", line 35, in main
producer.write(number_to_write, os.path.join(path, str(i)+"_"+number_to_write+".png"))
File "/home/zaib/.local/lib/python3.5/site-packages/captcha/image.py", line 53, in write
im = self.generate_image(chars)
File "/home/zaib/.local/lib/python3.5/site-packages/captcha/image.py", line 220, in generate_image
self.create_noise_curve(im, color)
File "/home/zaib/.local/lib/python3.5/site-packages/captcha/image.py", line 127, in create_noise_curve
y1 = random.randint(h / 5, h - int(h / 5))
File "/home/zaib/anaconda3/lib/python3.5/random.py", line 218, in randint
return self.randrange(a, b+1)
File "/home/zaib/anaconda3/lib/python3.5/random.py", line 182, in randrange
raise ValueError("non-integer arg 1 for randrange()")
ValueError: non-integer arg 1 for randrange()

@zakizhou
Copy link
Owner

zakizhou commented Nov 28, 2016

@Zaibjee Sorry I'm afraid I don't have time right now to fix this bug, it ran normally on my PC. But I have already converted training and validation images to tfrecords, but I don't know how to share those files with others, maybe upload to some cloud storage? If you need it, I can send it to you with email(leave you email here), then you can directly train this model without manually generating data.

@Zaibjee
Copy link
Author

Zaibjee commented Nov 28, 2016

my email address is zaibshah889@yahoo.com
thanks

@zakizhou
Copy link
Owner

@Zaibjee already sent , about 350M, uncompress it you get two tfrecords file namely train.tfrecords and validation.tfrecords, put them in the images/tfrecords/ folder and then you can run the training part

@Zaibjee
Copy link
Author

Zaibjee commented Nov 28, 2016

thanks a lot @zakizhou

@zakizhou
Copy link
Owner

@Zaibjee wait, there's some error with the email server, I am trying to resend

@Zaibjee
Copy link
Author

Zaibjee commented Nov 28, 2016

alright @zakizhou

@zakizhou
Copy link
Owner

@Zaibjee done

@Zaibjee
Copy link
Author

Zaibjee commented Nov 28, 2016

thanks for your time and help @zakizhou

@samirma
Copy link

samirma commented Jan 29, 2017

Hello @zakizhou
Could you send it to me too?
That is my email: samir.ma@gmail.com

Thanks

@santoja
Copy link
Contributor

santoja commented May 18, 2017

I fixed the "ValueError: non-integer arg 1 for randrange()" Error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants