Giter Club home page Giter Club logo

Comments (9)

antipa avatar antipa commented on August 26, 2024

it looks like it's just having issues finding paths to various packages. The code is still looking for a specific path on someone else's computer--try modifying line 235 to point to whichever directory you installed PerceptualSimilarity and see if that helps? Maybe @monakhova could chime in and help out.

from lenslesslearning.

monakhova avatar monakhova commented on August 26, 2024

The package is from the Perceptual Similarity repo and calls the LPIPS loss. You can find this here: https://github.com/richzhang/PerceptualSimilarity

from lenslesslearning.

tianjiaozeng avatar tianjiaozeng commented on August 26, 2024

Thanks! It works now.
Can I ask another question? I notice that in the admm_model.py, class ADMM_Net needs a parameter "h" for initialization. what should this "h" be if I'd like to retrain the models?

class ADMM_Net(nn.Module):
def init(self, batch_size, h, iterations, learning_options = {'learned_vars': []},
cuda_device = torch.device('cpu'), le_admm_s = False, denoise_model = []):

Thank you!

The package is from the Perceptual Similarity repo and calls the LPIPS loss. You can find this here: https://github.com/richzhang/PerceptualSimilarity

from lenslesslearning.

tianjiaozeng avatar tianjiaozeng commented on August 26, 2024

Thanks! It works now.
Can I ask another question? I notice that in the admm_model.py, class ADMM_Net needs a parameter "h" for initialization. what should this "h" be if I'd like to retrain the models?

class ADMM_Net(nn.Module):
def init(self, batch_size, h, iterations, learning_options = {'learned_vars': []},
cuda_device = torch.device('cpu'), le_admm_s = False, denoise_model = []):

Thank you!

from lenslesslearning.

tianjiaozeng avatar tianjiaozeng commented on August 26, 2024

it looks like it's just having issues finding paths to various packages. The code is still looking for a specific path on someone else's computer--try modifying line 235 to point to whichever directory you installed PerceptualSimilarity and see if that helps? Maybe @monakhova could chime in and help out.

Can I ask another question? I notice that in the admm_model.py, class ADMM_Net needs a parameter "h" for initialization. what should this "h" be if I'd like to retrain the models?

class ADMM_Net(nn.Module):
def init(self, batch_size, h, iterations, learning_options = {'learned_vars': []},
cuda_device = torch.device('cpu'), le_admm_s = False, denoise_model = []):

Thank you so much!

from lenslesslearning.

monakhova avatar monakhova commented on August 26, 2024

h is the point spread function of the imaging system.

from lenslesslearning.

tianjiaozeng avatar tianjiaozeng commented on August 26, 2024

h is the point spread function of the imaging system.

I notice in the DiffuserCam project, there's a mat file "example_psf.mat". Is this the same psf that should be used here?

Thank you so much!

from lenslesslearning.

JayShaun avatar JayShaun commented on August 26, 2024

The package is from the Perceptual Similarity repo and calls the LPIPS loss. You can find this here: https://github.com/richzhang/PerceptualSimilarity

Sorry, I don't know if I miss something, but I don't find 'dist_model' in directory 'models'. I'd really appreciate it if you could help me solve this problem.

from lenslesslearning.

BaIGaO avatar BaIGaO commented on August 26, 2024

The package is from the Perceptual Similarity repo and calls the LPIPS loss. You can find this here: https://github.com/richzhang/PerceptualSimilarity

Sorry, I don't know if I miss something, but I don't find 'dist_model' in directory 'models'. I'd really appreciate it if you could help me solve this problem.

The latest repo of LPIPS has changed a lot. You can pull history repo ,here :https://github.com/richzhang/PerceptualSimilarity/releases/tag/1.0 .

from lenslesslearning.

Related Issues (4)

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.