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

importing TGAN #67

Open
foesine opened this issue Mar 21, 2023 · 2 comments
Open

importing TGAN #67

foesine opened this issue Mar 21, 2023 · 2 comments

Comments

@foesine
Copy link

foesine commented Mar 21, 2023

Hey,

I've installed TGAN via pip and get the message "Successfully installed tgan-0.0.0",
but trying from tgan.data import load_demo_data gives me an ModuleNotFoundError: No module named 'tgan'.
Maybe this is a version issue? I am on Google Colab, using Python 3.9.16.

Thank you!

@ivanguerron21
Copy link

Happened to me as well, I copied the original code and tried to use it but had a lot of problems. I am now stuck with this error ValueError: Tried to convert 't' to a tensor and failed. Error: Shapes must be equal rank, but are 2 and 1
From merging shape 5 with other shapes. for '{{node GAN_loss/discrim/L2Loss/packed}} = Pack[N=7, T=DT_FLOAT, axis=0](GAN_loss/discrim/L2Loss/packed/ReadVariableOp, GAN_loss/discrim/L2Loss/packed/ReadVariableOp_1, GAN_loss/discrim/L2Loss/packed/ReadVariableOp_2, GAN_loss/discrim/L2Loss/packed/ReadVariableOp_3, GAN_loss/discrim/L2Loss/packed/ReadVariableOp_4, GAN_loss/discrim/L2Loss/packed/ReadVariableOp_5, GAN_loss/discrim/L2Loss/packed/ReadVariableOp_6)' with input shapes: [26,100], [100], [100,100], [100], [110], [110,1], [1].
Let me know if you come up with something for this

@AryanSaeedi
Copy link

@ ivanguerron21 I had the same problem at some point. try working with a virtual environment as suggested and use the python 3.7 or any other version suggested here https://github.com/sdv-dev/TGAN. Also make sure to install tensorflow version 1.15.0. it worked for me

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