Coder Social home page Coder Social logo

Results are blue about trainner HOT 5 CLOSED

victorca25 avatar victorca25 commented on June 19, 2024
Results are blue

from trainner.

Comments (5)

ajeema avatar ajeema commented on June 19, 2024 1

ok great, I will try that. Thank you

from trainner.

victorca25 avatar victorca25 commented on June 19, 2024 1

@mmmoussa96 Hello! Yours is a different situation, but it sounds potentially like an OpenCV BGR -> RGB conversion issue.

OpenCV by default reads images in BGR channel order, which are converted to RGB when converted to tensor for training.

Before line 158 here: https://github.com/victorca25/BasicSR/blob/master/codes/data/aligned_dataset.py, you can use the tmp_vis() debug function to visualize the images (uncomment line 9) and check if that’s the problem.

The function should look something like:

tmp_vis(img_A, False)

Try that and let me know how they look like.

from trainner.

victorca25 avatar victorca25 commented on June 19, 2024

Hello! Maybe there's a missing conversion between RGB and OpenCV's BGR channel format. I would have to check where this could be happening, but can you try to do the upscaling using: https://github.com/victorca25/iNNfer instead? It should be easier to use and I've tested it a lot recently.

from trainner.

mmmoussa96 avatar mmmoussa96 commented on June 19, 2024

was this fixed? I'm having a similar issue (where it's green). I converted images to npy used their sub-images as per the guide here: https://github.com/victorca25/BasicSR/wiki/IO-speed

from trainner.

mmmoussa96 avatar mmmoussa96 commented on June 19, 2024

Yes, I used PIL to pre-process the images and I guess forgot to convert RGB -> BGR. Did that, trained the model and now I'm getting this blue image described. Will use iNNfer now. Thank you!

from trainner.

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.