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

Out of date model #4

Closed
BhooshanDeshpande opened this issue May 9, 2023 · 1 comment
Closed

Out of date model #4

BhooshanDeshpande opened this issue May 9, 2023 · 1 comment

Comments

@BhooshanDeshpande
Copy link

Got this error while working on the trained model.
AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor'

It points to --
https://github.com/ultralytics/yolov5/issues/6948
It says, probably due to out of date model here.

@Asimoedeus
Copy link

Asimoedeus commented Sep 2, 2023

Thank you! Really helpful.

In short:

def forward(self, input: Tensor) -> Tensor: return F.interpolate(input, self.size, self.scale_factor, self.mode, self.align_corners, #recompute_scale_factor=self.recompute_scale_factor )

Comment out the "recompute_scale_factor=self.recompute_scale_factor" parameter

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

2 participants