Coder Social home page Coder Social logo

test with val.py about imgcomp-cvpr HOT 6 CLOSED

fab-jul avatar fab-jul commented on June 27, 2024
test with val.py

from imgcomp-cvpr.

Comments (6)

fab-jul avatar fab-jul commented on June 27, 2024

Please follow the README. You need to download the checkpoints and extract them to ckpts. Then, the possible values for MODEL_ID are given in the README. Let me know if this works for you.

from imgcomp-cvpr.

Jillian2017 avatar Jillian2017 commented on June 27, 2024

@fab-jul Sorry for the late reply, maybe some version is not the same in my environment, I will try again. Recently I have tried to use your ms_ssim.py to train my network, but the value of ms_ssim was quite high(about 0.99) even at the very begining as I trained the network was trained from scratch. The ms_ssim' value is not reasonable, while the mean square loss is quite low. I wonder have you ever tested the ms_ssim.py before, I did not change any thing to the ms_ssim.py. Need your help, thanks a lot.

from imgcomp-cvpr.

fab-jul avatar fab-jul commented on June 27, 2024

How did you try training, with which parameters?

We have thoroughly tested ms_ssim.py before using it to train.

from imgcomp-cvpr.

Jillian2017 avatar Jillian2017 commented on June 27, 2024

Er, I found that in my situation the image's range value was set incorrectly, I noticed that there was a layer of tf.clip_by_value in your decoder network, so I adapted it in my network, and it worked.
Another problem appeared! I test an image with my trained model, and print the ms-ssim value as the way of training process, here I can get the ms-ssim value calculating in your way. After testing, I can get the reconstructed image, then I calculate the ms-ssim value with the original image using a python version ms-ssim , but these 2 values are different, e.g. the former one is 0.186 and the latter one is 0.255, so I'm very confused.

from imgcomp-cvpr.

fab-jul avatar fab-jul commented on June 27, 2024

Hard to say what the problem is. One thing you have to be careful about is the dtype, it should be uint8 for these kind of comparisons. Also double check the ranges of the values.

from imgcomp-cvpr.

Jillian2017 avatar Jillian2017 commented on June 27, 2024

Okay, thanks for your reply, I will check.

from imgcomp-cvpr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.