Comments (9)
it is not assign if you use a string as argument
from torchio.
Fixed in v0.11.3
. Thanks, @romainVala
from torchio.
By the way,
- Are you using
Rescale
for CT data? - You don't need to use
Compose
if you only have one transform
from torchio.
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.
Instead of
array -= self.out_min # [out_min, out_max]
it should be
array += self.out_min # [out_min, out_max]
from torchio.
Thanks again! I definitely need to write some unit tests...
from torchio.
Is there a strong reason to choose (0, 1) over (-1, 1)?
from torchio.
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.
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)
- Different transforms applied to CT and label HOT 11
- The Affine matrix does not change after applying the augmentations HOT 3
- Custom loader not used when loading data lazily HOT 2
- Seed is not working HOT 2
- Silenced exception makes it harder to debug custom Transforms HOT 5
- Resample
- tio.Resample does not work with custom image class HOT 2
- Setting NUM_SAMPLES when using sampler with Queue HOT 3
- RescaleIntensity - multiple calls HOT 9
- Return sampled parameters upon request HOT 3
- Halve queue length when using DDP HOT 2
- bug in rotation part of tio.transforms.RandomAffine HOT 4
- get_subjects_from_batch has a hick-up with int metadata HOT 5
- masking_method in Mask class is not saved as argument (preventing applying the inverse transform)
- RandomAffine raises an error when isotropic=True and 3 elements are given for scales HOT 10
- Queue is not respecting the batch size HOT 1
- Resample an image by providing only the target affine HOT 1
- Supporting PyTorch 2.3 HOT 17
- Cannot copy subclass of Subject with keyword arguments HOT 2
- Image intensity augmentations HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from torchio.