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

UserWarning 이 발생하는데 해결방법이 무엇일까요? #1

Closed
Lagom92 opened this issue May 25, 2021 · 3 comments
Closed

UserWarning 이 발생하는데 해결방법이 무엇일까요? #1

Lagom92 opened this issue May 25, 2021 · 3 comments

Comments

@Lagom92
Copy link

Lagom92 commented May 25, 2021

C:\Users\jyyt0\anaconda3\envs\ilium\lib\site-packages\torch\nn\functional.py:3503: UserWarning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and now uses scale_factor directly, instead of relying on the computed output size. If you wish to restore the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details.
  "The default behavior for interpolate/upsample with float scale_factor changed "
@Lagom92
Copy link
Author

Lagom92 commented May 25, 2021

torch 1.8.1
Python 3.6.13

@Lagom92 Lagom92 closed this as completed May 25, 2021
@Seonghoon-Yu
Copy link
Owner

좀 더 정확한 정보를 주셔야할꺼 같아요
어떤 모델 코드를 사용하셨나요?

@Lagom92
Copy link
Author

Lagom92 commented May 26, 2021

https://github.com/Seonghoon-Yu/Paper_Review_and_Implementation_in_PyTorch/blob/master/Classification/EfficientNet(2019).ipynb

위 코드를 실행했는데요.
B3를 실행할경우 저 경고가 발생했습니다.

해결했는데요.
nn.Upsample() 대신에 F.interpolate()와 recompute_scale_factor=True 를 사용했더니 경고가 발생하지 않았습니다.

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