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

Code without OpenMMLab integration? #13

Closed
justlike-prog opened this issue Jul 19, 2023 · 2 comments
Closed

Code without OpenMMLab integration? #13

justlike-prog opened this issue Jul 19, 2023 · 2 comments

Comments

@justlike-prog
Copy link

@IceClear Any chance to get the code without using OpenMMLab? Would make it easier for experimenting. Thanks for the awesome work by the way.

@justlike-prog
Copy link
Author

justlike-prog commented Jul 20, 2023

Or rather it would be nice to know which pytorch transforms one needs to reproduce the results given an image. The OpenMMLab transforms are quite cryptic and differ from the torchvision ones. Were the results of paper based on the mmcv transforms? Right now I am doing the following, but my results are scewed a bit:

transform = transforms.Compose([transforms.ToTensor(),
                            transforms.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])
                            ])

img = Image.open("./test.jpeg").convert("RGB")
img = transform(img)
img = img.unsqueeze(0)

@IceClear
Copy link
Owner

IceClear commented Jul 23, 2023

Hi, you may refer to IQA-pytorch, which also supports CLIP-IQA :)
It should be easy to use.

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

No branches or pull requests

2 participants