Comments (5)
Hi @wcoool , "Assertion t >= 0 && t < n_classes failed" - this happens because the ground truth segmentation maps contain other pixels than 0 or 1 ( in case of binary segmentation ). So, when you use GLAS dataset, before calculating loss, you can include a couple of lines of code where you make all the pixels above 127 in the ground truth as 1 and the rest as 0. This should solve the error.
y_batch[y_batch>=127] = 1
y_batch[y_batch<127] = 0
You can also do this alternatively by running a separate code to make all the ground truth segmentation labels 0 or 1 separately initially and using the new folder of labels as the train and test path.
from kiu-net-pytorch.
I am very glad that you could help me solve the problem. In the paper ,you said that you set 85 images for training and 80 images for testing in GLAS dataset. However, It has validation data in this code, Could you tell my that the numbers of training images, validation images and test images which you set in GLAS dataset.
from kiu-net-pytorch.
As the number of images is very less, only train and test datasets were used for the experiments. You can just give the test dataset directory in val_dataset variable.
from kiu-net-pytorch.
when i use GLAS dataset. the output of the prediction the array of the image is o ,how to solve it?
from kiu-net-pytorch.
Can you please check if you have processed the data according to the Notes ( meaning background is 0 and gland segmentation is 1) because I just retrained it and seems to work for me.
from kiu-net-pytorch.
Related Issues (20)
- did you resize all the data into128*128? train with 128*128, test with 128*128, including all the labels?? HOT 2
- How much time cost for one epoch when you trained the KiUNet? HOT 2
- Issue with loss function. HOT 1
- No module named 'multicrop' HOT 1
- Hi, Can you share your score on codalab about LITS2017
- High memory consumption HOT 2
- Valid 3d model implementation
- About the preprocessing data? HOT 3
- The structure of the 3D KiUNet model is incorrect HOT 4
- Is there open access to the BrainUS dataset?
- There is no definition of class Parser in utils HOT 1
- There is no definition of class Parser in utils HOT 1
- Slow training
- Resized Glas dataset match Dice 0.71?
- brats
- Please help me!
- Could you please provide the code of liver tumor segmentation?
- How to use pretained model like a ResNet?
- The model predicts pixels as opposed to true pixels
- About the edgeloss and softmax in KiUnet 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 kiu-net-pytorch.