Code Monkey home page Code Monkey logo

tac-gan's People

Contributors

dashayushman avatar jcbgamboa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

tac-gan's Issues

Generating Images for the text in the dataset

When I follow your code to generating images for the text in the dataset, the train.py does not have parameter of outputs_dir so that it always reports error. What should I do to finish this task? Thanks for your reading.

generating images error

Traceback (most recent call last):
File "encode_text.py", line 32, in
main()
File "encode_text.py", line 16, in main
model = skipthoughts.load_model()
File "/home/anu/Downloads/TAC-GAN-master/skipthoughts.py", line 60, in load_model
utable, btable = load_tables()
File "/home/anu/Downloads/TAC-GAN-master/skipthoughts.py", line 80, in load_tables
utable = numpy.load(path_to_tables + 'utable.npy', encoding='bytes')
File "/home/anu/.local/lib/python3.6/site-packages/numpy/lib/npyio.py", line 453, in load
pickle_kwargs=pickle_kwargs)
File "/home/anu/.local/lib/python3.6/site-packages/numpy/lib/format.py", line 739, in read_array
raise ValueError("Object arrays cannot be loaded when "
ValueError: Object arrays cannot be loaded when allow_pickle=False
can any one please solve this problem

scikit-image is not working with this utils

from numpy.testing.nosetester import import_nose
ImportError: No module named 'numpy.testing.nosetester'
i am getting this error while running the train.py file.

can you help me for that

MSSSIM error

When I run the msssim.py code, it successfully returned the results. But the results only showed class102's msssim score and it was nan. I don't know where is the error.
Thank you!

Can't generate images from any text

After training, I want to generate images from any text, like step3, but when I come to step3.3 , it shows error message like this

W tensorflow/core/framework/op_kernel.cc:1158] Invalid argument: Assign requires shapes of both tensors to match. lhs shape= [1,1,896,256] rhs shape= [1,1,484,256]
[[Node: save/Assign_23 = Assign[T=DT_FLOAT, _class=["loc:@d_h3_conv_new/w"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/gpu:0"](d_h3_conv_new/w, save/RestoreV2_23/_17)]]
2017-07-24 12:55:41.052263: W tensorflow/core/framework/op_kernel.cc:1158] Invalid argument: Assign requires shapes of both tensors to match. lhs shape= [1,1,896,256] rhs shape= [1,1,484,256]
[[Node: save/Assign_23 = Assign[T=DT_FLOAT, _class=["loc:@d_h3_conv_new/w"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/gpu:0"](d_h3_conv_new/w, save/RestoreV2_23/_17)]]
2017-07-24 12:55:41.053201: W tensorflow/core/framework/op_kernel.cc:1158] Invalid argument: Assign requires shapes of both tensors to match. lhs shape= [1,1,896,256] rhs shape= [1,1,484,256]
[[Node: save/Assign_23 = Assign[T=DT_FLOAT, _class=["loc:@d_h3_conv_new/w"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/gpu:0"](d_h3_conv_new/w, save/RestoreV2_23/_17)]]
2017-07-24 12:55:41.055732: W tensorflow/core/framework/op_kernel.cc:1158] Invalid argument: Assign requires shapes of both tensors to match. lhs shape= [1,1,896,256] rhs shape= [1,1,484,256]
[[Node: save/Assign_23 = Assign[T=DT_FLOAT, _class=["loc:@d_h3_conv_new/w"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/gpu:0"](d_h3_conv_new/w, save/RestoreV2_23/_17)]]
2017-07-24 12:55:41.056062: W tensorflow/core/framework/op_kernel.cc:1158] Invalid argument: Assign requires shapes of both tensors to match. lhs shape= [1,1,896,256] rhs shape= [1,1,484,256]
.....

It seems there are shape mismatch? Thank you!

How to use the attention function?

Hi, Thanks for the well documented and organised code!
I have a few doubts. Firstly, on training the GAN on my own dataset, the output doesn't abide by the text. Also, there is heavy mode collapse.
Could you suggest how to treat it?
Also, could you please guide with an example on how to use the attention function provided?
Thanks!

Images generated from text were less than ideal

I have followed the README file closely, using the same hyperparameters and the provided text descriptions in text.txt, however the results turn out to be as follow:

a flower with red petals which are pointed
image

many pointed petals
image

A yellow flower
image

May i ask what went wrong?

how to train on gpu

when I run train.py file it is running on CPU directly.
can you show the command how to run train.py on GPU?

Evaluation with FID

I hope to know whether you evaluated the generated images with FID . I try it and it shows 91.16 . It is too high compared with stackGAN++ model . Is it my codes' fault ? Or it is normal ?
Thanks for your reading.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.