Giter VIP home page Giter VIP logo

Comments (5)

wooseoklee4 avatar wooseoklee4 commented on May 27, 2024

Hi, Mrhard1999.

I used an RTX 2080 TI with 11GB memory, but I think your setting is enough to run inference.
The required memory size depends on the test image size and I think the memory issue is due to the larger image size.
Can you specify the size of the image?

Or I also implemented code for this by cropping a large image into several smaller images and forwarding these smaller images.
See the below code in './src/trainer/base.py'.
Screenshot from 2022-10-24 17-15-49

To do this, you should change the configuration file by adding a line: "crop: 512" like down below.
Screenshot from 2022-10-24 17-23-43
The default setting is 512 size with no overlapping, but I recommend setting a slight overlap to prevent boundary artifacts.

Please let me know If you still have a problem.
Thank you:)

from ap-bsn.

Mrhard1999 avatar Mrhard1999 commented on May 27, 2024

I'm sorry to get back to you so late, the single test was unsuccessful, it is indeed a problem with the size of the image as you said. But I still have a question about two datasets, the DND dataset is a mat file, and it is still mat after training. I didn't understand what your paper said about the 50 pairs of images in DND for testing the model, where is its point of comparison, or do these 50 pairs of pictures need to be taken out of MAT? The second question is appropriate what is the reason why black image blocks are produced when I run the test.py of the SID
K7J)RU1W P181)PNDY~RY
D dataset (as shown below)? Looking forward to hearing from you

from ap-bsn.

wooseoklee4 avatar wooseoklee4 commented on May 27, 2024

Hi, Mrhard1999

About the first question, the DND dataset has 50 pairs of images, but they only released noisy images for evaluation.
As the AP-BSN is a self-supervised method, we both trained & tested using these released 50 noisy images.
Also, as you said, the released DND images have .mat format, so we load tensor images from .mat files.
Please refer to the code: './src/datahandler/DND.py'.
In addition, I recommend preparing the dataset using './prep.py' which crops and saves as .png files for training.

And could you specify more details about your test setting?
Did you test the model trained yourself? or use the pre-trained model?
If you are looking for the evaluated images from the pre-trained model, there are evaluated SIDD images for both validation and benchmark.
The links are in the README.md.

Thank you:)

from ap-bsn.

Mrhard1999 avatar Mrhard1999 commented on May 27, 2024

102/5000
I saw thatevaluated SIDD images for both validation and benchmark.But when i test the model by myself,I haven't changed any parameters. I used a pre-trained model. I would like to know why there would be one black image block after another in the output result.

from ap-bsn.

wooseoklee4 avatar wooseoklee4 commented on May 27, 2024

I checked one more time from the beginning including cloning the project.

I cannot find the error that you mentioned (it works for me like the below image)
Screenshot from 2022-10-31 17-49-06

Could you follow the instructions in README.md one more time?

from ap-bsn.

Related Issues (16)

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.