text-to-image icon indicating copy to clipboard operation
text-to-image copied to clipboard

How to load the model

Open ZihengZheng opened this issue 7 years ago • 11 comments

Hello, I was successful to train the model but I can not load that, could you please help me thank you so much! screen shot 2018-07-16 at 18 12 38 screen shot 2018-07-16 at 18 12 43

ZihengZheng avatar Jul 16 '18 17:07 ZihengZheng

it seems the npz is not match with your network architecture.

zsdonghao avatar Jul 16 '18 20:07 zsdonghao

But i just use the network from github

Get Outlook for iOShttps://aka.ms/o0ukef


From: Hao [email protected] Sent: Monday, July 16, 2018 9:40 PM To: zsdonghao/text-to-image Cc: (pg) Ziheng Zheng; Author Subject: Re: [zsdonghao/text-to-image] How to load the model (#20)

it seems the npz is not match with your network architecture.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/zsdonghao/text-to-image/issues/20#issuecomment-405374809, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AZgDC2DFAGnH6EHg89e-WFKr07sshFq4ks5uHPpCgaJpZM4VRfll.

ZihengZheng avatar Jul 16 '18 20:07 ZihengZheng

I didn't provide pre-trained model for this repo

zsdonghao avatar Jul 16 '18 20:07 zsdonghao

Yes i trained the model with your code

Get Outlook for iOShttps://aka.ms/o0ukef


From: Hao [email protected] Sent: Monday, July 16, 2018 9:44 PM To: zsdonghao/text-to-image Cc: (pg) Ziheng Zheng; Author Subject: Re: [zsdonghao/text-to-image] How to load the model (#20)

I didn't provide pre-trained model for this repo

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/zsdonghao/text-to-image/issues/20#issuecomment-405375737, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AZgDC80c8cma5NVm2n_0eXbDb2MODI0rks5uHPsCgaJpZM4VRfll.

ZihengZheng avatar Jul 16 '18 20:07 ZihengZheng

if you use my code to train the model, and use the same code to load npz, but it fails, I don't have any idea about it ...

maybe you can try update tensorlayer.

zsdonghao avatar Jul 16 '18 21:07 zsdonghao

But when I trained the network, the rnn_loss became to 0. Is that reasonable?


From: Hao [email protected] Sent: 16 July 2018 22:12:17 To: zsdonghao/text-to-image Cc: (pg) Ziheng Zheng; Author Subject: Re: [zsdonghao/text-to-image] How to load the model (#20)

if you use my code to train the model, and use the same code to load npz, but it fails, I don't have any idea about it ...

maybe you can try update tensorlayer.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/zsdonghao/text-to-image/issues/20#issuecomment-405383670, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AZgDC6YgCLspyswLKI4UTmpEX1QST25tks5uHQGxgaJpZM4VRfll.

ZihengZheng avatar Jul 16 '18 21:07 ZihengZheng

@ZihengZheng https://github.com/zsdonghao/text-to-image/blob/275880d95b3d0366cbaefe24019c1decddc9d48c/train_txt2im.py#L207 the rnn_loss is set to be 0 after epoch 50

jamiechoi1995 avatar Jul 27 '18 03:07 jamiechoi1995

Yes, I found it but why it need to be set to 0?

Get Outlook for iOShttps://aka.ms/o0ukef


From: Jamie [email protected] Sent: Friday, July 27, 2018 5:22 AM To: zsdonghao/text-to-image Cc: (pg) Ziheng Zheng; Mention Subject: Re: [zsdonghao/text-to-image] How to load the model (#20)

@ZihengZhenghttps://github.com/ZihengZheng https://github.com/zsdonghao/text-to-image/blob/275880d95b3d0366cbaefe24019c1decddc9d48c/train_txt2im.py#L207 the rnn_loss is set to be 0 after epoch 50

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/zsdonghao/text-to-image/issues/20#issuecomment-408299967, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AZgDCy2x0ZkeaXchlNVgJZhJpQ7p8dxLks5uKodKgaJpZM4VRfll.

ZihengZheng avatar Jul 27 '18 07:07 ZihengZheng

I use the same code, but can not reproduce the results, the flowers generated are disorderly, why is this? @zsdonghao Thank you!

Fuhongshuai avatar Jan 21 '19 05:01 Fuhongshuai

@Fuhongshuai did you find any solution about this? Because i have the same problem. Thank you!

anastasiagkou avatar Feb 23 '19 22:02 anastasiagkou

@Fuhongshuai @anastasiagkou did you find any solution to overcome this problem.

Siddanth-pai avatar Feb 26 '20 09:02 Siddanth-pai