Giter VIP home page Giter VIP logo

Comments (7)

nanmehta avatar nanmehta commented on May 22, 2024 1

okay .. and thanks for the code

from esrgan-tf2.

nanmehta avatar nanmehta commented on May 22, 2024

can u please tell me the reason, though esrgan has good results visually, but the psnr is low as compaired to psnr results

from esrgan-tf2.

peteryuX avatar peteryuX commented on May 22, 2024

Hey, @nan-rock. Higher PSNR dose not mean better visual quality but fidelity.

from esrgan-tf2.

nanmehta avatar nanmehta commented on May 22, 2024

hey,i need your help. when i am using imresize_np() to generte set 14 low resolution images, my images are getting distorted.
this is my code
`path="D:/SR_testing_datasets/Set14"
savepath="d:"
for img_name in os.listdir(path):
raw_img = cv2.imread(os.path.join(path, img_name))
shape=raw_img.shape
#print(shape)
new_image=imresize_np(raw_img, (2)).astype(np.uint8)
#print("new",new_image.shape)

            #new_image=tf.image.resize( raw_img, [shape[0]+1,shape[1]+1], method ='bilinear'4
            result_img_path = os.path.join(savepath,img_name)
            #print(  result_img_path)
            #print(result_img_path)
            #print(os.listdir(result_img_path))
            a=cv2.imwrite(result_img_path, new_image)
            print(a)  `

image

from esrgan-tf2.

peteryuX avatar peteryuX commented on May 22, 2024

Try np.clip() value to 0 - 255 before astype to uint8

from esrgan-tf2.

nanmehta avatar nanmehta commented on May 22, 2024

thanks a lot sir.
wish u good luck.

from esrgan-tf2.

nanmehta avatar nanmehta commented on May 22, 2024

hello sir, is the result evaluated on y channel or RGB

from esrgan-tf2.

Related Issues (15)

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.