karimjedda / dahoam2017 Goto Github PK
View Code? Open in Web Editor NEWWorkshop code
Workshop code
Hey,
I wrote you on FB messenger the same, I'm trying to use your library, I set up virtualenv, installed dependencies, generated captchas, etc, didn't change any source, but when I launch $ python captcha_records.py, I get this crash:
Looking for images in './data/train_data'
>> Writing ./data/train.tfrecords
Traceback (most recent call last):
File "captcha_records.py", line 123, in <module>
tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)
File "/Users/gintas/Downloads/dahoam2017-master/dahoam/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "captcha_records.py", line 102, in main
conver_to_tfrecords(training_data, TRAIN_FILE)
File "captcha_records.py", line 62, in conver_to_tfrecords
label_raw = label_to_one_hot(label).tostring()
File "captcha_records.py", line 42, in label_to_one_hot
index.append(CHAR_SETS.index(c))
ValueError: substring not found
you said it might be because captcha generator isn't generating ans.txt or something, but looking at the source code it this repository, it means that this source isn't finished? Would you be able to commit the changes you have?
https://github.com/KarimJedda/dahoam2017/blob/master/solver/captcha_model.py#L112
correct_prediction = tf.equal(tf.argmax(logits,2), tf.argmax(labels,2))
tf.equal
is element-wise:
>>> a = [[1, 1, 1], [1,1,1]]
>>> b = [[1,0,0], [0,0,0]]
>>> tf.equal(a, b).eval()
array([[ True, False, False],
[False, False, False]], dtype=bool)
The code is true unless the result of tf.equal(a, b).eval()
is array([[False], [False]], dtype=bool)
, which is not the case.
Hello,
The captcha_record.py seems to work perfectly fine.
However, how can I evaluate it ? I mean, if I launch captcha_eval.py after stopping captcha_record.py, I just get a lot 0 precision as my computer doesn't remember the training.
How are we supposed to use it ?
Thanks in advance for your help
Is there any publication (report or paper) that you have made for this? It would be helpful. Im doing research on this topic (Captcha and Deep Learning [Tensorflow]). If you have done any paper or report I will refer to your that paper or report berfore doing something on this topic.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.