├── .gitignore ├── DIV2k_mask.npy ├── LCFM ├── SD3.5-large_MSE_DIV2k.npy └── SD3_loss_v_MSE_DIV2k_neg_prompt.npy ├── README.md ├── app.py ├── assets └── teaser3.svg ├── configs ├── inpainting.yaml ├── inpainting_gradio.yaml ├── motion_deblur.yaml ├── x12.yaml └── x12_gradio.yaml ├── demo_images ├── demo_0_image.png ├── demo_0_meta.json ├── demo_1_image.png ├── demo_1_mask.png ├── demo_1_meta.json ├── demo_2_image.png ├── demo_2_mask.png ├── demo_2_meta.json ├── demo_3_image.png ├── demo_3_mask.png └── demo_3_meta.json ├── examples ├── girl.png └── sunflowers.png ├── inference_scripts └── run_image_inv.py ├── requirements.txt ├── scripts ├── compute_metrics.py └── generate_caption.py ├── setup.py └── src └── flair ├── __init__.py ├── degradations.py ├── functions ├── __init__.py ├── ckpt_util.py ├── conjugate_gradient.py ├── degradation.py ├── jpeg.py ├── measurements.py ├── nonuniform │ └── kernels │ │ └── 000001.npy ├── svd_ddnm.py └── svd_operators.py ├── helper_functions.py ├── motionblur ├── README.md ├── __init__.py ├── environment.yaml ├── example_kernel │ ├── kernel0.png │ ├── kernel100.png │ ├── kernel25.png │ ├── kernel50.png │ └── kernel75.png ├── images │ ├── flag.png │ ├── flagBLURRED.png │ └── moon.png ├── intensity.png └── motionblur.py ├── pipelines ├── __init__.py ├── model_loader.py ├── sd3.py └── utils.py ├── scheduling.py ├── utils.py ├── utils ├── __init__.py ├── blur_util.py ├── data_utils.py ├── img_util.py ├── inpaint_util.py ├── motionblur.py ├── resizer.py └── utils_sisr.py └── var_post_samp.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/.gitignore -------------------------------------------------------------------------------- /DIV2k_mask.npy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/DIV2k_mask.npy -------------------------------------------------------------------------------- /LCFM/SD3.5-large_MSE_DIV2k.npy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/LCFM/SD3.5-large_MSE_DIV2k.npy -------------------------------------------------------------------------------- /LCFM/SD3_loss_v_MSE_DIV2k_neg_prompt.npy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/LCFM/SD3_loss_v_MSE_DIV2k_neg_prompt.npy -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/README.md -------------------------------------------------------------------------------- /app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/app.py -------------------------------------------------------------------------------- /assets/teaser3.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/assets/teaser3.svg -------------------------------------------------------------------------------- /configs/inpainting.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/configs/inpainting.yaml -------------------------------------------------------------------------------- /configs/inpainting_gradio.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/configs/inpainting_gradio.yaml -------------------------------------------------------------------------------- /configs/motion_deblur.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/configs/motion_deblur.yaml -------------------------------------------------------------------------------- /configs/x12.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/configs/x12.yaml -------------------------------------------------------------------------------- /configs/x12_gradio.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/configs/x12_gradio.yaml -------------------------------------------------------------------------------- /demo_images/demo_0_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/demo_images/demo_0_image.png -------------------------------------------------------------------------------- /demo_images/demo_0_meta.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/demo_images/demo_0_meta.json -------------------------------------------------------------------------------- /demo_images/demo_1_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/demo_images/demo_1_image.png -------------------------------------------------------------------------------- /demo_images/demo_1_mask.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/demo_images/demo_1_mask.png -------------------------------------------------------------------------------- /demo_images/demo_1_meta.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/demo_images/demo_1_meta.json -------------------------------------------------------------------------------- /demo_images/demo_2_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/demo_images/demo_2_image.png -------------------------------------------------------------------------------- /demo_images/demo_2_mask.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/demo_images/demo_2_mask.png -------------------------------------------------------------------------------- /demo_images/demo_2_meta.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/demo_images/demo_2_meta.json -------------------------------------------------------------------------------- /demo_images/demo_3_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/demo_images/demo_3_image.png -------------------------------------------------------------------------------- /demo_images/demo_3_mask.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/demo_images/demo_3_mask.png -------------------------------------------------------------------------------- /demo_images/demo_3_meta.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/demo_images/demo_3_meta.json -------------------------------------------------------------------------------- /examples/girl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/examples/girl.png -------------------------------------------------------------------------------- /examples/sunflowers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/examples/sunflowers.png -------------------------------------------------------------------------------- /inference_scripts/run_image_inv.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/inference_scripts/run_image_inv.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/requirements.txt -------------------------------------------------------------------------------- /scripts/compute_metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/scripts/compute_metrics.py -------------------------------------------------------------------------------- /scripts/generate_caption.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/scripts/generate_caption.py -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/setup.py -------------------------------------------------------------------------------- /src/flair/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/flair/degradations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/degradations.py -------------------------------------------------------------------------------- /src/flair/functions/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/flair/functions/ckpt_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/functions/ckpt_util.py -------------------------------------------------------------------------------- /src/flair/functions/conjugate_gradient.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/functions/conjugate_gradient.py -------------------------------------------------------------------------------- /src/flair/functions/degradation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/functions/degradation.py -------------------------------------------------------------------------------- /src/flair/functions/jpeg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/functions/jpeg.py -------------------------------------------------------------------------------- /src/flair/functions/measurements.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/functions/measurements.py -------------------------------------------------------------------------------- /src/flair/functions/nonuniform/kernels/000001.npy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/functions/nonuniform/kernels/000001.npy -------------------------------------------------------------------------------- /src/flair/functions/svd_ddnm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/functions/svd_ddnm.py -------------------------------------------------------------------------------- /src/flair/functions/svd_operators.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/functions/svd_operators.py -------------------------------------------------------------------------------- /src/flair/helper_functions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/helper_functions.py -------------------------------------------------------------------------------- /src/flair/motionblur/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/motionblur/README.md -------------------------------------------------------------------------------- /src/flair/motionblur/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/flair/motionblur/environment.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/motionblur/environment.yaml -------------------------------------------------------------------------------- /src/flair/motionblur/example_kernel/kernel0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/motionblur/example_kernel/kernel0.png -------------------------------------------------------------------------------- /src/flair/motionblur/example_kernel/kernel100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/motionblur/example_kernel/kernel100.png -------------------------------------------------------------------------------- /src/flair/motionblur/example_kernel/kernel25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/motionblur/example_kernel/kernel25.png -------------------------------------------------------------------------------- /src/flair/motionblur/example_kernel/kernel50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/motionblur/example_kernel/kernel50.png -------------------------------------------------------------------------------- /src/flair/motionblur/example_kernel/kernel75.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/motionblur/example_kernel/kernel75.png -------------------------------------------------------------------------------- /src/flair/motionblur/images/flag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/motionblur/images/flag.png -------------------------------------------------------------------------------- /src/flair/motionblur/images/flagBLURRED.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/motionblur/images/flagBLURRED.png -------------------------------------------------------------------------------- /src/flair/motionblur/images/moon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/motionblur/images/moon.png -------------------------------------------------------------------------------- /src/flair/motionblur/intensity.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/motionblur/intensity.png -------------------------------------------------------------------------------- /src/flair/motionblur/motionblur.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/motionblur/motionblur.py -------------------------------------------------------------------------------- /src/flair/pipelines/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/flair/pipelines/model_loader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/pipelines/model_loader.py -------------------------------------------------------------------------------- /src/flair/pipelines/sd3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/pipelines/sd3.py -------------------------------------------------------------------------------- /src/flair/pipelines/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/pipelines/utils.py -------------------------------------------------------------------------------- /src/flair/scheduling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/scheduling.py -------------------------------------------------------------------------------- /src/flair/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/utils.py -------------------------------------------------------------------------------- /src/flair/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/flair/utils/blur_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/utils/blur_util.py -------------------------------------------------------------------------------- /src/flair/utils/data_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/utils/data_utils.py -------------------------------------------------------------------------------- /src/flair/utils/img_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/utils/img_util.py -------------------------------------------------------------------------------- /src/flair/utils/inpaint_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/utils/inpaint_util.py -------------------------------------------------------------------------------- /src/flair/utils/motionblur.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/utils/motionblur.py -------------------------------------------------------------------------------- /src/flair/utils/resizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/utils/resizer.py -------------------------------------------------------------------------------- /src/flair/utils/utils_sisr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/utils/utils_sisr.py -------------------------------------------------------------------------------- /src/flair/var_post_samp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prs-eth/FLAIR/HEAD/src/flair/var_post_samp.py --------------------------------------------------------------------------------