Skip to content

Commit

Permalink
fix: dataset update
Browse files Browse the repository at this point in the history
  • Loading branch information
piercus committed Jan 26, 2024
1 parent 3bb845d commit f96d8e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/refiners/training_utils/datasets/color_palette.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def get_color_palette(self, index: int) -> ColorPalette:
probabilities = weights / sum
palette_index = int(random.choices(choices, probabilities, k=1)[0])
item = self.hf_dataset[index]
palette: ColorPalette = item[f"palette_{palette_index}"]
palette: ColorPalette = item[f"palettes"][str(palette_index)]
return palette

def collate_fn(self, batch: list[TextEmbeddingColorPaletteLatentsBatch]) -> TextEmbeddingColorPaletteLatentsBatch:
Expand Down

0 comments on commit f96d8e9

Please sign in to comment.