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

Fix classifying the wrong image in FL duet_mnist #425

Open
wants to merge 1 commit into
base: foundations-of-private-computation
Choose a base branch
from

Conversation

mohres
Copy link

@mohres mohres commented Jul 15, 2022

Fix FL duet_mnist classify_url_image function classifying the wrong image

Description

This PR solves the issue of Classifying the wrong image in federated learning duet_mnist url_image example. the function classify_url_image does not really classify the received image's URL; it displays the received image im but predicts the value of image_1, which is an example from the test dataset.
The solution resizes and converts the Image object to a tensor object and sends the object to classifıcatıon functıon classify_local

Affected Dependencies

None

How has this been tested?

  • Uncommenting the function's test cell and running it shows that it classifies the image successfully.

Checklist

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

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.

2 participants