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

What is your operating environment and the version of the software? #7

Open
Outhbreaker opened this issue Dec 10, 2018 · 9 comments
Open

Comments

@Outhbreaker
Copy link

Outhbreaker commented Dec 10, 2018

I want to reproduce your experiment. But there have been some problems in the debugging process. There are even code errors. I think this will definitely not be your problem. So I want to ask the specific environment running version (Ps. My environment is configured according to Readme)
Such as: tensor_gt[batch,0,:,:] = tensor_all.data[batch,self.out_id[batch],:,:]
IndexError: list index out of range

@azadis
Copy link
Owner

azadis commented Dec 10, 2018

I think the issue is due to a wrong batch size specified here https://github.com/azadis/MC-GAN/blob/master/scripts/train_StackGAN.sh#L37
This batch size should be equal to the number of letters of your input $DATA. For instance, for a given word FROZEN with its own font style, BATCHSIZE should be set to 6.

@Outhbreaker
Copy link
Author

I am so happy that I could receive your reply so soon.

Then I want to talk about my current understanding. It may be that I have a problem with the understanding of the project or what misunderstanding the configuration of the environment, which leads to various states.

Before I used the old version of the pytorch,the problem I will put the picture in the attachment.And also I send the new problem to you.

This is my current environment configuration (Ubuntu 16.04 + torch 1.0 + torchvision 0.21 others using pip install)

After modifying the environment version, I probably changed 3 bugs to make train_cGAN.sh run successfully,so I think it should be caused by some deviations from my version. I want to know the specific environment configuration on your side.

Today, I follow your introduction to open train_StackGAN.sh and modify the batchsize=5. And I execute the statement "./scripts/train_StackGAN.sh BLOOD", but the problem is still here.

After that,I also want to know README.md: ./scripts/train_StackGAN.sh ${DATA} this ${DATA} should be replaced by the specific folder name such as BLOOD If do that, that means lots of folders need run one by one.
new_error
old_error

In short, I am very grateful to hear from you and I will look forward to your next reply.

@azadis
Copy link
Owner

azadis commented Dec 14, 2018

Sorry for the confusion. For BLOOD, I think you should set your batch size to 4. This will be the number of unique given letters.
I don't think there is an issue with your environment and torch or torchvision versions.

The answer to your second question is actually yes. You need to train the end-to-end model for transferring the style of each font separately. This will be done through the train_StackGAN.sh file with the name of your data folder. Prior to that, you should train the Glyph Network on all fonts for learning the glyph shapes by running train_cGAN.sh.

@Outhbreaker
Copy link
Author

Outhbreaker commented Dec 16, 2018

Thanks for your answer. I have finished running train_cGAN.sh. And I also take the photo of running test_cGAN.sh. I follow your suggestion to change the batch size, but the problem is still there. Sorry, I don't want to bother you. I really don't know how to solve it. By the way, such as ft2_2, is this folder batch size is the same as the BlOOD? I will look forward to your reply.
test_result
batch_size
before running
running_result

@azadis
Copy link
Owner

azadis commented Dec 23, 2018

I think your issue is with the running path or data path. You are probably either running the code from a wrong path (do you run bash ./scripts/train_StackGAN.sh BLOOD ?) or your in-the-wild fonts are not downloaded to the correct path. Have you run ./datasets/download_font_dataset.sh public_web_fonts ? BLOOD directory should exist under ../datasets/public_web_font.

@Outhbreaker
Copy link
Author

I downloaded the date except the optional Others have already downloaded in my repertory.
I show you the data picture.
dataset
data_a test
Also, I follow what you said (In fact as before I did it the same as what you said )but the result is still as usual.
result_run
result_error

@liukboy
Copy link

liukboy commented Jan 5, 2019

@Outhbreaker I meet the same issue with you,and now how do you settled it?Thank you.

@Outhbreaker
Copy link
Author

@liukboy I don't know how to do it. I still wait the reply from the author. By the way, are you Chinese college students?

@azadis
Copy link
Owner

azadis commented Jan 16, 2019

The datasets directory containing the font files should not be under MC-GAN! Your current font files path is not correct. You should be able to do the following:
cd path_to_MC-GAN
ls ../datasets/public_web_fonts

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