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

TypeError: unsupported operand type(s) for %: 'NoneType' and 'int' #10

Open
dmwlx opened this issue Oct 8, 2023 · 2 comments
Open

TypeError: unsupported operand type(s) for %: 'NoneType' and 'int' #10

dmwlx opened this issue Oct 8, 2023 · 2 comments

Comments

@dmwlx
Copy link

dmwlx commented Oct 8, 2023

Traceback (most recent call last):
File "F:\pycharm\p1\GESCO_main\image_train.py", line 113, in
main()
File "F:\pycharm\p1\GESCO_main\image_train.py", line 30, in main
model, diffusion = create_model_and_diffusion(
File "F:\pycharm\p1\GESCO_main\guided_diffusion\script_util.py", line 108, in create_model_and_diffusion
model = create_model(
File "F:\pycharm\p1\GESCO_main\guided_diffusion\script_util.py", line 198, in create_model
return UNetModel(
File "F:\pycharm\p1\GESCO_main\guided_diffusion\unet.py", line 709, in init
SDMResBlock(
File "F:\pycharm\p1\GESCO_main\guided_diffusion\unet.py", line 348, in init
self.in_norm = SPADEGroupNorm(channels, c_channels)
File "F:\pycharm\p1\GESCO_main\guided_diffusion\unet.py", line 165, in init
nn.Conv2d(label_nc, nhidden, kernel_size=(3,), padding=1),
File "F:\anoconda\envs\pytorch\lib\site-packages\torch\nn\modules\conv.py", line 450, in init
super().init(
File "F:\anoconda\envs\pytorch\lib\site-packages\torch\nn\modules\conv.py", line 89, in init
if in_channels % groups != 0:

@wangasnas
Copy link

请问解决了吗?

@dmwlx
Copy link
Author

dmwlx commented Apr 2, 2024 via email

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