Closed Stasolet closed 2 years ago
@Stasolet
set_backend()
is required.
eg.
import vega
from vega.model_zoo import ModelZoo
vega.set_backend("pytorch", "gpu")
model_desc = "<task path>/desc_0.json"
model_pth = "<task path>/model_0.pth"
model = ModelZoo.get_model(model_desc, model_pth)
Thanks!
Hello, thanks for your previous answer and your work!
How I can load fully trained CARS model in python script or jupyter notebook to variable? I have model_0.pth and desc_0.json. I try init model like in method
_init_model
inModelBuilder
class and got an errorValueError: can't find class type network class name PreOneStem in class registry
. I use this code:if I add
import vega.modules.preprocess
where definedPreOneStem
this code is work. Can you point out a mistake in my work?full traceback: