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

Conversion to paired image to image translation #4

Closed
gunshi opened this issue Nov 19, 2017 · 4 comments
Closed

Conversion to paired image to image translation #4

gunshi opened this issue Nov 19, 2017 · 4 comments

Comments

@gunshi
Copy link

gunshi commented Nov 19, 2017

Hey,
I want to try paired image to image translation within the framework of cyclic consistency and shared latent space etc mentioned in the paper.
To do that, the only thing i have to change in this code is remove the shuffling when creating file paths of images from the dataset directory for csv file creation, right?

@leehomyc
Copy link
Owner

yep

@gunshi
Copy link
Author

gunshi commented Nov 24, 2017

Okay thanks.
And if I wanted to translate, say 360x640 images(want to maintain aspect ratio) instead of 256x256, how would I do that? Since the layers are fully convolutional, and i wanted to use the resnet model, I thought I'll just change the output shape expected by 'general_deconv2d' to what i want, and change size parameters in various files. Not sure if there's anything else?

edit: I think i'll have to also add another few layers of convolutions to discriminator specs? Can you guide with how to do that exactly?

@gunshi
Copy link
Author

gunshi commented Nov 24, 2017

Also, were the lines:

        self.input_a = tf.placeholder(
            tf.float32, [
                1,
                model.IMG_WIDTH,
                model.IMG_HEIGHT,
                model.IMG_CHANNELS,
], name="input_A")

in main.py intended to be


        self.input_a = tf.placeholder(
            tf.float32, [
                1,
                model.IMG_HEIGHT,
                model.IMG_WIDTH,
                model.IMG_CHANNELS,
], name="input_A")

instead?

Because I get an error here saying :
ValueError: Cannot feed value of shape (1, 360, 640, 3) for Tensor 'input_A:0', which has shape '(1, 640, 360, 3)'

@gunshi
Copy link
Author

gunshi commented Nov 24, 2017

Flipping those parameters fixes things.

@gunshi gunshi closed this as completed Nov 24, 2017
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

2 participants