Skip to content

Commit

Permalink
Explicitly setting deep_weeds to be unpacked with ZIP.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 266752800
  • Loading branch information
cyfra authored and copybara-github committed Sep 2, 2019
1 parent dda6584 commit 39771f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tensorflow_datasets/image/deep_weeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,11 @@ def _info(self):

def _split_generators(self, dl_manager):
"""Define Splits."""
path = dl_manager.download_and_extract(_URL)
# The file is in ZIP format, but URL doesn't mention it.
path = dl_manager.download_and_extract(
tfds.download.Resource(
url=_URL,
extract_method=tfds.download.ExtractMethod.ZIP))

return [
tfds.core.SplitGenerator(
Expand Down

0 comments on commit 39771f7

Please sign in to comment.