Open SomaRe opened 7 months ago
Hey, I have the same problem with implementing a the modelo. Have you been able to resolve the issue, or could you share what steps you took in implementing your code? Any insights or tips would be greatly appreciated! Thanks in advance.
Hello,
I am currently working on a PyTorch assignment that involves choosing a research project (which utilizes PyTorch) for reproduction. The goal is to deepen our understanding of PyTorch through hands-on experience. After selecting the research paper and its associated code, I successfully executed the training phase and obtained the final model saved at
log/checkpoints/final_model_test-42_mvcbm-app.pth
. My next step is to implement an inference process, potentially integrating it into a simple Flask server, where the model predicts the likelihood of appendicitis from preprocessed images.However, I've not been able to setup the inference pipeline to accept image inputs and return confidence scores. Despite my efforts and seeking assistance from my teaching assistant, even they couldn't help me.
Here's the skeleton of the code I attempted, but I recognize it lacks essential components for successful inference:
Could anyone provide guidance or examples on how to properly load the trained model and perform inference with image/images data? Any insights or pointers to would be immensely appreciated.
My confusion also stems from how to handle multiple images for inference.
Thank you for your time and assistance.