Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ChidanandKumarKS opened this issue Aug 29, 2017 · 5 comments
Open

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

ChidanandKumarKS opened this issue Aug 29, 2017 · 5 comments

Comments

@ChidanandKumarKS
Copy link

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
Copy link

Nqabz commented Sep 3, 2017

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

@ChidanandKumarKS
Copy link
Author

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
Copy link

@ChidanandKumarKS Hello! Have you solved the problem?

@kuixu
Copy link

kuixu commented Sep 27, 2017

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

@ManyuChang
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants