fix: _generate_examples
Browse files
body-measurements-dataset.py
CHANGED
@@ -141,12 +141,16 @@ class BodyMeasurementsDataset(datasets.GeneratorBasedBuilder):
|
|
141 |
for proof in proofs_dir:
|
142 |
if "arm_circumference" in proof:
|
143 |
data['arm_circumference'] = proof
|
|
|
|
|
144 |
elif 'arm_length' in proof:
|
145 |
data['arm_length'] = proof
|
146 |
elif 'back_build' in proof:
|
147 |
data['back_build'] = proof
|
148 |
elif 'calf_circumference' in proof:
|
149 |
data['calf_circumference'] = proof
|
|
|
|
|
150 |
elif 'chest_circumference' in proof:
|
151 |
data['chest_circumference'] = proof
|
152 |
elif 'crotch_height' in proof:
|
@@ -173,10 +177,6 @@ class BodyMeasurementsDataset(datasets.GeneratorBasedBuilder):
|
|
173 |
data['shoulder_width'] = proof
|
174 |
elif 'thigh_circumference' in proof:
|
175 |
data['thigh_circumference'] = proof
|
176 |
-
elif 'under_chest_circumference' in proof:
|
177 |
-
data['under_chest_circumference'] = proof
|
178 |
-
elif 'upper_arm_length' in proof:
|
179 |
-
data['upper_arm_length'] = proof
|
180 |
elif 'waist_circumference' in proof:
|
181 |
data['waist_circumference'] = proof
|
182 |
|
|
|
141 |
for proof in proofs_dir:
|
142 |
if "arm_circumference" in proof:
|
143 |
data['arm_circumference'] = proof
|
144 |
+
elif 'upper_arm_length' in proof:
|
145 |
+
data['upper_arm_length'] = proof
|
146 |
elif 'arm_length' in proof:
|
147 |
data['arm_length'] = proof
|
148 |
elif 'back_build' in proof:
|
149 |
data['back_build'] = proof
|
150 |
elif 'calf_circumference' in proof:
|
151 |
data['calf_circumference'] = proof
|
152 |
+
elif 'under_chest_circumference' in proof:
|
153 |
+
data['under_chest_circumference'] = proof
|
154 |
elif 'chest_circumference' in proof:
|
155 |
data['chest_circumference'] = proof
|
156 |
elif 'crotch_height' in proof:
|
|
|
177 |
data['shoulder_width'] = proof
|
178 |
elif 'thigh_circumference' in proof:
|
179 |
data['thigh_circumference'] = proof
|
|
|
|
|
|
|
|
|
180 |
elif 'waist_circumference' in proof:
|
181 |
data['waist_circumference'] = proof
|
182 |
|