ssd.pytorch icon indicating copy to clipboard operation
ssd.pytorch copied to clipboard

运行eval.py文件时,出现权重是zip格式的报错咋回事?

Open chenjjjjuu opened this issue 4 years ago • 10 comments

报错如下:RuntimeError: /content/drive/My Drive/ssd.pytorch-master/weights/ssd300_voc_48500.pth is a zip archive (did you mean to use torch.jit.load()?

chenjjjjuu avatar Aug 16 '20 13:08 chenjjjjuu

请问这个代码可以在win系统运行吗

chnzhero avatar Oct 23 '20 02:10 chnzhero

报错如下:RuntimeError: /content/drive/My Drive/ssd.pytorch-master/weights/ssd300_voc_48500.pth is a zip archive (did you mean to use torch.jit.load()?

请问你再训练的时候成功了吗?损失怎么样啊,我的损失是一直维持在[4,8]这个区间一直下不去

ghost avatar Oct 28 '20 02:10 ghost

成功了,在1以下了,你可以把学习率调大一点,batch 大一点

---原始邮件--- 发件人: "Baijiang-Lai"<[email protected]> 发送时间: 2020年10月28日(周三) 上午10:20 收件人: "amdegroot/ssd.pytorch"<[email protected]>; 抄送: "chenjjjjuu"<[email protected]>;"Author"<[email protected]>; 主题: Re: [amdegroot/ssd.pytorch] 运行eval.py文件时,出现权重是zip格式的报错咋回事? (#511)

报错如下:RuntimeError: /content/drive/My Drive/ssd.pytorch-master/weights/ssd300_voc_48500.pth is a zip archive (did you mean to use torch.jit.load()?

请问你再训练的时候成功了吗?损失怎么样啊,我的损失是一直维持在[4,8]这个区间一直下不去

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

chenjjjjuu avatar Oct 28 '20 02:10 chenjjjjuu

成功了,在1以下了,你可以把学习率调大一点,batch 大一点 ---原始邮件--- 发件人: "Baijiang-Lai"<[email protected]> 发送时间: 2020年10月28日(周三) 上午10:20 收件人: "amdegroot/ssd.pytorch"<[email protected]>; 抄送: "chenjjjjuu"<[email protected]>;"Author"<[email protected]>; 主题: Re: [amdegroot/ssd.pytorch] 运行eval.py文件时,出现权重是zip格式的报错咋回事? (#511) 报错如下:RuntimeError: /content/drive/My Drive/ssd.pytorch-master/weights/ssd300_voc_48500.pth is a zip archive (did you mean to use torch.jit.load()? 请问你再训练的时候成功了吗?损失怎么样啊,我的损失是一直维持在[4,8]这个区间一直下不去 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

能给我一下你的batch_size的大小以及学习率吗,谢谢

ghost avatar Oct 28 '20 02:10 ghost

0.0001 32好像

---原始邮件--- 发件人: "Baijiang-Lai"<[email protected]> 发送时间: 2020年10月28日(周三) 上午10:56 收件人: "amdegroot/ssd.pytorch"<[email protected]>; 抄送: "chenjjjjuu"<[email protected]>;"Author"<[email protected]>; 主题: Re: [amdegroot/ssd.pytorch] 运行eval.py文件时,出现权重是zip格式的报错咋回事? (#511)

成功了,在1以下了,你可以把学习率调大一点,batch 大一点 … ---原始邮件--- 发件人: "Baijiang-Lai"<[email protected]> 发送时间: 2020年10月28日(周三) 上午10:20 收件人: "amdegroot/ssd.pytorch"<[email protected]>; 抄送: "chenjjjjuu"<[email protected]>;"Author"<[email protected]>; 主题: Re: [amdegroot/ssd.pytorch] 运行eval.py文件时,出现权重是zip格式的报错咋回事? (#511) 报错如下:RuntimeError: /content/drive/My Drive/ssd.pytorch-master/weights/ssd300_voc_48500.pth is a zip archive (did you mean to use torch.jit.load()? 请问你再训练的时候成功了吗?损失怎么样啊,我的损失是一直维持在[4,8]这个区间一直下不去 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

能给我一下你的batch_size的大小以及学习率吗,谢谢

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

chenjjjjuu avatar Oct 28 '20 03:10 chenjjjjuu

0.0001 32好像 ---原始邮件--- 发件人: "Baijiang-Lai"<[email protected]> 发送时间: 2020年10月28日(周三) 上午10:56 收件人: "amdegroot/ssd.pytorch"<[email protected]>; 抄送: "chenjjjjuu"<[email protected]>;"Author"<[email protected]>; 主题: Re: [amdegroot/ssd.pytorch] 运行eval.py文件时,出现权重是zip格式的报错咋回事? (#511) 成功了,在1以下了,你可以把学习率调大一点,batch 大一点 … ---原始邮件--- 发件人: "Baijiang-Lai"<[email protected]> 发送时间: 2020年10月28日(周三) 上午10:20 收件人: "amdegroot/ssd.pytorch"<[email protected]>; 抄送: "chenjjjjuu"<[email protected]>;"Author"<[email protected]>; 主题: Re: [amdegroot/ssd.pytorch] 运行eval.py文件时,出现权重是zip格式的报错咋回事? (#511) 报错如下:RuntimeError: /content/drive/My Drive/ssd.pytorch-master/weights/ssd300_voc_48500.pth is a zip archive (did you mean to use torch.jit.load()? 请问你再训练的时候成功了吗?损失怎么样啊,我的损失是一直维持在[4,8]这个区间一直下不去 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. 能给我一下你的batch_size的大小以及学习率吗,谢谢 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

好的,因为自己的机器显存不够,开始把batch_size调小了,我试一下32的损失

ghost avatar Oct 28 '20 03:10 ghost

你可以用Google colab ,我也用它跑的,不要钱

---原始邮件--- 发件人: "Baijiang-Lai"<[email protected]> 发送时间: 2020年10月28日(周三) 中午11:40 收件人: "amdegroot/ssd.pytorch"<[email protected]>; 抄送: "chenjjjjuu"<[email protected]>;"Author"<[email protected]>; 主题: Re: [amdegroot/ssd.pytorch] 运行eval.py文件时,出现权重是zip格式的报错咋回事? (#511)

0.0001 32好像 … ---原始邮件--- 发件人: "Baijiang-Lai"<[email protected]> 发送时间: 2020年10月28日(周三) 上午10:56 收件人: "amdegroot/ssd.pytorch"<[email protected]>; 抄送: "chenjjjjuu"<[email protected]>;"Author"<[email protected]>; 主题: Re: [amdegroot/ssd.pytorch] 运行eval.py文件时,出现权重是zip格式的报错咋回事? (#511) 成功了,在1以下了,你可以把学习率调大一点,batch 大一点 … ---原始邮件--- 发件人: "Baijiang-Lai"<[email protected]> 发送时间: 2020年10月28日(周三) 上午10:20 收件人: "amdegroot/ssd.pytorch"<[email protected]>; 抄送: "chenjjjjuu"<[email protected]>;"Author"<[email protected]>; 主题: Re: [amdegroot/ssd.pytorch] 运行eval.py文件时,出现权重是zip格式的报错咋回事? (#511) 报错如下:RuntimeError: /content/drive/My Drive/ssd.pytorch-master/weights/ssd300_voc_48500.pth is a zip archive (did you mean to use torch.jit.load()? 请问你再训练的时候成功了吗?损失怎么样啊,我的损失是一直维持在[4,8]这个区间一直下不去 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. 能给我一下你的batch_size的大小以及学习率吗,谢谢 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

好的,因为自己的机器显存不够,开始把batch_size调小了,我试一下32的损失

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

chenjjjjuu avatar Oct 28 '20 04:10 chenjjjjuu

你可以用Google colab ,我也用它跑的,不要钱 ---原始邮件--- 发件人: "Baijiang-Lai"<[email protected]> 发送时间: 2020年10月28日(周三) 中午11:40 收件人: "amdegroot/ssd.pytorch"<[email protected]>; 抄送: "chenjjjjuu"<[email protected]>;"Author"<[email protected]>; 主题: Re: [amdegroot/ssd.pytorch] 运行eval.py文件时,出现权重是zip格式的报错咋回事? (#511) 0.0001 32好像 … ---原始邮件--- 发件人: "Baijiang-Lai"<[email protected]> 发送时间: 2020年10月28日(周三) 上午10:56 收件人: "amdegroot/ssd.pytorch"<[email protected]>; 抄送: "chenjjjjuu"<[email protected]>;"Author"<[email protected]>; 主题: Re: [amdegroot/ssd.pytorch] 运行eval.py文件时,出现权重是zip格式的报错咋回事? (#511) 成功了,在1以下了,你可以把学习率调大一点,batch 大一点 … ---原始邮件--- 发件人: "Baijiang-Lai"<[email protected]> 发送时间: 2020年10月28日(周三) 上午10:20 收件人: "amdegroot/ssd.pytorch"<[email protected]>; 抄送: "chenjjjjuu"<[email protected]>;"Author"<[email protected]>; 主题: Re: [amdegroot/ssd.pytorch] 运行eval.py文件时,出现权重是zip格式的报错咋回事? (#511) 报错如下:RuntimeError: /content/drive/My Drive/ssd.pytorch-master/weights/ssd300_voc_48500.pth is a zip archive (did you mean to use torch.jit.load()? 请问你再训练的时候成功了吗?损失怎么样啊,我的损失是一直维持在[4,8]这个区间一直下不去 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. 能给我一下你的batch_size的大小以及学习率吗,谢谢 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. 好的,因为自己的机器显存不够,开始把batch_size调小了,我试一下32的损失 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

好的,今天才去跑了一下,但是在第510轮的时候报错了,下面是具体的报错原因,请问一下是为什么吗? image

ghost avatar Oct 29 '20 13:10 ghost

报错如下:RuntimeError: /content/drive/My Drive/ssd.pytorch-master/weights/ssd300_voc_48500.pth is a zip archive (did you mean to use torch.jit.load()?

我是在win系统下有这个错误,一开始是torch1.6版本跑好的权重,因为eval代码不兼容所以降到torch1.2再用之前的权重去评估就有这样的错误,请问你解决了吗?这个问题

Schweizliu avatar Nov 26 '20 01:11 Schweizliu

报错如下:RuntimeError: /content/drive/My Drive/ssd.pytorch-master/weights/ssd300_voc_48500.pth is a zip archive (did you mean to use torch.jit.load()?

你可以通过torch1.6下load_static_model 然后无压缩的写出来

Lr-2002 avatar Aug 14 '21 03:08 Lr-2002