PeterL1n / RobustVideoMatting

Robust Video Matting in PyTorch, TensorFlow, TensorFlow.js, ONNX, CoreML!
https://peterl1n.github.io/RobustVideoMatting/
GNU General Public License v3.0
8.53k stars 1.13k forks source link

torchscript inference error #173

Open natxopedreira opened 2 years ago

natxopedreira commented 2 years ago

Hello

Im getting this extrange error when running inference in c++... i never saw this before so, maybe someone has a clue on whats happening??

Thanks

/tmp/llvm/lib/Support/BranchProbability.cpp:41: llvm::BranchProbability::BranchProbability(uint32_t, uint32_t): AssertionNumerator <= Denominator && "Probability cannot be bigger than 1!"' failed. `

zhanghongyong123456 commented 2 years ago

Hello

Im getting this extrange error when running inference in c++... i never saw this before so, maybe someone has a clue on whats happening??

Thanks

/tmp/llvm/lib/Support/BranchProbability.cpp:41: llvm::BranchProbability::BranchProbability(uint32_t, uint32_t): AssertionNumerator <= Denominator && "Probability cannot be bigger than 1!"' failed. `

Can you share the code for converting.pth model to.PT(.torchscript) model