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

The same result for all the attributes. #7

Closed
acecreamu opened this issue Aug 12, 2018 · 8 comments
Closed

The same result for all the attributes. #7

acecreamu opened this issue Aug 12, 2018 · 8 comments

Comments

@acecreamu
Copy link

As written in the title, I obtain a row of the same images without any changes regardless to the attribute (column). I use custom data-set organized as CelebA. Could you give an advise, what may cause it?

@LynnHo
Copy link
Owner

LynnHo commented Aug 12, 2018

@acecreamu I need more information, which model and command did you use?

@acecreamu
Copy link
Author

@LynnHo I do all the steps from instruction for CelebA 128x128. Structure of a dataset and an attribute txt file is the same as for CelebA.
I run code using:

CUDA_VISIBLE_DEVICES=0 \
python train.py \
--img_size 128 \
--shortcut_layers 1 \
--inject_layers 1 \
--experiment_name 128_shortcut1_inject1_none

My dataset is very small, 2222 images of faces, 3 attribute for each.

@LynnHo
Copy link
Owner

LynnHo commented Aug 12, 2018

@acecreamu This code is not suitable for other datasets. However, you can try to modify "data.py" to fit your dataset. Besides, you should also change the default attributes in "train.py".

@acecreamu
Copy link
Author

@LynnHo Thank you, I understand it. I did exactly these steps. Eventually it works, but my question is about the output - why change of attribute doesn't influence an output image?

@LynnHo
Copy link
Owner

LynnHo commented Aug 12, 2018

@acecreamu It may be caused by many reasons. Can you post your loss curves to check whether the losses are abnormal. You can also post the results during training. Besides, what are the attributes of your dataset.

@vcodreanu
Copy link

@acecreamu I am having a similar issue where for every attribute modified I am getting the same output image. Could you indicate what you did to go around this issue? I am also using a different dataset, with 14 attributes in total.

@acecreamu
Copy link
Author

@LynnHo Sorry, I don't know how to visualize losses. But there is what I noticed:
(I use CelebA dataset with additional custom attribute) It introduce differences during first 2-3 epochs, but then goes to the same results for all the attributes. For example:
Epoch 2:
image
Epoch 20:
image

@LynnHo
Copy link
Owner

LynnHo commented Sep 2, 2018

@acecreamu I am sorry I can't tell you the true reason for this situation, it may be caused by many reasons. Here is the example for visualizing the losses, you may have a knowledge of tensorboard usage.

CUDA_VISIBLE_DEVICES='' \
tensorboard \
--logdir ./output/128_shortcut1_inject1_none/summaries \
--port 6006

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