Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1892 +/- ##
==========================================
- Coverage 86.10% 84.78% -1.32%
==========================================
Files 168 171 +3
Lines 6979 7375 +396
==========================================
+ Hits 6009 6253 +244
- Misses 970 1122 +152 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@liopeer If you wish i could increase test coverage. If not necessary let me know. |
|
I'll take a look into these type errors (Check 3.7) |
|
FYI, i still have to address these python 3.7 errors. Do we still support python 3.7? |
|
Hi @liopeer , when possible, can you approve these workflows? I think i fixed most of the issues. Also, the 3.7 tests are still relevant? Also if you have any other suggestion for the code, let me know! |
Quick question: One of my modules depends on from timm.models.layers import DropPath, trunc_normal_ |
If timm is not yet a dependency we should copy over the files. You can add a note that you copied them from timm. |
|
There are two options here. I was taking a look and we also have this pattern for timm's ViT to skip tests on minimal CI lightly/lightly/utils/dependency.py Lines 27 to 44 in 904c50a We already have a test that depends on lightly/tests/models/test_ModelUtils.py Lines 923 to 938 in 904c50a |
|
I tested with py37 on my environment and the workflows went green. I'm just worried about the test coverage. I'll take a look into it when possible. |
|
Don't worry too much about the test coverage. :) I can review again mid next week. |
Use List[T] instead of list[T] for type hints to support Python 3.7. Add type: ignore for mypy no-any-return in reference loss implementation.
Iterating a bit through the workflows, still getting used to it :) |
|
Failed because i forgot to run |
liopeer
left a comment
There was a problem hiding this comment.
Overall I think this is mostly done. I will spend some time on Monday to rename a few variables and do smaller clean-ups – some variables are not very descriptive and I would like to change that before we make this public-facing. Thanks a lot for the great contribution!
| "metadata": {}, | ||
| "outputs": [], | ||
| "source": [ | ||
| "dataset = torchvision.datasets.Caltech101(\n", |
There was a problem hiding this comment.
The download of Caltech101 currently does not seem to work for me. If it worked for you, ignore this comment – might open an issue with torchvision after checking if it has something to do with my local setup.
There was a problem hiding this comment.
I know that torchvision is deprecating some datasets. So, some links are broken pytorch/vision#9335
|
|
||
| def test__get_active_ex_or_ii_raise_on_non_active_mask() -> None: | ||
| H, W = 32, 32 | ||
| with pytest.raises(RuntimeError): |
There was a problem hiding this comment.
Best to include a match parameter with pytest.raises. That also serves as documentation on what the test is supposed to check.
Addresses #1462
Continues #1750
Inspired by: https://github.com/keyu-tian/SparK
https://arxiv.org/pdf/2301.03580