The example code for u-net brain MRI may not include normalization pre-step

Aperta
#72 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python, pytorch

Direzione di ricerca

The change is in the preprocess transforms.Compose pipeline shown in the issue body, which applies transforms.Normalize with mean and std after ToTensor for the brain MRI U-Net example on the PyTorch Hub page. Before editing, confirm against the original training code the reporter cites whether normalization was used, and run the example with and without that step to compare outputs. Done means a justified decision on the preprocessing, with the example updated or the question answered in the thread.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

When I following the example code in [(https://pytorch.org/hub/mateuszbuda_brain-segmentation-pytorch_unet/)] the results is a mess. Then I discovered by removing the normalization step, everything goes well. I checked the repo for the original code, it seems the training procedure did not have a normalization step. So it may be better to fix it. The model is good.
What I mean is, changing
preprocess = transforms.Compose([ transforms.ToTensor(), transforms.Normalize(mean=m, std=s), ])
to
preprocess = transforms.Compose([ transforms.ToTensor(), ])
I was new to this area, tell me if I am wrong. Thanks.

Lingua principale
Python
Stelle
1.4k
Fork
248
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pytorch/hub

Tutte le issue di pytorch/hub

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.