Comments (30)
@manvirvirk
Does the file look like the following?
inputs
├── data-science-bowl-2018
| ├── stage1_train
| | ├── 00ae65...
| │ │ ├── images
| │ │ │ └── 00ae65...
| │ │ └── masks
| │ │ └── 00ae65...
| │ ├── ...
| |
| ...
└── dsb2018_96
├── images
└── masks
└── 0
├── 00ae65...
...
from pytorch-nested-unet.
Thank you for the implementation! I have the same issue with the latest commit. I'm training on an original dataset and this is how it looks:
Original_Dataset
images
1.jpg
masks
0
1.png
I'm am able to print all the img_ids successfully after reading them so the dataset is being read correctly I guess.
from pytorch-nested-unet.
@balag59
Thanks for letting me know.
How do you set img_ext and mask_ext?
from pytorch-nested-unet.
i want to train on my own database. I have 20 colored images and respective masks. HOow to make directory of database. Thanks
from pytorch-nested-unet.
@balag59
Thanks for letting me know.
How do you set img_ext and mask_ext?
I was able to rectify this error as I forgot to set the right mask dir in train.py. That error has been resolved now. Thank you for your time!
from pytorch-nested-unet.
did you train this model on your own database?? @balag59
from pytorch-nested-unet.
did you train this model on your own database?? @balag59
Yes with just 1 class.
from pytorch-nested-unet.
Thanks for reply. I want to train it with my own database which contains 20 training images and respective masks. So what all changes we have to make. Please help as i m getting lot of errors. @balag59
from pytorch-nested-unet.
this is my directory:
input-dataset_name-image(it contains 20 images in png format)
masks(it contains 20 images in png format)
now what changes we need to make??? @balag59 @4uiiurz1
from pytorch-nested-unet.
this is my directory:
input-dataset_name-image(it contains 20 images in png format)
masks(it contains 20 images in png format)
now what changes we need to make??? @balag59 @4uiiurz1
I didn't run into any issues as soon as I fixed my mask directory path. Make sure that you are setting the right path for the image and mask directories. According to what you've mentioned above, you aren't placing the masks class wise right? All your masks are directly under the masks directory? If so, then you will need to place it class wise as mentioned in the README starting with class 0.
from pytorch-nested-unet.
thanks . now i enetered in this error:
File "C:\Users\virkt\Anaconda3\envs\unet\lib\site-packages\sklearn\model_selection_split.py", line 1805, in _validate_shuffle_split
train_size)
ValueError: With n_samples=0, test_size=0.2 and train_size=None, the resulting train set will be empty. Adjust any of the aforementioned parameters.
from pytorch-nested-unet.
thanks . now i enetered in this error:
File "C:\Users\virkt\Anaconda3\envs\unet\lib\site-packages\sklearn\model_selection_split.py", line 1805, in _validate_shuffle_split
train_size)
ValueError: With n_samples=0, test_size=0.2 and train_size=None, the resulting train set will be empty. Adjust any of the aforementioned parameters.
This error means that your image_ids directory is still not set correctly and that's why the n_samples is equal to 0. You will need to cross-check your image_ids path again and see if it's accurate.
from pytorch-nested-unet.
can you specify where in code i need to cross verify image_ids path??
from pytorch-nested-unet.
I m beginner so i m getting bit confused. Please specify where how to set image_ids path? Thanks for helping long way. @balag59
from pytorch-nested-unet.
this is how my directory looks like
input
dataset name
-images : contains 20 rgb images png format
-mask
-0 : contains 20 masks png format
from pytorch-nested-unet.
can you specify where in code i need to cross verify image_ids path??
Check line 247
from pytorch-nested-unet.
in train.py file???
from pytorch-nested-unet.
@manvirvirk Please try to change directory name input
to inputs
from pytorch-nested-unet.
img_ids = glob(os.path.join('inputs', config['dataset'], 'images', '*' + config['img_ext']))
img_ids = [os.path.splitext(os.path.basename(p))[0] for p in img_ids]
i think these lines? what changes need to be made here? thanks @balag59
from pytorch-nested-unet.
oh got it
from pytorch-nested-unet.
its already inputs
from pytorch-nested-unet.
ok...
from pytorch-nested-unet.
so what changes need to be made in image_ids path?
from pytorch-nested-unet.
Please try the following code:
img_ids = glob(os.path.join('inputs', config['dataset'], 'images', '*' + config['img_ext']))
img_ids = [os.path.splitext(os.path.basename(p))[0] for p in img_ids]
print(img_ids)
from pytorch-nested-unet.
started training , thanks for helping long way :)
from pytorch-nested-unet.
i think print(img_ids) command worked:)
from pytorch-nested-unet.
did you do testing also???
from pytorch-nested-unet.
did you validate the model? @balag59
from pytorch-nested-unet.
how we get segmented image???
from pytorch-nested-unet.
Please read README.
from pytorch-nested-unet.
Related Issues (20)
- All bias in conv layers before the batch norm is unnecessary.
- how to outputs segmentation of all the 4 layers with deep_supervision ? HOT 1
- Pre training model??
- Why is the official IOU 0.92 and your IOU only 0.84 HOT 1
- Question about training the model
- about deep supervision
- Is the mask label of the data trained by myself an 8-bit color label graph, or an 8-bit grayscale graph?
- deploy on opencv HOT 1
- Where does the code reflect that "the global loss is weighted and accumulated by the loss functions of each branch"? HOT 1
- Question about "ValueError: With n_samples=0, test_size=0.2 and train_size=None, the resulting train set will be empty. Adjust any of the aforementioned parameters". HOT 3
- When I run the train.py,the results are "loss nan - iou 0.0000 - val_loss nan - val_iou 0.0000"? HOT 2
- crime detection project HOT 1
- albumentations HOT 4
- What is the correct format for training on custom data? HOT 1
- How can I predict segmentation results after training? HOT 12
- Why is the iou result of your code 0.843, but the iou result of the original author of UNet++ for DSB2018 data set 0.92? HOT 2
- How do I train on different image dimenstions e.g 192 x 192 instead of 96 x 96 pixels? HOT 1
- Tensor size mismatch
- is there a pre-trained model available?
- this repo is unable to run! HOT 2
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 pytorch-nested-unet.