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

inference.py file #12

Closed
Cm744 opened this issue Jan 26, 2022 · 12 comments
Closed

inference.py file #12

Cm744 opened this issue Jan 26, 2022 · 12 comments

Comments

@Cm744
Copy link

Cm744 commented Jan 26, 2022

Hi there,
A brilliant work! Thanks.

I would be more grateful if you can provide the inference.py, sometimes also called predict.py, by which I can generate image of any input sentence.

@wtliao
Copy link
Owner

wtliao commented Jan 26, 2022

Hi, the inference function is also in main.py , the gen_sample() function. You can just change cfg.B_VALIDATION=True for generating images for all captions of a data set. Or you can manually set the captions in the gen_sample() function (line 176) to generate the specific images. You also can set to use fixed/different noise to generate images (line238-244).

@priyankaupadhyay090
Copy link

Hi there, A brilliant work! Thanks.

I would be more grateful if you can provide the inference.py, sometimes also called predict.py, by which I can generate image of any input sentence.

hey, did you get any error while running main.py ? I am facing some problem

@Cm744
Copy link
Author

Cm744 commented Jan 28, 2022

Hi there, A brilliant work! Thanks.
I would be more grateful if you can provide the inference.py, sometimes also called predict.py, by which I can generate image of any input sentence.

hey, did you get any error while running main.py ? I am facing some problem

I ran main.py as the inference, with any input text to generate images. There was no error but... the images were very bad....not as accurate as I expected.

@priyankaupadhyay090
Copy link

Hi there, A brilliant work! Thanks.
I would be more grateful if you can provide the inference.py, sometimes also called predict.py, by which I can generate image of any input sentence.

hey, did you get any error while running main.py ? I am facing some problem

I ran main.py as the inference, with any input text to generate images. There was no error but... the images were very bad....not as accurate as I expected.

I am getting few errors while running the main.py
could you please help me to figure it out ? We can connect thorough email if you would like

@Cm744
Copy link
Author

Cm744 commented Jan 28, 2022

Hi there, A brilliant work! Thanks.
I would be more grateful if you can provide the inference.py, sometimes also called predict.py, by which I can generate image of any input sentence.

hey, did you get any error while running main.py ? I am facing some problem

I ran main.py as the inference, with any input text to generate images. There was no error but... the images were very bad....not as accurate as I expected.

I am getting few errors while running the main.py could you please help me to figure it out ? We can connect thorough email if you would like

Yes, but I just ran main.py for inference/predict, I didn't run it for training

@priyankaupadhyay090
Copy link

Hi there, A brilliant work! Thanks.
I would be more grateful if you can provide the inference.py, sometimes also called predict.py, by which I can generate image of any input sentence.

hey, did you get any error while running main.py ? I am facing some problem

I ran main.py as the inference, with any input text to generate images. There was no error but... the images were very bad....not as accurate as I expected.

I am getting few errors while running the main.py could you please help me to figure it out ? We can connect thorough email if you would like

Yes, but I just ran main.py for inference/predict, I didn't run it for training

okay, can you help me with the inference then :) how did you do it speifically ?

@wtliao
Copy link
Owner

wtliao commented Jan 28, 2022

Hi there, A brilliant work! Thanks.
I would be more grateful if you can provide the inference.py, sometimes also called predict.py, by which I can generate image of any input sentence.

hey, did you get any error while running main.py ? I am facing some problem

I ran main.py as the inference, with any input text to generate images. There was no error but... the images were very bad....not as accurate as I expected.

Hi, thanks for playing around with my work. Could you let me know what captions have you input for the bad results? Notes that, if the input caption refers to multiple objects, such as in the coco dataset, the output would not be good, which is an open challenge in this fied.

@Cm744
Copy link
Author

Cm744 commented Jan 29, 2022

Hi there, A brilliant work! Thanks.
I would be more grateful if you can provide the inference.py, sometimes also called predict.py, by which I can generate image of any input sentence.

hey, did you get any error while running main.py ? I am facing some problem

I ran main.py as the inference, with any input text to generate images. There was no error but... the images were very bad....not as accurate as I expected.

Hi, thanks for playing around with my work. Could you let me know what captions have you input for the bad results? Notes that, if the input caption refers to multiple objects, such as in the coco dataset, the output would not be good, which is an open challenge in this fied.

I input "a woman is using a laptop", "a car and a dog in the snow field ",etc

@Cm744
Copy link
Author

Cm744 commented Jan 29, 2022

