Skip to content

Instantly share code, notes, and snippets.

@nor0x
Last active February 5, 2023 16:22
Show Gist options
  • Save nor0x/0c8361b6a8973ba1e85c55583eb0cecb to your computer and use it in GitHub Desktop.
Save nor0x/0c8361b6a8973ba1e85c55583eb0cecb to your computer and use it in GitHub Desktop.
thisboredapedoesnotexist.ipynb
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dienuq
Copy link

dienuq commented Feb 5, 2023

Hey ! Thank you for your effort you did on creating this. The notebook is very clear and made easy to understand what's happening. I'm new to using GANs, i've created my own dataset with images and i want to use this to train the model on my dataset. Unfortunately i keep getting the same error and i don't know what to do. Could you please help me?

What im getting after i try training the model on my dataset:

Traceback (most recent call last):
File "/content/stylegan3/train.py", line 286, in
main() # pylint: disable=no-value-for-parameter
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/content/stylegan3/train.py", line 281, in main
launch_training(c=c, desc=desc, outdir=opts.outdir, dry_run=opts.dry_run)
File "/content/stylegan3/train.py", line 96, in launch_training
subprocess_fn(rank=0, c=c, temp_dir=temp_dir)
File "/content/stylegan3/train.py", line 47, in subprocess_fn
training_loop.training_loop(rank=rank, **c)
File "/content/stylegan3/training/training_loop.py", line 169, in training_loop
misc.print_module_summary(D, [img, c])
File "/content/stylegan3/torch_utils/misc.py", line 216, in print_module_summary
outputs = module(*inputs)
File "/usr/local/lib/python3.8/dist-packages/torch/nn/modules/module.py", line 1212, in _call_impl
result = forward_call(*input, **kwargs)
File "/content/stylegan3/training/networks_stylegan2.py", line 783, in forward
x, img = block(x, img, **block_kwargs)
File "/usr/local/lib/python3.8/dist-packages/torch/nn/modules/module.py", line 1212, in _call_impl
result = forward_call(*input, **kwargs)
File "/content/stylegan3/training/networks_stylegan2.py", line 627, in forward
y = self.skip(x, gain=np.sqrt(0.5))
File "/usr/local/lib/python3.8/dist-packages/torch/nn/modules/module.py", line 1212, in _call_impl
result = forward_call(*input, **kwargs)
File "/content/stylegan3/training/networks_stylegan2.py", line 176, in forward
x = conv2d_resample.conv2d_resample(x=x, w=w.to(x.dtype), f=self.resample_filter, up=self.up, down=self.down, padding=self.padding, flip_weight=flip_weight)
AttributeError: 'NoneType' object has no attribute 'dtype'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment