New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我的环境下,读取模型文件时发生了错误 #11
Comments
一样遇到了,不知道是不是需要最新的pytorch |
一样遇到了 |
installation is updated. |
Thank you. I made it |
csrc/cpu/mish_cpu.obj build\temp.win-amd64-3.8\Release\csrc/cuda/mish_cuda.obj build\temp.win-amd64-3.8\Release\csrc/cuda/mish_kernel.obj /OUT:build\lib.win-amd64-3.8\mish_cuda_C.cp38-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.8\Release\csrc/cpu_C.cp38-win_amd64.lib
File "C:\Users\Administrator.SC-201905102106\Desktop\ScaledYOLOv4-yolov4-large\models\experimental.py", line 137, in attempt_load 还是报错 |
@WongKinYiu 大佬看下 |
|
when I run: Report an error: Do you know how to solve it?
|
you could try https://github.com/JunnYu/mish-cuda |
@WongKinYiu 你好,导出onnx时出错:ONNX export failure: ONNX export failed: Couldn't export Python operator MishCudaFunction。这种还需要更改哪一块代码么? |
這比較麻煩 得改用pytorch原生程式碼構建mish 但會比較慢也比較吃資源 class Mish(nn.Module): # https://github.com/digantamisra98/Mish
def forward(self, x):
return x * F.softplus(x).tanh() |
感谢大佬工作! 我好像读不出来你的模型
python3命令行下,使用torch 1.6版本
输入:
import torch
model = torch.load('yolov4-p5.pt')
返回如下错误:
File "/home/popzq/.conda/envs/zpy/lib/python3.7/site-packages/torch/serialization.py", line 765, in _legacy_load
result = unpickler.load()
ModuleNotFoundError: No module named 'mc'
The text was updated successfully, but these errors were encountered: