Update README.md
Browse files
README.md
CHANGED
|
@@ -39,18 +39,18 @@ from datasets import Dataset
|
|
| 39 |
from pathlib import Path
|
| 40 |
from PIL import Image
|
| 41 |
|
| 42 |
-
|
| 43 |
-
|
| 44 |
|
| 45 |
def entry_for_id(entry_id):
|
| 46 |
if type(entry_id) == int:
|
| 47 |
entry_id = f"{entry_id:05}"
|
| 48 |
-
image = Image.open(
|
| 49 |
-
|
| 50 |
caption = "gothic fractals"
|
| 51 |
return {
|
| 52 |
"image": image,
|
| 53 |
-
"canny_images":
|
| 54 |
"caption": caption,
|
| 55 |
}
|
| 56 |
|
|
|
|
| 39 |
from pathlib import Path
|
| 40 |
from PIL import Image
|
| 41 |
|
| 42 |
+
face_image = Path("images/original")
|
| 43 |
+
canny_image = Path("images/canny_images")
|
| 44 |
|
| 45 |
def entry_for_id(entry_id):
|
| 46 |
if type(entry_id) == int:
|
| 47 |
entry_id = f"{entry_id:05}"
|
| 48 |
+
image = Image.open(face_image/f"fractal_{entry_id}.jpg")
|
| 49 |
+
image_cond = Image.open(canny_image/f"canny_fractal_{entry_id}.jpg")
|
| 50 |
caption = "gothic fractals"
|
| 51 |
return {
|
| 52 |
"image": image,
|
| 53 |
+
"canny_images": image_cond,
|
| 54 |
"caption": caption,
|
| 55 |
}
|
| 56 |
|