This repository provides two scripts to support the paper's experiments:
generate_image_templates.py: Generates images from template-style text prompts.clique_search.py: Performs a clique search with image segmentation.
conda env create -f environment.yml\
conda activate lr-tmipython generate_image_templates.py \
-t "skg Shower Curtain" \
-t "skg Round Beach Towel"This will generate two sets of images in generated_images/, e.g.:
generated_images/skg_Shower_Curtain/generated_images/skg_Round_Beach_Towel/
Alternatively, to generate images with Stable Diffusion V. 3.5 Medium:
python generate_image_templates.py \
-t "skg Shower Curtain" \
-t "skg Round Beach Towel"\
--model_id "stabilityai/stable-diffusion-3.5-medium"python clique_search.py \
-p "generated_images/skg_Shower_Curtain" \
-d ADE \
-c curtainThis searches for image cliques among the generated "Shower Curtain" images with segmentation on ADE category curtain.
The results will be saved to "./clique_results".
- All outputs are saved in the working directory.
- This setup is intended for quick verification of the proposed pipeline.