Closed sarmientoj24 closed 2 years ago
Thanks! Yes, I'm able to reproduce this issue with the following code. We will be looking at it
import torch
import bentoml
model = torch.hub.load('ultralytics/yolov5', 'yolov5s', pretrained=True)
tag = bentoml.pytorch.save("yolov5", model)
model = bentoml.pytorch.load("yolov5:latest")
throws exception: ModuleNotFoundError: No module named 'models'
hi @sarmientoj24! Not sure if you got through this issue or not, but I think @larme looked at this and we were able to get the fix in this latest release. With a7, I was not able able to reproduce the issue anymore. Can you confirm?
@sarmientoj24 Were you able to confirm if this works?
I actually haven't tried this since we veered away from using Torch Hub models into just using ONNX
I'm facing the same issue
@seyeonseanpark can you try this out https://github.com/bentoml/BentoML/issues/2602#issuecomment-1165259006
thank you! will this be supported in later releases?
We need some more rounds of discussion within the team about supporting torch hub. But would love to hear ideas from the community as well.
All progress now be tracked at #2704
Getting this error when using a custom YOLOv5 model I trained that I loaded and saved using torch hub.
Error
Packaging the model
Loading the model