Wu Zinan
Results
2
comments of
Wu Zinan
我也遇到了这个问题,arxiv版本有此问题,RIFE_HDv3没有问题,经检查发现为RIFE的 def inference(self, img0, img1, scale=1, scale_list=[4, 2, 1], TTA=False, timestep=0.5) 这里scale_list的默认值列表是可变对象,当scale=0.5时,每次调用inference时打印scale_list, 依次为[4, 2, 1],[8.0, 4.0, 2.0],[16.0, 8.0, 4.0],缩放比例不断膨胀,导致后面插值的尺寸出问题。 不要在输入参数的默认值使用列表,拿到里面赋值就好了
> [@w-zinan](https://github.com/w-zinan) [eff2c82](https://github.com/hzwer/ECCV2022-RIFE/commit/eff2c826711de6c69a3ad8badb383aee270f117d) 是不是这样改改就行了 是的,我这么改解决了问题