Skip to content

Commit 96238b6

Browse files
authored
update readme (#577)
1 parent 649d46d commit 96238b6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ from PIL import Image
9090
import litdata as ld
9191

9292
def random_images(index):
93+
# Replace with your actual image loading here (e.g., .jpg, .png, etc.)
94+
# (recommended to pass as compressed formats like JPEG for better storage and optimized streaming speed)
95+
# You can also apply resizing or reduce image quality to further increase streaming speed and save space.
9396
fake_images = Image.fromarray(np.random.randint(0, 256, (32, 32, 3), dtype=np.uint8))
9497
fake_labels = np.random.randint(10)
9598

0 commit comments

Comments
 (0)