tkuanlun350 / 3DUnet-Tensorflow-Brats18

3D Unet biomedical segmentation model powered by tensorpack with fast io speed
202 stars 68 forks source link

AssertionError #21

Open davidiommi opened 5 years ago

davidiommi commented 5 years ago

Traceback (most recent call last): File "D:\1_Deep_learning\codes\Segmentation Deep learing\3DUnet-Tensorflow-Brats18-master\train.py", line 211, in data=QueueInput(get_train_dataflow()), File "D:\1_Deep_learning\codes\Segmentation Deep learing\3DUnet-Tensorflow-Brats18-master\data_sampler.py", line 240, in get_train_dataflow ds = BatchData(MapData(ds, preprocess), config.BATCH_SIZE) File "D:\1_Deep_learning\codes\Segmentation Deep learing\3DUnet-Tensorflow-Brats18-master\data_sampler.py", line 49, in init assert batch_size < ds.size() AssertionError

Liam-Yi commented 5 years ago

Hello, I met the same problem, have you found any solutions?

jaganmohan-akkineni commented 5 years ago

I have this problem too! Did you find any solution?

training Data Folder: /Brats2018Dataset/training Preprocessing Data ... 0it [00:00, ?it/s] Traceback (most recent call last): File "train.py", line 211, in data=QueueInput(get_train_dataflow()), File "/home/jaganma7/3DUnet-Tensorflow-Brats18/data_sampler.py", line 240, in get_train_dataflow ds = BatchData(MapData(ds, preprocess), config.BATCH_SIZE) File "/home/jaganma7/3DUnet-Tensorflow-Brats18/data_sampler.py", line 49, in init assert batch_size <= ds.size() AssertionError

Can you suggest a solution? @tkuanlun350

My directory structure looks like this: Brats2018Dataset/ training/ HGG/ LGG/

zndr27 commented 5 years ago

I got the same error

Keepbright commented 5 years ago

I also got the same error. Have you find any solution? @tkuanlun350

jizhongyi111 commented 5 years ago

I have solved this problem by change the basedir '/data/training/' to './data/training/'

bonjoura commented 4 years ago

I met this error too , just change your basedir to full express like '/home/user/Dataset/2018/training' in config.py