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

Unable to generate single images after training with the notebook #44

Open
chasetyoung opened this issue Jan 23, 2023 · 2 comments
Open

Comments

@chasetyoung
Copy link

Unable to generate single images after training with the notebook.

After training a model, the notebook is unable to generate image results. When the following command is run, the following error occurs-
!python generate.py --outdir=/content/out/images/ --trunc=0.8 --seeds=0 --network=/content/drive/MyDrive/ladiescrop-network-snapshot-012885.pkl

generate.py:59: SyntaxWarning: "is not" with a literal. Did you mean "!="?
elif(len(seeds) is not 3):
Traceback (most recent call last):
File "generate.py", line 25, in
from opensimplex import OpenSimplex
File "/usr/local/lib/python3.8/dist-packages/opensimplex/init.py", line 4, in
from .api import *
File "/usr/local/lib/python3.8/dist-packages/opensimplex/api.py", line 2, in
from .internals import _init, _noise2, _noise3, _noise4, _noise2a, _noise3a, _noise4a
File "/usr/local/lib/python3.8/dist-packages/opensimplex/internals.py", line 9, in
from numba import njit, prange
File "/usr/local/lib/python3.8/dist-packages/numba/init.py", line 42, in
from numba.np.ufunc import (vectorize, guvectorize, threading_layer,
File "/usr/local/lib/python3.8/dist-packages/numba/np/ufunc/init.py", line 3, in
from numba.np.ufunc.decorators import Vectorize, GUVectorize, vectorize, guvectorize
File "/usr/local/lib/python3.8/dist-packages/numba/np/ufunc/decorators.py", line 3, in
from numba.np.ufunc import _internal
SystemError: initialization of _internal failed without raising an exception

@daanrongen
Copy link

I'm having the same problem. It seems like an issue with the opensimplex import

@daanrongen
Copy link

So the issue is within the interpolation logic to generate video outputs (interpolating from seed to seed). opensimplex is used in the OSN() class that is used to predict noise in a noiseloop. If you comment all these out (along with the if else logic from generate_images(), it works. But you'll only be able to use interpolation=linear in generate.py.

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

2 participants