Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CGAong opened this issue Aug 20, 2022 · 5 comments
Open

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

CGAong opened this issue Aug 20, 2022 · 5 comments

Comments

@CGAong
Copy link

CGAong commented Aug 20, 2022

resize() got an unexpected keyword argument 'max_size'

@JULYLH
Copy link

JULYLH commented Dec 13, 2022

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

@yjh0410
Copy link
Owner

yjh0410 commented Dec 14, 2022

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

@JULYLH
Copy link

JULYLH commented Dec 14, 2022 via email

@ToneZe
Copy link

ToneZe commented Dec 20, 2022

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
Copy link
Owner

yjh0410 commented Dec 20, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants