Coder Social home page Coder Social logo

Comments (7)

KupynOrest avatar KupynOrest commented on May 22, 2024

There are few options and few choices of dataset (Aligned, Single etc.) To create aligned dataset you would need to run combine_A_and_B script to create image pairs, otherwise, you need to change the type of the dataset, I would update to instructions soon

from deblurgan.

carlblocking avatar carlblocking commented on May 22, 2024

Can you provide more information about it? @KupynOrest

from deblurgan.

YangShuguang avatar YangShuguang commented on May 22, 2024

when I generated blured images using the code blur_image.py. I found a lot of picture become Black block. It seems that all the pixel value become zero. how I solve the problem? @hrbspider @KupynOrest

from deblurgan.

pengjingg avatar pengjingg commented on May 22, 2024

@YangShuguang Use scipy.misc.imsave() to save the generated blurry image instead of cv2.imwrite()

from deblurgan.

pengjingg avatar pengjingg commented on May 22, 2024

@YangShuguang You should use either OpenCV or Scipy while reading and writing images; use one to read images and another to write images would cause black block output.

from deblurgan.

YangShuguang avatar YangShuguang commented on May 22, 2024

@pengjingg. are you sure? I'll try your way. now my solution is to modify the "self.max_len / (self.iters - 1))" to "self.max_len / float(self.iters - 1))" (generate_trajectory.py 80 lines). and modify "self.fraction = [1 / 100, 1 / 10, 1 / 2, 1]'' to ''self.fraction = [1/float(100), 1/float(10), 1/float(2), 1]'' (generate_PSF.py 19 lines ). it seems to work

from deblurgan.

pengjingg avatar pengjingg commented on May 22, 2024

@YangShuguang You are right. My way just solved problems for some images but won't work out for others(strange). Thanks a lot

from deblurgan.

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.