Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only return single attribute value for inferencing single image demo #5

Open
rumiiinator opened this issue Mar 15, 2023 · 10 comments
Open
Labels
enhancement New feature or request

Comments

@rumiiinator
Copy link

rumiiinator commented Mar 15, 2023

Hi @IceClear,

Thank you for open sourcing this impressive work! I have a question regarding the clipiqa_single_image_demo.py script. When I use this script to do inference on a single image, I notice that only the first value of the attribute list is returned. The output looks something like this: [0.74316406] (using the example rock image).

The print info would be something like:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[0.74316406]

Could you please provide some guidance on how to obtain all the attribute values, such as 'Brightness', 'Sharpness', 'Noisiness', 'Colorfulness', and 'Contrast', which may differ from each other?

Thank you very much for your help!

@IceClear
Copy link
Owner

IceClear commented Mar 15, 2023

Hi.
Thanks for your interest in our work.
For different attributes, they are actually different attribute pairs.
You only need to change the classname in the config file: here.
I will provide a colab demo recently.

@IceClear IceClear added the enhancement New feature or request label Mar 15, 2023
@qwerssss1
Copy link

Hi,
Could you provide the pretrained model for attributes values [Brightness', 'Sharpness', 'Noisiness', 'Colorfulness', and 'Contrast']
Thanks

@IceClear
Copy link
Owner

Hi.
We do not need training on assessing these attributes. Just CLIP model is required.

@qwerssss1
Copy link

Thanks for your reply.
How can I set the appropriate model setting for attributes values [Brightness', 'Sharpness', 'Noisiness', 'Colorfulness', and 'Contrast']?
I got mismatch error for model and loaded checkpoint

@IceClear
Copy link
Owner

IceClear commented Jun 1, 2023

Thanks for your reply. How can I set the appropriate model setting for attributes values [Brightness', 'Sharpness', 'Noisiness', 'Colorfulness', and 'Contrast']? I got mismatch error for model and loaded checkpoint

See here

@qwerssss1
Copy link

Hi,
I modify clipiqa_attribute_test.py
and run python demo/clipiqa_single_image_demo.py --config configs/clipiqa/clipiqa_attribute_test.py --checkpoint ./iter_80000.pth
image

and got this error
image

@IceClear
Copy link
Owner

IceClear commented Jun 1, 2023

You loaded the wrong model. The model is for CLIPIQA+ (CLIPIQAPredictor). You do not need to load any model for testing CLIPIQA (CLIPIQAFixed).

@IceClear IceClear mentioned this issue Jun 1, 2023
@qwerssss1
Copy link

got it!
Thanks

@XianchaoZhang
Copy link

Hi. Thanks for your interest in our work. For different attributes, they are actually different attribute pairs. You only need to change the classname in the config file: here. I will provide a colab demo recently.

How about the colab demo? where could I find it?
BRs!

@IceClear
Copy link
Owner

Hi. Sry that I am busy with other works so far. May do it when I am available later, possibly after CVPR submission.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants