MCPcopy Index your code
hub / github.com/IceClear/CLIP-IQA

github.com/IceClear/CLIP-IQA @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
1,550 symbols 4,450 edges 245 files 921 documented · 59%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Exploring CLIP for Assessing the Look and Feel of Images (AAAI 2023)

Paper

visitors

Jianyi Wang, Kelvin C.K. Chan, Chen Change Loy

S-Lab, Nanyang Technological University

TODO

  • [ ] Website release
  • [x] ~~Code release~~

Dependencies and Installation

The same as MMEditing, currently is using an old version.

conda create -n clipiqa python=3.6
pip install torch==1.8.1+cu101 torchvision==0.9.1+cu101 torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html # For CUDA 10.1
pip install -r requirements.txt
pip install -v -e .

Running Examples

Test CLIP-IQA on KonIQ-10k

python demo/clipiqa_koniq_demo.py

Test CLIP-IQA on Live-iWT

python demo/clipiqa_liveiwt_demo.py

Train CLIP-IQA+ on KonIQ-10k

# Support dist training as MMEditing
python tools/train.py configs/clipiqa/clipiqa_coop_koniq.py

Test CLIP-IQA+ on KonIQ-10k (Checkpoint)

python demo/clipiqa_koniq_demo.py --config configs/clipiqa/clipiqa_coop_koniq.py --checkpoint ./iter_80000.pth

[Note] You may change prompts for different datasets, please refer to config files for details.

[Note] For testing on a single image, please refer to here for details.

Demo

:sparkles: Versatile Quality Assessment

:sparkles: Demo for IQA on SPAQ

:sparkles: Demo for Abstract Perception on AVA

For more evaluation, please refer to our paper for details.

Citation

If our work is useful for your research, please consider citing:

@inproceedings{wang2022exploring,
    author = {Wang, Jianyi and Chan, Kelvin CK and Loy, Chen Change},
    title = {Exploring CLIP for Assessing the Look and Feel of Images},
    booktitle = {AAAI},
    year = {2023}
}

License

This project is licensed under NTU S-Lab License 1.0. Redistribution and use should follow this license.

Acknowledgement

This project is based on MMEditing and CLIP. Thanks for their awesome works.

Contact

If you have any question, please feel free to reach me out at iceclearwjy@gmail.com.

Core symbols most depended-on inside this repo

tensor2img
called by 68
mmedit/core/misc.py
get_root_logger
called by 50
mmedit/utils/logger.py
parse_losses
called by 49
mmedit/models/base.py
build_loss
called by 35
mmedit/models/builder.py
build_component
called by 30
mmedit/models/builder.py
set_requires_grad
called by 27
mmedit/models/common/model_utils.py
make_layer
called by 20
mmedit/models/common/sr_backbone_utils.py
build_backbone
called by 13
mmedit/models/builder.py

Shape

Method 1,023
Class 335
Function 191
Route 1

Languages

Python100%

Modules by API surface

mmedit/datasets/pipelines/augmentation.py80 symbols
mmedit/models/components/stylegan2/modules.py58 symbols
mmedit/models/components/clip/model.py36 symbols
mmedit/datasets/pipelines/crop.py36 symbols
mmedit/datasets/pipelines/random_degradations.py33 symbols
mmedit/datasets/pipelines/matting_aug.py33 symbols
mmedit/models/backbones/vfi_backbones/flavr_net.py27 symbols
mmedit/datasets/pipelines/loading.py24 symbols
mmedit/core/evaluation/metrics.py24 symbols
mmedit/datasets/pipelines/formating.py23 symbols
mmedit/models/backbones/sr_backbones/coopclipiqa.py21 symbols
mmedit/models/backbones/encoder_decoders/encoders/resnet.py21 symbols

For agents

$ claude mcp add CLIP-IQA \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact