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

Hotfix for to_pytorch #457

Merged
merged 2 commits into from
Jan 15, 2021
Merged

Hotfix for to_pytorch #457

merged 2 commits into from
Jan 15, 2021

Conversation

AbhinavTuli
Copy link
Contributor

Solves #452.
We need a better fix for this, I've added a check for the Dataset mode which should solve it temporarily however the default mode in which a dataset is opened by non-owner is append, which should be changed to read.

@github-actions
Copy link

Locust summary

Git references

Initial: a394e9b
Terminal: 6a0486d

hub/api/dataset.py
Changes:
hub/schema/audio.py
Changes:
  • Name: Audio
    Type: class
    Changed lines: 7
    Total lines: 69
    Changes:
hub/schema/class_label.py
Changes:
hub/compute/transform.py
Changes:
hub/schema/image.py
Changes:
hub/schema/segmentation.py
Changes:
hub/schema/bbox.py
Changes:
  • Name: BBox
    Type: class
    Changed lines: 4
    Total lines: 35
    Changes:
hub/schema/mask.py
Changes:
  • Name: Mask
    Type: class
    Changed lines: 3
    Total lines: 51
    Changes:
hub/schema/polygon.py
Changes:
hub/schema/sequence.py
Changes:
hub/schema/text.py
Changes:
  • Name: Text
    Type: class
    Changed lines: 4
    Total lines: 53
    Changes:
hub/schema/video.py
Changes:
  • Name: Video
    Type: class
    Changed lines: 4
    Total lines: 58
    Changes:
hub/store/dynamic_tensor.py
Changes:
hub/api/tests/test_converters.py
Changes:
hub/api/tests/test_dataset.py
Changes:
hub/schema/tests/test_features.py
Changes:
hub/schema/tests/test_serilize_deserialize.py
Changes:
hub/store/tests/test_s3_storage.py
Changes:
hub/test_numcodecs.py
Changes:

@codecov
Copy link

codecov bot commented Jan 15, 2021

Codecov Report

Merging #457 (6a0486d) into master (8a5f4ad) will decrease coverage by 0.01%.
The diff coverage is 80.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #457      +/-   ##
==========================================
- Coverage   85.09%   85.07%   -0.02%     
==========================================
  Files          49       49              
  Lines        3623     3625       +2     
==========================================
+ Hits         3083     3084       +1     
- Misses        540      541       +1     
Impacted Files Coverage Δ
hub/api/dataset.py 87.65% <80.00%> (-0.12%) ⬇️
hub/utils.py 78.86% <0.00%> (-1.63%) ⬇️
hub/client/hub_control.py 79.03% <0.00%> (+3.22%) ⬆️

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 8a5f4ad...6a0486d. Read the comment docs.

@AbhinavTuli AbhinavTuli merged commit 2a9a7e1 into master Jan 15, 2021
@AbhinavTuli AbhinavTuli deleted the fix/to_pytorch_flush branch January 19, 2021 11: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.

2 participants