Skip to content

Conversation

@ausmtomar
Copy link

1.) load_and_prep_image(image_path) and pred_and_plot(model, img, class_names) are functions that were defined in both app.py and pred.py i commented them out of app.py and imported pred.py in app.py.

2.) To display of the image with the prediction in matplotlib i added 3 lines of code

3.) In data.py i adjusted the path to relative path

4.) In pred.py i changed the parameter of tf.io.read_file(img) to tf.io.read_file(filename) which is now correct.

5.) i added the return pred_class

6.) I added all the modules required in the requirements.txt. You can now download all the modules at once by pip install -r requirements.txt

7.) also i updated tensorflow version

test
.

1.) load_and_prep_image(image_path) and pred_and_plot(model, img, class_names) are functions that were defined in both app.py and pred.py i commented them out of app.py and imported pred.py in app.py.

2.) To display of the image with the prediction in matplotlib i added 3 lines.

3.) In data.py i adjusted the path to relative path

4.) In pred.py i changed the parameter of tf.io.read_file(img) to tf.io.read_file(filename) which is now correct.

5.) i added the return pred_class

6.) I added all the modules required in the requirements.txt. You can now download all the modules at once by pip install -r requirements.txt

7.) also i updated tensorflow version
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

Successfully merging this pull request may close these issues.

1 participant