We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Got this error while working on the trained model. AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor'
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.
https://github.com/ultralytics/yolov5/issues/6948
The text was updated successfully, but these errors were encountered:
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
Sorry, something went wrong.
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: