GithubHelp home page GithubHelp logo

Comments (4)

Siddharth-Shrivastava7 avatar Siddharth-Shrivastava7 commented on June 14, 2024 5

Hi @erhathaway,
you need to make following changes to work non-linear deblur task work ( I am assuming that you cloned non linear deblur repository as bkse name and moved inside diffusion posterior sampling repo) :

  1. In diffusion-posterior-sampling/bkse/models/kernel_encoding/kernel_wizard.py :
  • Change import models.arch_util as arch_util into import bkse.models.arch_util as arch_util
  • Change from models.backbones.resnet import ResidualBlock_noBN, ResnetBlock into from bkse.models.backbones.resnet import ResidualBlock_noBN, ResnetBlock
  • Change from models.backbones.unet_parts import UnetSkipConnectionBlock into from bkse.models.backbones.unet_parts import UnetSkipConnectionBlock
  1. In diffusion-posterior-sampling/bkse/models/backbones/resnet.py :
  • Change from models.arch_util import initialize_weights into from bkse.models.arch_util import initialize_weights

Download Pretrained GOPRO_wVAE.pth from blur-kernel-space-exploring repo (link: GOPRO_wVAE.pth and then move it to diffusion-posterior-sampling/bkse/experiments/pretrained/.

  1. In diffusion-posterior-sampling/bkse/options/generate_blur/default.yml :
  • Change experiments/pretrained/kernel.pth into $HOME/bkse/experiments/pretrained/GOPRO_wVAE.pth
  1. In diffusion-posterior-sampling/bkse/options/generic_deblur/default.yml:
  • Change experiments/pretrained/kernel.pth into $HOME/diffusion-posterior-sampling/bkse/experiments/pretrained/kernel.pth
  • Change experiments/pretrained/GOPRO_wVAE.pth into $HOME/diffusion-posterior-sampling/bkse/experiments/pretrained/GOPRO_wVAE.pth

Hope this helps! :~)

from diffusion-posterior-sampling.

tomtom1103 avatar tomtom1103 commented on June 14, 2024 1

Hi @erhathaway, you need to make following changes to work non-linear deblur task work ( I am assuming that you cloned non linear deblur repository as bkse name and moved inside diffusion posterior sampling repo) :

  1. In diffusion-posterior-sampling/bkse/models/kernel_encoding/kernel_wizard.py :
  • Change import models.arch_util as arch_util into import bkse.models.arch_util as arch_util
  • Change from models.backbones.resnet import ResidualBlock_noBN, ResnetBlock into from bkse.models.backbones.resnet import ResidualBlock_noBN, ResnetBlock
  • Change from models.backbones.unet_parts import UnetSkipConnectionBlock into from bkse.models.backbones.unet_parts import UnetSkipConnectionBlock
  1. In diffusion-posterior-sampling/bkse/models/backbones/resnet.py :
  • Change from models.arch_util import initialize_weights into from bkse.models.arch_util import initialize_weights

Download Pretrained GOPRO_wVAE.pth from blur-kernel-space-exploring repo (link: GOPRO_wVAE.pth and then move it to diffusion-posterior-sampling/bkse/experiments/pretrained/.

  1. In diffusion-posterior-sampling/bkse/options/generate_blur/default.yml :
  • Change experiments/pretrained/kernel.pth into $HOME/bkse/experiments/pretrained/GOPRO_wVAE.pth
  1. In diffusion-posterior-sampling/bkse/options/generic_deblur/default.yml:
  • Change experiments/pretrained/kernel.pth into $HOME/diffusion-posterior-sampling/bkse/experiments/pretrained/kernel.pth
  • Change experiments/pretrained/GOPRO_wVAE.pth into $HOME/diffusion-posterior-sampling/bkse/experiments/pretrained/GOPRO_wVAE.pth

Hope this helps! :~)

works perfectly! thank you.

from diffusion-posterior-sampling.

HJ-harry avatar HJ-harry commented on June 14, 2024 1

Thanks @Siddharth-Shrivastava7 for your kind answer! Closing the issue as there are no more activities.

from diffusion-posterior-sampling.

DPS2022 avatar DPS2022 commented on June 14, 2024

Hello, did you clone two repositories in the readme? For non-linear deblur, we used an external repository to simulate. Please check it.

from diffusion-posterior-sampling.

Related Issues (13)

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.