-
Notifications
You must be signed in to change notification settings - Fork 25
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
Not able to load DCGAN pre-trained weights #16
Comments
Hi @harshitaseth,
Alternatively you can adhere to the requirements of the original DCGAN Repo which will definitely work for sure:
|
I installed the same packages you used.but it did't work.My work is to input text to generate infinite logos .I tried to run Dcgan.when I python main.py, it reported errors. `[*] Reading checkpoints... During handling of the above exception, another exception occurred: Traceback (most recent call last): Errors may have originated from an input operation. Original stack trace for 'save/Assign_20': During handling of the above exception, another exception occurred: Traceback (most recent call last): Assign requires shapes of both tensors to match. lhs shape= [8192,1] rhs shape= [18084,1] Errors may have originated from an input operation. Original stack trace for 'save/Assign_20': |
This very much looks like you're still using a wrong Tensorflow version. Are you sure you're actually using 1.3.0 and not e.g. 1.13.0? Even the deprecation warning right at the beginning of your output suggests that the version you're using is newer than the one required as a quick google search suggests that this deprecation was introduced around version 1.13. |
thanks,I'm sure that tf is 1.3.0. I'm confused, too.then I tried to retrain. |
Hmm... For the DCGAN part you can also try to use tf 0.12.1 since that's the version used by the original author of the tensorflow DCGAN code I built upon. I thought it should work with v. 1.3 but maybe I'm mistaken (and before I didn't realize fully that you're working with DCGAN not WGAN). |
ok,maybe I can try wgan. I read the paper that it say the score of wgan is more higher. |
Yes I would definitely recommend to use WGAN. The generated logos look much better, it's more stable and easier to train and also my code base is a bit more sophisticated for the WGAN part since I used it more in the end. |
I want to input the some key words,then generate many related logos.you too now?
| |
肖红忠
|
|
邮箱:18021898013@163.com
|
签名由 网易邮箱大师 定制
On 12/16/2019 19:10, alex-sage wrote:
Yes I would definitely recommend to use WGAN. The generated logos look much better, it's more stable and easier to train and also my code base is a bit more sophisticated for the WGAN part since I used it more in the end.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
You could probably try to condition the generator on those keywords (in the same way I conditioned it on the data clusters). This was also an idea I mentioned in the paper for further work. Wether or not this works of course strongly depends on how good your keywords fit the data. You can have a look at the provided metadata (especially for the hig-res images in lld-logo which are collected from twitter) to help you find some appropriate keywords. |
Hi @alex-sage,
I am trying to generate Logo dataset using the pre-trained weights of DCGAN and WGAN. When I am running the main.py(dcgan), it gives tensor mismatch error
Assign requires shapes of both tensors to match. lhs shape= [5,5,3,64] rhs shape= [5,5,3,456]
[[Node: save/Assign_47 = Assign[T=DT_FLOAT, _class=["loc:@generator/g_h4/w"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/device:CPU:0"](generator/g_h4/w, save/RestoreV2:47)]]
I have also tried to change the few parameters to match the dimension of model parameters and checkpoint parameters, still not working.
Can you please provide me exact configuration on which you have trained your model.
The text was updated successfully, but these errors were encountered: