DBraun / PyTorchTOP

GPU PyTorch TOP in TouchDesigner with CUDA-enabled OpenCV
Other
77 stars 5 forks source link

Error loading model file not found constants.pkl #10

Closed launchd closed 3 years ago

launchd commented 3 years ago

After loading the plugin in the 'cplusplus_background_matting' TOP, I receive an error loading the model file on that TOP: Error: Error loading model: [enforce fail at ..\..\caffe2\serialize\inline_container.cc:222] . file not found: archive/constants.pkl (/project1/cplusplus_background_matting)

I am using the 'pytorch_mobilenetv2.pth' model, but no matter which model I try this occurs. cpperror2

DBraun commented 3 years ago

I think you downloaded the wrong file, the ones that have pytorch as a prefix. We want the ones that start with torchscript_.

launchd commented 3 years ago

The torchscript_ prefix models also give me the same issue. But it's good to know I should be using those models, thank you.

DBraun commented 3 years ago

Can you upload another screenshot? Which model are you using and what are the settings on the C++ TOP? The Bytes per Input model etc.

launchd commented 3 years ago

Fixed, I was using the wrong torchscript model files.