Comments (2)
It simply means that validation_cases
is larger than len(self.patients)
.
patients
is a dictionary mapping patient IDs to volumes.
Did you run it on your own dataset?
You can add this assert after setting self.patients
variable:
brain-segmentation-pytorch/dataset.py
Line 51 in 8ef2e2d
assert len(patients) >= validation_cases, f'The number of patients ({len(self.patients)}) is lower than the validation sample size ({validation_cases})'
from brain-segmentation-pytorch.
I have solved " validation_patients = random.sample(self.patients, k=validation_cases)
File "/usr/lib/python3.6/random.py", line 320, in sample
raise ValueError("Sample larger than population or is negative")
ValueError: Sample larger than population or is negative"
issue by adding --images 'root folder with images' argument while running inference.py
from brain-segmentation-pytorch.
Related Issues (20)
- Reproducibility issue HOT 5
- how to train on my dataset HOT 5
- Training on a custom dataset HOT 1
- in_channels parameter change causes size mismatch HOT 5
- Retraining on own dataset HOT 1
- Example on Colab not segmenting the tumor HOT 13
- A puzzle about the code HOT 1
- How can I run the docker container if my GPU isn't nvidia
- Very large images on my dataset
- Run on the test data HOT 3
- Can I run the code on test folder without the masks??
- google colab
- how can I apply other loss functions
- IoU of the model
- Negative loss value HOT 3
- After UNet Inference, how to overlay / superimpose the different size predicted masks to the original image size?
- dice
- Error
- manifest for nvidia/cuda:10.0-cudnn7-devel-ubuntu18.04 not found: manifest unknown: manifest unknown
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 brain-segmentation-pytorch.