Skip to content

Commit

Permalink
Fixed bug in returning clip image embed to actually return it
Browse files Browse the repository at this point in the history
  • Loading branch information
jaretburkett committed Oct 3, 2024
1 parent 67e0aca commit 28e6f00
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions toolkit/dataloader_mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,8 +752,7 @@ def get_new_clip_image_path(self: 'FileItemDTO'):
if len(img_files) > 1:
img_files.remove(self.path)
# randomly grab one
self.clip_image_path = random.choice(img_files)
return self.path
return random.choice(img_files)
else:
return self.clip_image_path

Expand Down

0 comments on commit 28e6f00

Please sign in to comment.