Skip to content

Commit

Permalink
jpeg
Browse files Browse the repository at this point in the history
  • Loading branch information
cloneofsimo committed Feb 2, 2023
1 parent 1a98d0d commit 960ed6a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lora_diffusion/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,11 @@ def __init__(
self.captions = open(f"{instance_data_root}/caption.txt").readlines()

else:
possibily_src_images = glob.glob(
str(instance_data_root) + "/*.jpg"
) + glob.glob(str(instance_data_root) + "/*.png")
possibily_src_images = (
glob.glob(str(instance_data_root) + "/*.jpg")
+ glob.glob(str(instance_data_root) + "/*.png")
+ glob.glob(str(instance_data_root) + "/*.jpeg")
)
possibily_src_images = (
set(possibily_src_images)
- set(glob.glob(str(instance_data_root) + "/*mask.png"))
Expand Down

0 comments on commit 960ed6a

Please sign in to comment.