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

running in jupyter #59

Open
Prateekbosch opened this issue Feb 11, 2021 · 4 comments
Open

running in jupyter #59

Prateekbosch opened this issue Feb 11, 2021 · 4 comments

Comments

@Prateekbosch
Copy link

lightweight_gan --data /lightweight-gan/images --image-size 512
while running in jupyter notebook, it is giving syntax error. please help

@jonas-klesen
Copy link

Jupyter code cells expect python code. Thus you get a syntax error.

You want to enter that command on the terminal. You could also do that from jupyter by doing %run lightweight_gan or just !lightweight_gan

@Prateekbosch
Copy link
Author

thank you but now it is throwing this error
No module named 'lightweight_gan.diff_augment'; 'lightweight_gan' is not a package

@jonas-klesen
Copy link

Sorry, my previous comment was slightly incorrect. %run doesn't work, you have to use ! instead.. For example make a code cell and put !lightweight_gan --data data_folder/. After installing it using "!pip3 install lightweight-gan", of course!

@fabiooshiro
Copy link

Can @Prateekbosch close the issue?

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