Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanwharris committed Jan 6, 2022
1 parent cc001f7 commit 9e7ede9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flash/image/segmentation/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def from_files(
>>> from PIL import Image
>>> rand_image = Image.fromarray(np.random.randint(0, 255, (64, 64, 3), dtype="uint8"))
>>> rand_mask= Image.fromarray(np.random.randint(0, 10, (64, 64, 1), dtype="uint8"))
>>> rand_mask= Image.fromarray(np.random.randint(0, 10, (64, 64), dtype="uint8"))
>>> _ = [rand_image.save(f"image_{i}.png") for i in range(1, 4)]
>>> _ = [rand_mask.save(f"mask_{i}.png") for i in range(1, 4)]
>>> _ = [rand_image.save(f"predict_image_{i}.png") for i in range(1, 4)]
Expand Down Expand Up @@ -262,7 +262,7 @@ def from_folders(
>>> import os
>>> from PIL import Image
>>> rand_image = Image.fromarray(np.random.randint(0, 255, (64, 64, 3), dtype="uint8"))
>>> rand_mask = Image.fromarray(np.random.randint(0, 10, (64, 64, 1), dtype="uint8"))
>>> rand_mask = Image.fromarray(np.random.randint(0, 10, (64, 64), dtype="uint8"))
>>> os.makedirs("train_images", exist_ok=True)
>>> os.makedirs("train_masks", exist_ok=True)
>>> os.makedirs("predict_folder", exist_ok=True)
Expand Down

0 comments on commit 9e7ede9

Please sign in to comment.