Hi there, A brilliant work! Thanks.
I would be more grateful if you can provide the inference.py, sometimes also called predict.py, by which I can generate image of any input sentence.

hey, did you get any error while running main.py ? I am facing some problem

I ran main.py as the inference, with any input text to generate images. There was no error but... the images were very bad....not as accurate as I expected.

I am getting few errors while running the main.py could you please help me to figure it out ? We can connect thorough email if you would like

Yes, but I just ran main.py for inference/predict, I didn't run it for training

okay, can you help me with the inference then :) how did you do it speifically ?

I have sent you an email, including detailed and specific guidance of doing inference. I will be more grateful if you can share the train/test split of Flickr8K data for S2IGAN repo. I am trying to run codes on Flickr8K dataset. If applicable, could you please share me the specific and detailed steps to generate train/test split of a custom dataset? The more specific the better, just like the inference steps I teach you.

Btw, have you run Speech-to-image S2IGAN on Flickr8K? Have you already had the trained model weights? If so, could you please share them with me ? So that I can do inference directly without training.

Thanks!

@wtliao
Copy link
Owner

wtliao commented Jan 29, 2022

Hi there, A brilliant work! Thanks.
I would be more grateful if you can provide the inference.py, sometimes also called predict.py, by which I can generate image of any input sentence.

hey, did you get any error while running main.py ? I am facing some problem

I ran main.py as the inference, with any input text to generate images. There was no error but... the images were very bad....not as accurate as I expected.

Hi, thanks for playing around with my work. Could you let me know what captions have you input for the bad results? Notes that, if the input caption refers to multiple objects, such as in the coco dataset, the output would not be good, which is an open challenge in this fied.

I input "a woman is using a laptop", "a car and a dog in the snow field ",etc

Yes, the existing methods are still suffering from synthesizing complex scenes which have multiple objects. In the paper, I have also discussed that. To my best knowledge, the existing methods have made great progress in synthesizing single objects. That is why the CUB dataset is so popular in this field.

@priyankaupadhyay090
Copy link

Hi there, A brilliant work! Thanks.
I would be more grateful if you can provide the inference.py, sometimes also called predict.py, by which I can generate image of any input sentence.

hey, did you get any error while running main.py ? I am facing some problem

I ran main.py as the inference, with any input text to generate images. There was no error but... the images were very bad....not as accurate as I expected.

I am getting few errors while running the main.py could you please help me to figure it out ? We can connect thorough email if you would like

Yes, but I just ran main.py for inference/predict, I didn't run it for training

okay, can you help me with the inference then :) how did you do it speifically ?

I have sent you an email, including detailed and specific guidance of doing inference. I will be more grateful if you can share the train/test split of Flickr8K data for S2IGAN repo. I am trying to run codes on Flickr8K dataset. If applicable, could you please share me the specific and detailed steps to generate train/test split of a custom dataset? The more specific the better, just like the inference steps I teach you.

Btw, have you run Speech-to-image S2IGAN on Flickr8K? Have you already had the trained model weights? If so, could you please share them with me ? So that I can do inference directly without training.

Thanks!

I have shared you the very detailed code exlaining everyting to generate train/test split for a custom dataset and to generate pickle files for images and for class_info.

@wtliao wtliao closed this as completed Mar 28, 2022
@freAK14
Copy link

freAK14 commented Apr 6, 2022

Hi there, A brilliant work! Thanks.
I would be more grateful if you can provide the inference.py, sometimes also called predict.py, by which I can generate image of any input sentence.

hey, did you get any error while running main.py ? I am facing some problem

I ran main.py as the inference, with any input text to generate images. There was no error but... the images were very bad....not as accurate as I expected.

I am getting few errors while running the main.py could you please help me to figure it out ? We can connect thorough email if you would like

Yes, but I just ran main.py for inference/predict, I didn't run it for training

okay, can you help me with the inference then :) how did you do it speifically ?

I have sent you an email, including detailed and specific guidance of doing inference. I will be more grateful if you can share the train/test split of Flickr8K data for S2IGAN repo. I am trying to run codes on Flickr8K dataset. If applicable, could you please share me the specific and detailed steps to generate train/test split of a custom dataset? The more specific the better, just like the inference steps I teach you.

Btw, have you run Speech-to-image S2IGAN on Flickr8K? Have you already had the trained model weights? If so, could you please share them with me ? So that I can do inference directly without training.

Thanks!

Hey can you mail me the same thing at akashsocial14@gmail.com. I am learning this thing for my college project, facing issue in inference part.

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

4 participants