syang

Results 4 comments of syang

感谢您的回复,例如我想要配准一对红外图像与可见光图像,我需要对可见光图像先通过CPSTN生产伪红外之后才可以进行配置吗?

您好,我按照您的步骤生成了伪红外图像并输入到了test_reg.py中,但是仍然会在load_state_dict的地方报错 ![image](https://user-images.githubusercontent.com/65890071/192245101-011398f9-ad58-4ec7-b9e7-3e1b04958063.png) ![image](https://user-images.githubusercontent.com/65890071/192245161-ed7f5b48-92b4-4285-b30e-9047454eb37f.png) 可以请问一下是什么问题吗?

![image](https://user-images.githubusercontent.com/65890071/193232184-1f7a6a37-5424-4282-8496-d15ef580719a.png) 您好,请问配准的图像有尺寸大小的限制吗?我的输入图像为480*320会出现错误The size of tensor a (128) must match the size of tensor b (240) at non-singleton dimension 3,在图中的位置

del state_dict['net']['spatial_transform_f.grid'] del state_dict['net']['spatial_transform.grid'] print("删除成功") # print(state_dict) # state_dict.pop('spatial_transform_f.grid') # state_dict.pop('spatial_transform.grid') 字典中嵌套着字典,不能直接pop删除,需要使用del语法