yjh0410 / PyTorch_YOLOF

A PyTorch version of You Only Look at One-level Feature object detector
37 stars 9 forks source link

请问这个报错怎么修改 #7

Open CGAong opened 2 years ago

CGAong commented 2 years ago

resize() got an unexpected keyword argument 'max_size'

JULYLH commented 1 year ago

I have encountered the same error. Have you solved it? How was it solved

yjh0410 commented 1 year ago

@JULYLH Could you please provide more information about the error? In my device, I can train the model without any errors.

JULYLH commented 1 year ago

------------------ 原始邮件 ------------------ 发件人: "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: @.***>

ToneZe commented 1 year ago

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'

yjh0410 commented 1 year ago

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.