shubham99bisht / Handwritten-digit-recognition-MNIST

Handwritten Digit Recognition using Convolutional Neural Networks in Python with Keras on live camera
42 stars 19 forks source link

Error on file digit_recogniser.py #4

Closed Akashdhiman290 closed 4 years ago

Akashdhiman290 commented 4 years ago

"No module found mnist_test"....when we import the file this error is occur

shubham99bisht commented 4 years ago

Hello @Akashdhiman290 thanks for letting me, although there seems no reason for this error as the file exists in the main directory itself, but a recent merge with a PR might have caused this issue. I'll check and let you know soon.

Meanwhile, would you please share details like how you're running the file and python version?

shubham99bisht commented 4 years ago

@Akashdhiman290 According to my tests, everything seems to work fine. Please share details on how you got the issue. On which platform are you using, I've tested on MacOs and Ubuntu.

Akashdhiman290 commented 4 years ago

i m using jupiter notebook. python version 3. when i run digit_recogniser.py file ...there is an error that "No module name as mnist_test". adssa.docx

Akashdhiman290 commented 4 years ago

Can u send me the .ipynb file of digit_recoganiser

Akashdhiman290 commented 4 years ago

I run three files...1st mnist_train.ipynb .....2nd mnist_test.ipynb these two file are run successfully. but error in 3rd file i.e. digit_recogniser.py ....plz check this error

shubham99bisht commented 4 years ago

Dude, digit_recogniser.py file has a UI part associated which takes the input from live-cam. You can't run that file on a jupyter notebook. The corresponding jupyter notebook is mnist_test.ipynb which loads the model, further you can do the testing in a similar way as shown here

Akashdhiman290 commented 4 years ago

what should i do now...

Akashdhiman290 commented 4 years ago

tell me step wise...

Akashdhiman290 commented 4 years ago

how can i take input from my webcam

Akashdhiman290 commented 4 years ago

how i run this file i.e. digit_recogniser.py

shubham99bisht commented 4 years ago

To run the file, you can directly run the command

python3 digit_recognier.py

on your command prompt or terminal. There are some dependencies which you can install using pip.

Akashdhiman290 commented 4 years ago

what things i need to install

Akashdhiman290 commented 4 years ago

error in terminal image

Akashdhiman290 commented 4 years ago

devices = tf.config.list_logical_devices() AttributeError: module 'tensorflow' has no attribute 'config' thiis error occur in terminal

shubham99bisht commented 4 years ago

Please try pulling the repo again, I have made some changes which might solve this error.