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 to use my own training images? #2

Open
twinsyssy1018 opened this issue Jan 3, 2017 · 4 comments
Open

how to use my own training images? #2

twinsyssy1018 opened this issue Jan 3, 2017 · 4 comments

Comments

@twinsyssy1018
Copy link

hi, i want use some super-resolution images to training srgan ,but i can not find the way to change image dir . could you provide this?

@buriburisuri
Copy link
Owner

@twinsyssy1018 Sorry for late reply. ( enjoyed long holidays )

If you want to use your own dataset, you can do that as same way as other normal tensorflow jobs.( feed dictionary or queue ... ). Please read https://www.tensorflow.org/how_tos/reading_data/ . Thank your.

@twinsyssy1018
Copy link
Author

@buriburisuri thank you very much

@xolott
Copy link

xolott commented Aug 2, 2017

HI,

I'm trying to train this model with the LFW dataset. So far, I made the loading code of the entire dataset and convert it to a tensors list. But when I pass this images through the generator network

    # generator network
    with tf.sg_context(name='generator', act='relu', bn=True):
    gen = (x_small
           .sg_conv(dim=32)
           .sg_conv()
           .sg_conv(dim=4, act='sigmoid', bn=False)
           .sg_periodic_shuffle(factor=2))

It gave me a (1333,128,160,1) output tensor, from a (1333,128,160,3) input tensor. So when the code concat the x_nearest with x and with gen, it give me 2 differents shape tensors of (1333,128,160,4) and (1333,128,160,6)

I don't understand how to change this network to fit this data set. This is a difficult subject to me.

@ratsuki
Copy link

ratsuki commented Jan 17, 2018

@xolott I get the same problem when I use my own RGB images,it give me two differents tensors of (32,28,28,6) and (32,28,28,4)
can you resolve this problem?I will be grateful to you.

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