FrancescoSaverioZuppichini / glasses

High-quality Neural Networks for Computer Vision 😎
https://francescosaveriozuppichini.github.io/glasses-webapp/
MIT License
431 stars 37 forks source link

Storages API #252

Closed FrancescoSaverioZuppichini closed 3 years ago

FrancescoSaverioZuppichini commented 3 years ago

Now PretrainedWeightsProvider takes an Storage instance allowing to share the same API across different storages (e.g. Local of Hugging Face)

codecov-commenter commented 3 years ago

Codecov Report

Merging #252 (fbd43ae) into master (53a83e4) will decrease coverage by 0.10%. The diff coverage is 93.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #252      +/-   ##
==========================================
- Coverage   97.29%   97.18%   -0.11%     
==========================================
  Files          75       82       +7     
  Lines        2917     2988      +71     
==========================================
+ Hits         2838     2904      +66     
- Misses         79       84       +5     
Impacted Files Coverage Δ
glasses/utils/weights/storage/hubs/HFModelHub.py 67.21% <ø> (ø)
test/test_ForwardStorage.py 100.00% <ø> (ø)
test/test_PretrainedWeightsProvider.py 100.00% <ø> (ø)
glasses/utils/weights/storage/Storage.py 62.50% <62.50%> (ø)
...lasses/utils/weights/storage/HuggingFaceStorage.py 88.23% <88.23%> (ø)
glasses/types.py 100.00% <100.00%> (ø)
glasses/utils/weights/PretrainedWeightsProvider.py 98.14% <100.00%> (+0.07%) :arrow_up:
glasses/utils/weights/storage/LocalStorage.py 100.00% <100.00%> (ø)
glasses/utils/weights/storage/__init__.py 100.00% <100.00%> (ø)
glasses/utils/weights/storage/hubs/__init__.py 100.00% <100.00%> (ø)
... and 8 more

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 53a83e4...fbd43ae. Read the comment docs.