|
|
|
|
|
|
|
DATA_FOLDER = "data" |
|
BACKGROUND_IMAGE_NAME = "input_bg_bb.png" |
|
FOREGROUND_IMAGE_NAME = "input_fg.jpg" |
|
PROMPT_FILE_NAME = "prompt.txt" |
|
|
|
|
|
MODEL_OUTPUT_IMAGE_NAMES = { |
|
"baseline": "cp_bg_fg.jpg", |
|
"kv-edit": "kvedit.jpg", |
|
"tf-icon": "tf-icon.png", |
|
"dit-editor": "alphanoise0.05_timesteps50_QTrue_KTrue_VFalse_taua0.4_taub0.8_guidance3.0_all-layers.png", |
|
} |
|
|
|
MODEL_DISPLAY_NAMES = { |
|
"baseline": "Model A", |
|
"kv-edit": "Model B", |
|
"tf-icon": "Model C", |
|
"dit-editor": "Model D", |
|
} |
|
|
|
|
|
RESULTS_CSV_FILE = "user_preferences.csv" |
|
CSV_HEADERS = [ |
|
"session_id", |
|
"timestamp", |
|
"domain", |
|
"sample_id", |
|
"prompt", |
|
"input_background", |
|
"input_foreground", |
|
"displayed_order_model_1", |
|
"displayed_order_model_2", |
|
"displayed_order_model_3", |
|
"displayed_order_model_4", |
|
"preferred_model_key", |
|
"preferred_model_filename" |
|
] |
|
SAMPLES_PER_DOMAIN = 3 |
|
|
|
|
|
HF_DATASET_REPO_ID = "matsant01/dit-editor-collected-preferences" |
|
HF_TOKEN = None |
|
PUSH_INTERVAL_HOURS = 0.25 |
|
|
|
|
|
IMAGE_DISPLAY_SIZE = (300, 300) |
|
APP_TITLE = "Image Composition User Study" |
|
APP_DESCRIPTION = """ |
|
Please look at the input foreground and background images, and the text prompt used for generation, then choose the composed image that you prefer the most. |
|
You consider: |
|
* 📸 **subject consistency**: does the subject resemble the one in the foreground image? Or is it just a similar object/animal? |
|
* 🖼️ **background preservation**: is the background image correctly preserved? |
|
* 🎨 **style blending**: is the subject style correctly adapted to the one of the background? |
|
""" |
|
FOOTER_MESSAGE = "Thank you for participating!" |
|
|
|
|
|
SESSION_ID_LENGTH = 16 |
|
|
|
|
|
BACKUP_FOLDER = "backup" |