dvlab-research / MASA-SR

MASA-SR: Matching Acceleration and Spatial Adaptation for Reference-Based Image Super-Resolution (CVPR2021)
161 stars 20 forks source link

如何使用flop_count文件对模型进行计算? #19

Open xuefighting opened 2 years ago

xuefighting commented 2 years ago

第一个问题是:对于以下警告是否可以忽略 UserWarning: floordiv is deprecated, and its behavior will change in a future version of pytorch. It currently rounds toward 0 (like the 'trunc' function NOT 'floor'). This results in incorrect rounding for negative values. To keep the current behavior, use torch.div(a, b, rounding_mode='trunc'), or for actual floor division, use torch.div(a, b, rounding_mode='floor'). px = w // self.lr_block_size 第二个问题是:以下可能是什么问题 image

clttyou commented 2 years ago

您好,我也遇到了这个问题。请问您解决了吗