TypeError: upsample_bilinear2d(): argument ‘output_size’ must be tuple of ints, but found element of type Tensor at pos 1
调试代码遇到的大坑,报错如下:
D:\anconda\envs\python37\python.exe D:/document/memo/LDF-1117/train-coarse/test.py
Parameters...
datapath : D:/date set/saliency_test/ECSSD
snapshot : ./out/model-37
mode : test
D:\anconda\envs\python37\lib\site-packages\torch\nn\functional.py:2506: UserWarning: Default upsampling behavior when mode=bilinear is changed to align_corners=False since 0.4.0. Please specify align_corners=True if the old behavior is desired. See the documentation of nn.Upsample for details.
"See the documentation of nn.Upsample for details.".format(mode)