km1562
km1562
I have the same problem, but when I read the paper, it seems that it is pre training and then fine-tuning on the resize module, so I changed the Pretrain...
> > I have the same problem, but when I read the paper, it seems that it is pre training and then fine-tuning on the resize module, so I changed...
> > I have the same problem, but when I read the paper, it seems that it is pre training and then fine-tuning on the resize module, so I changed...
> 你好,我想直接使用resizer缩放图像,最后可视化缩放结果。可以直接用resizer.py吗,他的输入格式是什么,就是代码中的x?我是直接用cv2.imread读取了图像输入到Resizer,报错`residual = self.interpolate(x) TypeError: interpolate() got an unexpected keyword argument 'recompute_scale_factor'`求解答 1 代码中的x仅仅只是特征图 2 你是否正确初始化了resizer这个类? self.interpolate = partial(F.interpolate, scale_factor=self.scale_factor, mode=self.interpolate_mode, align_corners=False, recompute_scale_factor=False) 原类是false,你是否置为了true? 至于详细,请看pytorch官方文档的interpolate,以及python的partial函数
> @km1562,你下载下来可以运行吗?我这显示代码少了两个文件:omegaconf,pytorch_lightning,这俩文件缺少没法运行,求指教 pip install omegaconf pip install pytorch_lightning —————— 这个直接谷歌可以查到吧。。。
"metrics": ["fots_metric"],
"metrics": ["fots_metric"], 问题跟#81一样
你的batch对吗,只有1个,原先不是8个,26W?少了一大半吧
> > 你的batch对吗,只有1个,原先不是8个,26W?少了一大半吧 > > 我的batch只能设置为1,设置超过1会显示cuda报错,我只有一个gpu。 那当然精度不够啊,你都没有原先的训练量。拉长batch,这个网络训练特别久
> > > > 你的batch对吗,只有1个,原先不是8个,26W?少了一大半吧 > > > > > > > > > 我的batch只能设置为1,设置超过1会显示cuda报错,我只有一个gpu。 > > > > > > 那当然精度不够啊,你都没有原先的训练量。拉长batch,这个网络训练特别久 > > 拉长batch是指增大batch嘛?但我设置为超过2就会报错无法再训练了 一个增加batch数量,一个是把batch的总数量调大, 你的batch超过1个cuda报错是显存不够了,不够就拿总的数量来补