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

How does tfrecord generate ? #10

Open
Marshall-yao opened this issue May 12, 2020 · 3 comments
Open

How does tfrecord generate ? #10

Marshall-yao opened this issue May 12, 2020 · 3 comments

Comments

@Marshall-yao
Copy link

Hi,

You said that "Remove 'label' key in 'write_to_tfrecord()' function.“ and save the ground-truth patches in your GitHub. However, the label key is relevant to grond-truth. Is this wrong?

I "Remove all contents regarding low-resolution images in the 'generate_TFRecord()' function" as you said and save the label key.

Then ** I have got the following error :**

tensorflow.python.framework.errors_impl.InvalidArgumentError: Feature: image (data type: string) is required but could not be found.
[[Node: ParseSingleExample/ParseSingleExample = ParseSingleExample[Tdense=[DT_STRING], dense_keys=["image"], dense_shapes=[[]], num_sparse=0, sparse_keys=[], sparse_types=[]](arg0, ParseSingleExample/Const)]]
[[Node: IteratorGetNext = IteratorGetNextoutput_shapes=[[?,64,64,3]], output_types=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"]]

Does anyone have ideas ?

@FBLeee
Copy link

FBLeee commented May 12, 2020

I don't know if I'm doing it right. I can generate a tfrecord file according to the author。But then there was an error somewhere else and it didn't work。。。。。

@JWSoh
Copy link
Owner

JWSoh commented May 13, 2020

We have just uploaded the code to generate TFRecord dataset for MZSR. Please try with new code.

@Marshall-yao
Copy link
Author

@JWSoh

Thanks so much for your reply. I will have a try.

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

3 participants