Datasets:
Publish corrected prompt mapping for affected generators
Browse filesFiles changed (2)
103 unmodified lines10410510610710810911011111211311411511611711819 unmodified lines1381391401411421431441 unmodified line146147148149150151152103 unmodified lines- any detection benchmark result, which depends only on images, labels, andgenerator identity**Status.** A temporary correction mapping is available at`corrections/prompt_mapping_fix.parquet`, keyed by image identifier, split, andgenerator name. It maps affected prompts to the empty string so they can beremoved safely. The corrected image-to-prompt mapping and in-place `prompt`column will be published in a versioned release; until then, join against thetemporary mapping for the affected generators. We are not modifying existingdata files while the associated paper is under review.### Loading the dataset and applying the temporary mapping```pythonfrom pathlib import Path19 unmodified lines)mapping = pd.read_parquet(mapping_path)prompt_fixes = {(row.split, row.image_id, row.model): row.promptfor row in mapping.itertuples(index=False)}1 unmodified linedef apply_prompt_fixes(batch, split_name):batch["prompt"] = [prompt_fixes.get((split_name, Path(image["path"]).name, model),original_prompt,)for image, model, original_prompt in zip(103 unmodified lines10410510610710810911011111211311411511611711819 unmodified lines1381391401411421431441 unmodified line146147148149150151152103 unmodified lines- any detection benchmark result, which depends only on images, labels, andgenerator identity**Status.** A corrected mapping is available at`corrections/prompt_mapping_fix.parquet`, keyed by image identifier, split, andgenerator name. Because some embedded images share a basename, the currentmisaligned prompt is also included in the join key to disambiguate those rows.The in-place `prompt` column will be updated in a versioned release; until then,join against the corrections file for the affected generators. We are notmodifying existing data files while the associated paper is under review.### Loading the dataset and applying the corrected mapping```pythonfrom pathlib import Path19 unmodified lines)mapping = pd.read_parquet(mapping_path)prompt_fixes = {(row.split, row.image_id, row.model, row.original_prompt): row.promptfor row in mapping.itertuples(index=False)}1 unmodified linedef apply_prompt_fixes(batch, split_name):batch["prompt"] = [prompt_fixes.get((split_name, Path(image["path"]).name, model, original_prompt),original_prompt,)for image, model, original_prompt in zip(
123version https://git-lfs.github.com/spec/v1oid sha256:bf8e8b04fddd75e96c414fce3129061189baa7ce8a0f2b6ac1105aff145236casize 25115002README.md+9-9
corrections/prompt_mapping_fix.parquetAdded+3