-
Notifications
You must be signed in to change notification settings - Fork 228
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
i want to change mask,a problem occured #11
Comments
All the models (Generator, Discriminator) need an Input Shape of (256, 128, 3). As I can see you are feeding an image shape of (128, 128, 3), make sure your custom data preparation is correct. |
i want to put shape of(128,128,3)into model G and D,how should i change ?------------------ 原始邮件 ------------------
发件人: "Bendang"<[email protected]>
发送时间: 2019年9月10日(星期二) 晚上10:22
收件人: "bendangnuksung/Image-OutPainting"<[email protected]>;
抄送: "zhangbaijin"<[email protected]>;"Author"<[email protected]>;
主题: Re: [bendangnuksung/Image-OutPainting] i want to change mask,aproblem occured (#11)
All the models (Generator, Discriminator) need an Input Shape of (256, 128, 3). As I can see you are feeding an image shape of (128, 128, 3), make sure your custom data preparation is correct.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
To train with shape of (128, 128, 3) you need to change values in two files:
input_shape = (256, 256)
# to
input_shape = (128, 128)
INPUT_SHAPE = (256, 256, 3)
# to
INPUT_SHAPE = (128, 128, 3) After you modified the file you need to prepare the data again for (128,128,3) shape using |
excuse me ,Maybe you don't understand what I mean.What you did before was to expand on both sides. Now I want to make it around . So i changed the code,but thanks for your time!! |
I don't see any code changes that in those three functions (
I did not understand this part either. Can you elaborate? |
it's my code :
i also change def dcrm_loss
d_input_shape = (int(INPUT_SHAPE[0] * (MASK_PERCENTAGE * 2)), int(INPUT_SHAPE[1] * (MASK_PERCENTAGE * 2)), INPUT_SHAPE[2])
and change def gen_loss
g_input_shape = (int(INPUT_SHAPE[0] * (MASK_PERCENTAGE * 2)), int(INPUT_SHAPE[1] * (MASK_PERCENTAGE * 2)), INPUT_SHAPE[2])
and i train:
Error when checking input: expected input_2 to have shape (256, 128, 3) but got array with shape (128, 128, 3)
......
thanks for your time!
The text was updated successfully, but these errors were encountered: