Skip to content

Classifying the wrong image in federated learning duet_mnist url_image example #424

@mohres

Description

@mohres

Description

In federated-learning -> duet_mnist -> MNIST_Syft_Data_Scientist notebook, the function classify_url_image does not really classify the received image's url, it predicts the value of image_1 which is an example from the test dataset.

How to Reproduce

  1. Go to 'federated-learning/duet_mnist/MNIST_Syft_Data_Scientist.ipynb'
  2. Scroll down to 'classify_url_image', notice that the function only shows the received image in line plt.imshow(im, ..., but predicts a different one in line class_num, preds = classify_local(image_1, local_model)

Expected Behavior

The expected behavior is that the function downloads the given image image_url, displays it, and predicts the digit that it represents.

Screenshots

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: Bug 🐛Some functionality not working in the codebase as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions