Skip to content

Commit 44b4ea4

Browse files
fix: path
1 parent 80feeb4 commit 44b4ea4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tensorflow_datasets/datasets/pneumoniamnist/pneumoniamnist_dataset_builder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ def _split_generators(self, dl_manager: tfds.download.DownloadManager):
2727
"""Returns SplitGenerators."""
2828

2929
path = dl_manager.download('https://zenodo.org/records/10519652/files/pneumoniamnist.npz?download=1')
30+
npz_path = path['https://zenodo.org/record/10519652/files/pneumoniamnist.npz?download=1']
3031

31-
with tf.io.gfile.GFile(path, 'rb') as f:
32+
with tf.io.gfile.GFile(npz_path, 'rb') as f:
3233
raw_data = np.load(f)
3334

3435
train_images = np.expand_dims(raw_data.f.train_images, axis=-1)

0 commit comments

Comments
 (0)