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

Downloading Dataset #1

Open
KeremTurgutlu opened this issue Jun 10, 2021 · 1 comment
Open

Downloading Dataset #1

KeremTurgutlu opened this issue Jun 10, 2021 · 1 comment

Comments

@KeremTurgutlu
Copy link

KeremTurgutlu commented Jun 10, 2021

How can we download CXR and mask data for research purposes?

Command line gives error and web UI says "you don't have permission to download":

darwin dataset pull v7-labs/covid-19-chest-x-ray-dataset:all-images
Traceback (most recent call last):
  File "/usr/local/bin/darwin", line 5, in <module>
    from darwin.cli import main
  File "/usr/local/lib/python3.6/dist-packages/darwin/__init__.py", line 1, in <module>
    import darwin.dataset  # noqa
  File "/usr/local/lib/python3.6/dist-packages/darwin/dataset/__init__.py", line 1, in <module>
    from darwin.dataset.local_dataset import LocalDataset  # noqa
  File "/usr/local/lib/python3.6/dist-packages/darwin/dataset/local_dataset.py", line 8, in <module>
    from darwin.dataset.utils import get_classes, get_release_path, load_pil_image
  File "/usr/local/lib/python3.6/dist-packages/darwin/dataset/utils.py", line 15, in <module>
    from darwin.utils import SUPPORTED_EXTENSIONS, SUPPORTED_VIDEO_EXTENSIONS
  File "/usr/local/lib/python3.6/dist-packages/darwin/utils.py", line 7, in <module>
    from upolygon import draw_polygon
  File "/usr/local/lib/python3.6/dist-packages/upolygon/__init__.py", line 4, in <module>
    from rle import rle_decode, rle_encode # noqa
ImportError: cannot import name 'rle_decode'
@thupalo
Copy link

thupalo commented Jul 22, 2021

hi,
got the same error. try modify:
"/usr/local/lib/python3.6/dist-packages/upolygon/init.py", line 4

# from rle import rle_decode, rle_encode # noqa  # <<<THU del
from rle import decode as rle_decode   # THU add
from rle import encode as rle_encode   # THU add

should work.
Latest downloadable version:
darwin dataset pull v7-labs/covid-19-chest-x-ray-dataset:0.5

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

No branches or pull requests

2 participants