3DUnet-Tensorflow-Brats18 icon indicating copy to clipboard operation
3DUnet-Tensorflow-Brats18 copied to clipboard

AssertionError

Open davidiommi opened this issue 5 years ago • 6 comments

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

davidiommi avatar Mar 01 '19 13:03 davidiommi

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

Liam-Yi avatar Mar 31 '19 17:03 Liam-Yi

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/

jaganmohan-akkineni avatar Jun 03 '19 04:06 jaganmohan-akkineni

I got the same error

zndr27 avatar Jun 11 '19 21:06 zndr27

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

Keepbright avatar Oct 09 '19 09:10 Keepbright

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

jizhongyi111 avatar Oct 30 '19 08:10 jizhongyi111

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

bonjoura avatar Dec 18 '19 08:12 bonjoura