Coder Social home page Coder Social logo

Comments (4)

carlosedubarreto avatar carlosedubarreto commented on July 19, 2024

I think I've foud the problem, the values ar duplicating
image

Now I'll try to find why ☺️

from neuralhaircut.

carlosedubarreto avatar carlosedubarreto commented on July 19, 2024

Found a solution changin a bit the information where it loads the images

    # self.images_lis = sorted(glob_imgs(os.path.join(self.data_dir, 'image')))
    self.images_lis = sorted(glob(os.path.join(self.data_dir, 'image','*.png')))

    # self.masks_lis = sorted(glob_imgs(os.path.join(self.data_dir, 'mask')))
    self.masks_lis = sorted(glob(os.path.join(self.data_dir, 'mask','*.png')))

load hair mask

    # self.hair_masks_lis = sorted(glob_imgs(os.path.join(self.data_dir, 'hair_mask')))
    self.hair_masks_lis = sorted(glob(os.path.join(self.data_dir, 'hair_mask','*.png')))

load orientations

    # self.orientations_lis = sorted(glob_imgs(os.path.join(self.data_dir, 'orientation_maps')))
    self.orientations_lis = sorted(glob(os.path.join(self.data_dir, 'orientation_maps','*.png')))

load variance

    # self.variance_lis = sorted(glob_imgs(os.path.join(self.data_dir, 'confidence_maps')))
    self.variance_lis = sorted(glob(os.path.join(self.data_dir, 'confidence_maps','*.png')))

from neuralhaircut.

egorzakharov avatar egorzakharov commented on July 19, 2024

Hello Carlos,

Thanks for investigating this issue! We'll take a look at it.

from neuralhaircut.

carlosedubarreto avatar carlosedubarreto commented on July 19, 2024

Oh I missed one thing, on the last part of the code I wrote it wrong and Vanessa corrected me.

Instead of
self.variance_lis = sorted(glob(os.path.join(self.data_dir, 'confidence_maps','*.png')))

it should be
self.variance_lis = sorted(glob(os.path.join(self.data_dir, 'confidence_maps','*.npy')))

from neuralhaircut.

Related Issues (18)

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.