kmaksatk commited on
Commit
d116248
·
1 Parent(s): c4511bf

Upload cn_data.py

Browse files
Files changed (1) hide show
  1. cn_data.py +2 -4
cn_data.py CHANGED
@@ -79,13 +79,11 @@ class Fill50k(datasets.GeneratorBasedBuilder):
79
  text = row["caption"]
80
 
81
  image_path = row["target"]
82
- image_path = os.path.join(images_dir, image_path)
83
  image = open(image_path, "rb").read()
84
 
85
  conditioning_image_path = row["source"]
86
- conditioning_image_path = os.path.join(
87
- conditioning_images_dir, row["source"]
88
- )
89
  conditioning_image = open(conditioning_image_path, "rb").read()
90
 
91
  yield row["target"], {
 
79
  text = row["caption"]
80
 
81
  image_path = row["target"]
82
+ # image_path = os.path.join(images_dir, image_path)
83
  image = open(image_path, "rb").read()
84
 
85
  conditioning_image_path = row["source"]
86
+ # conditioning_image_path = os.path.join(conditioning_images_dir, row["source"])
 
 
87
  conditioning_image = open(conditioning_image_path, "rb").read()
88
 
89
  yield row["target"], {