Jieya commited on
Commit
b223a3b
1 Parent(s): b158f1d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -5
README.md CHANGED
@@ -39,18 +39,18 @@ from datasets import Dataset
39
  from pathlib import Path
40
  from PIL import Image
41
 
42
- face_synthetics = Path("images/original")
43
- canny_synthetics = 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_synthetics/f"fractal_{entry_id}.jpg")
49
- image_seg = Image.open(canny_synthetics/f"canny_fractal_{entry_id}.jpg")
50
  caption = "gothic fractals"
51
  return {
52
  "image": image,
53
- "canny_images": image_seg,
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