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

TypeError: Can not convert a LabImageRecordReader into a Tensor or Operation. #4

Closed
youyingyin opened this issue Dec 26, 2017 · 3 comments
Labels

Comments

@youyingyin
Copy link

youyingyin commented Dec 26, 2017

TypeError: Fetch argument <dataset.tfrecords.images.lab_image_record.LabImageRecordReader object at 0x0000000074CF3940> has invalid type <class 'dataset.tfrecords.images.lab_image_record.LabImageRecordReader'>, must be a string or Tensor. (Can not convert a LabImageRecordReader into a Tensor or Operation.)

i got this error when i ran train.py.

the solution is below@charleshamesse .check it out

@artemik
Copy link

artemik commented Dec 27, 2017

I get the same error.

@matheusbarrosp
Copy link

I get the same error. [2]

@charleshamesse
Copy link

I fixed it by editing the training_pipeline's return statement in colorization.training_utils. Remove irr and read_batched_examples on line 50:

return {
        'global_step': global_step,
        'optimizer': optimizer,
        'cost': cost,
        'summary': summary
    } #, irr, read_batched_examples

@lucasrodes lucasrodes added the bug label Jan 4, 2018
lucasrodes added a commit that referenced this issue Jan 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants