jainr3 commited on
Commit
92873cb
1 Parent(s): 567d2c2

Update diffusiondb-pixelart.py

Browse files
Files changed (1) hide show
  1. diffusiondb-pixelart.py +5 -5
diffusiondb-pixelart.py CHANGED
@@ -92,7 +92,7 @@ class DiffusionDB(datasets.GeneratorBasedBuilder):
92
  for num_k in [1, 2]:
93
  for sampling in ["first", "random"]:
94
  num_k_str = f"{num_k}k" if num_k < 1000 else f"{num_k // 1000}m"
95
- subset_str = "2m_"
96
 
97
  if sampling == "random":
98
  # Name the config
@@ -129,10 +129,10 @@ class DiffusionDB(datasets.GeneratorBasedBuilder):
129
  )
130
 
131
 
132
- # Need to manually add all (2m)
133
  BUILDER_CONFIGS.append(
134
  DiffusionDBConfig(
135
- name="2m_all",
136
  part_ids=_PART_IDS,
137
  description="All images with their prompts and parameters",
138
  ),
@@ -141,7 +141,7 @@ class DiffusionDB(datasets.GeneratorBasedBuilder):
141
  # We also prove a text-only option, which loads the metadata parquet file
142
  BUILDER_CONFIGS.append(
143
  DiffusionDBConfig(
144
- name="2m_text_only",
145
  part_ids=[],
146
  description="Only include all prompts and parameters (no image)",
147
  ),
@@ -149,7 +149,7 @@ class DiffusionDB(datasets.GeneratorBasedBuilder):
149
 
150
 
151
  # Default to only load 1k random images
152
- DEFAULT_CONFIG_NAME = "2m_random_1k"
153
 
154
  def _info(self):
155
  """Specify the information of DiffusionDB."""
 
92
  for num_k in [1, 2]:
93
  for sampling in ["first", "random"]:
94
  num_k_str = f"{num_k}k" if num_k < 1000 else f"{num_k // 1000}m"
95
+ subset_str = "2k_"
96
 
97
  if sampling == "random":
98
  # Name the config
 
129
  )
130
 
131
 
132
+ # Need to manually add all (2k)
133
  BUILDER_CONFIGS.append(
134
  DiffusionDBConfig(
135
+ name="2k_all",
136
  part_ids=_PART_IDS,
137
  description="All images with their prompts and parameters",
138
  ),
 
141
  # We also prove a text-only option, which loads the metadata parquet file
142
  BUILDER_CONFIGS.append(
143
  DiffusionDBConfig(
144
+ name="2k_text_only",
145
  part_ids=[],
146
  description="Only include all prompts and parameters (no image)",
147
  ),
 
149
 
150
 
151
  # Default to only load 1k random images
152
+ DEFAULT_CONFIG_NAME = "2k_random_1k"
153
 
154
  def _info(self):
155
  """Specify the information of DiffusionDB."""