FC-DenseNet icon indicating copy to clipboard operation
FC-DenseNet copied to clipboard

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

Open ChidanandKumarKS opened this issue 7 years ago • 5 comments

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

ChidanandKumarKS avatar Aug 29 '17 09:08 ChidanandKumarKS

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

Nqabz avatar Sep 03 '17 01:09 Nqabz

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 ,

ChidanandKumarKS avatar Sep 04 '17 05:09 ChidanandKumarKS

@ChidanandKumarKS Hello! Have you solved the problem?

ManyuChang avatar Sep 27 '17 06:09 ManyuChang

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

kuixu avatar Sep 27 '17 07:09 kuixu

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.

ManyuChang avatar Sep 28 '17 01:09 ManyuChang