EvilPort2 / Sign-Language

A very simple CNN project.
759 stars 354 forks source link

error while training data #17

Closed lohithareddym closed 5 years ago

lohithareddym commented 5 years ago

i am getting the following and yes there is no file and how is the code getting executed for u??

C:\Users\HP\Desktop\Sign-Language-master>python cnn_tf.py Traceback (most recent call last): File "cnn_tf.py", line 114, in tf.app.run() File "C:\Python35\lib\site-packages\tensorflow\python\platform\app.py", line 124, in run _sys.exit(main(argv)) File "cnn_tf.py", line 84, in main with open("train_images", "rb") as f: FileNotFoundError: [Errno 2] No such file or directory: 'train_images'

Sahil9771 commented 5 years ago

Hello, How did you resolve this issue, I'm having the same problem while running the code.

EvilPort2 commented 5 years ago

use python load_images.py

Sahil9771 commented 5 years ago

@EvilPort2 I ran the file and now i am getting a value error as follows:

Traceback (most recent call last): File "load_images.py", line 21, in images_labels = pickle_images_labels() File "load_images.py", line 17, in pickle_images_labels images_labels.append((np.array(img, dtype=np.int32), int(label))) ValueError: invalid literal for int() with base 10: 'gestures\0\1.jp' Please revert asap. Thank you.

EvilPort2 commented 5 years ago

That should not happen. Check if the files in your machine and GitHub is same or not. Btw the repo is updated. So download the latest files

Sahil9771 commented 5 years ago

I cloned the project in morning and I'm using the tensorflow version which is causing the problem. Thank you.

On Wed, Apr 3, 2019, 6:45 PM EvilPort notifications@github.com wrote:

That should not happen. Check if the files in your machine and GitHub is same or not. Btw the repo is updated. So download the latest files

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/EvilPort2/Sign-Language/issues/17#issuecomment-479484262, or mute the thread https://github.com/notifications/unsubscribe-auth/AmlUvRTeJWmw4Xh47W8CPK7A-A6QBjyeks5vdKmOgaJpZM4W_Vpc .

kirtigodani commented 5 years ago

try executing python flip_images.py again

On Wed, Apr 3, 2019 at 6:29 PM Sahil notifications@github.com wrote:

@EvilPort2 https://github.com/EvilPort2 I ran the file and now i am getting a value error as follows:

Traceback (most recent call last): File "load_images.py", line 21, in images_labels = pickle_images_labels() File "load_images.py", line 17, in pickle_images_labels images_labels.append((np.array(img, dtype=np.int32), int(label))) ValueError: invalid literal for int() with base 10: 'gestures\0\1.jp' Please revert asap. Thank you.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/EvilPort2/Sign-Language/issues/17#issuecomment-479478062, or mute the thread https://github.com/notifications/unsubscribe-auth/AfeE3jMOLH5LZbBmJRng9pAY0IdHSWiUks5vdKWigaJpZM4W_Vpc .

EvilPort2 commented 5 years ago

So I am guessing the problem is solved??

EvilPort2 commented 5 years ago

Ok. There was a bug in the load_images.py I just saw. I did not think about cross compatibility while writing the code. This problem occurred to Windows users. Now the problem should be solved for Windows users.

akzhmdn commented 4 years ago

can i use tensorflow 2.0?

Athira97 commented 4 years ago

Hello, when I tried running the flip_images.py it ran successfully for quite a while and then gave a traceback error. In load_images.py also i got importError: DLL load failed. from sklearn.utils import shuffle. Please revert back asap. Thank you