Open CGAong opened 2 years ago
I have encountered the same error. Have you solved it? How was it solved
@JULYLH Could you please provide more information about the error? In my device, I can train the model without any errors.
------------------ 原始邮件 ------------------ 发件人: "yjh0410/PyTorch_YOLOF" @.>; 发送时间: 2022年12月14日(星期三) 上午8:51 @.>; 抄送: "JULY @.**@.>; 主题: Re: [yjh0410/PyTorch_YOLOF] 请问这个报错怎么修改 (Issue #7)
@JULYLH Could you please provide more information about the error? In my device, I can train the model without any errors.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
File "/root/PyTorch_YOLOF/dataset/transforms.py", line 393, in call image = F.resize(image, size=min_size, max_size=self.max_size) TypeError: resize() got an unexpected keyword argument 'max_size'
You should check the version of your torch. My torch is 1.9.1, and torchvision is 0.10.1. This error haven't occurred in my environment.
resize() got an unexpected keyword argument 'max_size'