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

feat: Added possibility to change the cache dir of datasets #694

Merged
merged 1 commit into from
Dec 10, 2021

Conversation

fg-mindee
Copy link
Contributor

This PR adds the flexibility to override the cache folder used by VisionDataset, which makes it possible to have a flexible monkeypatch strategy for unittests.

cc @felixdittrich92

@fg-mindee fg-mindee added type: enhancement Improvement module: datasets Related to doctr.datasets labels Dec 10, 2021
@fg-mindee fg-mindee added this to the 0.5.0 milestone Dec 10, 2021
@fg-mindee fg-mindee self-assigned this Dec 10, 2021
@fg-mindee fg-mindee mentioned this pull request Dec 10, 2021
2 tasks
Copy link
Collaborator

@charlesmindee charlesmindee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

@codecov
Copy link

codecov bot commented Dec 10, 2021

Codecov Report

Merging #694 (943fa09) into main (74d9e65) will decrease coverage by 0.08%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #694      +/-   ##
==========================================
- Coverage   96.16%   96.08%   -0.09%     
==========================================
  Files         124      124              
  Lines        4647     4648       +1     
==========================================
- Hits         4469     4466       -3     
- Misses        178      182       +4     
Flag Coverage Δ
unittests 96.08% <100.00%> (-0.09%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
doctr/datasets/datasets/base.py 95.45% <100.00%> (+0.10%) ⬆️
...dels/detection/differentiable_binarization/base.py 89.44% <0.00%> (-3.34%) ⬇️
doctr/models/recognition/predictor/pytorch.py 96.96% <0.00%> (+6.06%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 74d9e65...943fa09. Read the comment docs.

@fg-mindee fg-mindee merged commit 9cf7a09 into main Dec 10, 2021
@fg-mindee fg-mindee deleted the cache-dir branch December 10, 2021 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: datasets Related to doctr.datasets type: enhancement Improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants