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

Model inference in one step #19

Closed
kasra-hosseini opened this issue Jan 31, 2022 · 2 comments
Closed

Model inference in one step #19

kasra-hosseini opened this issue Jan 31, 2022 · 2 comments
Assignees

Comments

@kasra-hosseini
Copy link
Member

kasra-hosseini commented Jan 31, 2022

Summary

Currently, we first need to patchify an image and then do the model inference (in two separate steps). In this issue, we plan to have a method that does both steps, i.e.,

# example interface
my_classifier.inference(path2image, **kwds for the slice method, including patch size, ...)
my_classifier.plot()

TODO

  • Refer to https://github.com/alan-turing-institute/mapreader-plant-scivision. Here, we have a function/method called "predict" that does model inference on an image. Under the hood, it slices an image into patches, does model inference on the patches and then plot the results (and return the predicted labels).
  • It would be interesting to have a similar function/method in MapReader.
@kasra-hosseini kasra-hosseini created this issue from a note in Project board (Upcoming) Jan 31, 2022
@kasra-hosseini kasra-hosseini self-assigned this Jan 31, 2022
@kasra-hosseini kasra-hosseini moved this from Upcoming to In progress in Project board Feb 1, 2022
@kasra-hosseini
Copy link
Member Author

kasra-hosseini commented Feb 25, 2022

@kasra-hosseini
Copy link
Member Author

kasra-hosseini commented Mar 17, 2022

As mentioned above, this is now implemented here: https://github.com/alan-turing-institute/mapreader-plant-scivision/blob/main/mapreader-plant-scivision/model.py

Also, we have a notebook on scivision gallery: https://github.com/scivision-gallery/plant-phenotyping-classification (it is WIP)

Project board automation moved this from In progress to Done Mar 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant