Giter Site home page Giter Site logo

Comments (9)

romainVala avatar romainVala commented on June 25, 2024

it is not assign if you use a string as argument

from torchio.

fepegar avatar fepegar commented on June 25, 2024

Fixed in v0.11.3. Thanks, @romainVala

from torchio.

fepegar avatar fepegar commented on June 25, 2024

By the way,

  1. Are you using Rescale for CT data?
  2. You don't need to use Compose if you only have one transform

from torchio.

romainVala avatar romainVala commented on June 25, 2024

Ok pour Compose, (I though it was mandatory)

I do not work with CT data, I use rescale to have number between 0 and 1 (by the way I would change the default for out_min_max 0 1

Currently I do not undersand, why I get value between 1 and 3 instead of value between -1 1 ... (but it woks fine if I ask fo (0,1) ...

from torchio.

romainVala avatar romainVala commented on June 25, 2024

Instead of
array -= self.out_min # [out_min, out_max]
it should be
array += self.out_min # [out_min, out_max]

from torchio.

fepegar avatar fepegar commented on June 25, 2024

Thanks again! I definitely need to write some unit tests...

from torchio.

fepegar avatar fepegar commented on June 25, 2024

Is there a strong reason to choose (0, 1) over (-1, 1)?

from torchio.

fepegar avatar fepegar commented on June 25, 2024

I'd like to make this implementation look more like https://github.com/scikit-image/scikit-image/blob/master/skimage/exposure/exposure.py#L269

from torchio.

romainVala avatar romainVala commented on June 25, 2024

I do not know if it makes a difference from a CNN point of view. ... ?

It is just that mri is usually always positive (see #37 (comment))

Other point may be, after masking you usually get voxel value to zero in the background, so normalizing to -1 1 will break it ...

but not a big deal it is just the default value, easy to change

from torchio.

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.