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

Refactor datapipes #9

Merged
merged 9 commits into from
Jul 22, 2023
Merged

Refactor datapipes #9

merged 9 commits into from
Jul 22, 2023

Conversation

talmo
Copy link
Contributor

@talmo talmo commented Jul 22, 2023

Owing to pytorch/data#1196, this PR removes the dependency on the standalone torchdata library in favor of the built-in torch.utils.data.datapipes implementation.

It also adds the normalizer block and refactors some of the existing classes and tests.

@codecov
Copy link

codecov bot commented Jul 22, 2023

Codecov Report

Merging #9 (fc87457) into main (e579925) will increase coverage by 1.35%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main       #9      +/-   ##
==========================================
+ Coverage   96.07%   97.43%   +1.35%     
==========================================
  Files           4        6       +2     
  Lines          51       78      +27     
==========================================
+ Hits           49       76      +27     
  Misses          2        2              
Impacted Files Coverage Δ
sleap_nn/data/augmentation.py 100.00% <100.00%> (ø)
sleap_nn/data/instance_centroids.py 100.00% <100.00%> (ø)
sleap_nn/data/normalization.py 100.00% <100.00%> (ø)
sleap_nn/data/providers.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@talmo talmo merged commit be349e8 into main Jul 22, 2023
@talmo talmo deleted the talmo/refactor_dp branch July 22, 2023 00:54
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

Successfully merging this pull request may close these issues.

1 participant