SimJeg / FC-DenseNet

Fully Convolutional DenseNets for semantic segmentation.
489 stars 146 forks source link

X, Y = iterator.next() in Line 63 of test.py is crashing #21

Open ChidanandKumarKS opened 6 years ago

ChidanandKumarKS commented 6 years ago

I have given appropriate datasets along with proper folder and train and annotation datasets properly. The inference function test.py at line 63 is crashing

Below error crashes X, Y = iterator.next() ValueError: too many values to unpack.

Any solutions to the above problem would be really helpful.

Thanks Kumar

Nqabz commented 6 years ago

can you post your data_loader here? How are you setting up the iterator?

ChidanandKumarKS commented 6 years ago

the iterator has been pointed to datasetloaders taken from https://github.com/fvisin/dataset_loaders

Below is the iterator test_iter = CamvidDataset(which_set='test', batch_size=batch_size[2], seq_per_video=0, seq_length=0, crop_size=None, get_one_hot=False, get_01c=False, shuffle_at_each_epoch=False, overlap=0, use_threads=True, save_to_dir=False)

Kindly suggest the solution ,

ManyuChang commented 6 years ago

@ChidanandKumarKS Hello! Have you solved the problem?

kuixu commented 6 years ago

I have solved it. See issue23. May that would help you. #23

ManyuChang commented 6 years ago

I solved it by changing X,Y = iterator.next() into Data = iterator.next() X = Data['raw_data'] Y = Data['labels'] And I get the right result.