Fix warnings in the tests
See original GitHub issueCurrently, there are following warnings when running tests:
test/test_models.py::test_quantized_classification_model[googlenet]
/root/project/torchvision/models/googlenet.py:47: FutureWarning: The default weight initialization of GoogleNet will be changed in future releases of torchvision. If you wish to keep the old behavior (which leads to long initialization times due to scipy/scipy#11299), please set init_weights=True.
warnings.warn(
test/test_models.py::test_quantized_classification_model[inception_v3]
/root/project/torchvision/models/inception.py:43: FutureWarning: The default weight initialization of inception_v3 will be changed in future releases of torchvision. If you wish to keep the old behavior (which leads to long initialization times due to scipy/scipy#11299), please set init_weights=True.
warnings.warn(
test/test_datasets.py::VOCDetectionTestCase::test_transforms
/root/project/torchvision/datasets/voc.py:82: UserWarning: Accessing the test image set of the year 2007 with year='2007-test' is deprecated since 0.12 and will be removed in 0.14. Please use the combination year='2007' and image_set='test' instead.
warnings.warn(
Let’s fix these tests such that warnings are not shown anymore.
cc @pmeier
Issue Analytics
- State:
- Created a year ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
How to Fix a PytestCollectionWarning about WebTest's ...
Here's a small warning I've come across a couple of times, and how to fix it with a niche pytest feature.
Read more >Fix program errors and improve code - Visual Studio (Windows)
This article describes some basic ways Visual Studio can help you find and fix problems in your code, including build errors, code analysis, ......
Read more >Fix Test Automation Failures - Undo.io
Record and resolve automated test failures with Software Failure Replay. Easily understand why your tests are failing and reduce the time spent fixing ......
Read more >Fix the "not wrapped in act(...)" warning - Kent C. Dodds
There are a few reasons you're getting this warning. Here's how you fix it.
Read more >Fix All Warnings And Errors: what is the history of this code ...
Is the premise of "software engineering and not testing" argument based on the belief that 'testing' is a separate discipline from 'software ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi, since this issue is now up for grabs. I would like to grab it 😃
Can I take this issue