Skip to content

Instantly share code, notes, and snippets.

@shirayu
Last active September 13, 2022 16:04
Show Gist options
  • Save shirayu/43649cc2a3b32c875c40027c02b0c946 to your computer and use it in GitHub Desktop.
Save shirayu/43649cc2a3b32c875c40027c02b0c946 to your computer and use it in GitHub Desktop.
error: `NIN` should be `INN`, `MIN`, `BIN`, `NINE`
--> ./scripts/convert_ncsnpp_original_checkpoint_to_diffusers.py:49:76
|
49 | new_layer.query.weight.data = old_checkpoint[f"all_modules.{index}.NIN_0.W"].data.T
| ^^^
|
error: `NIN` should be `INN`, `MIN`, `BIN`, `NINE`
--> ./scripts/convert_ncsnpp_original_checkpoint_to_diffusers.py:50:74
|
50 | new_layer.key.weight.data = old_checkpoint[f"all_modules.{index}.NIN_1.W"].data.T
| ^^^
|
error: `NIN` should be `INN`, `MIN`, `BIN`, `NINE`
--> ./scripts/convert_ncsnpp_original_checkpoint_to_diffusers.py:51:76
|
51 | new_layer.value.weight.data = old_checkpoint[f"all_modules.{index}.NIN_2.W"].data.T
| ^^^
|
error: `NIN` should be `INN`, `MIN`, `BIN`, `NINE`
--> ./scripts/convert_ncsnpp_original_checkpoint_to_diffusers.py:53:74
|
53 | new_layer.query.bias.data = old_checkpoint[f"all_modules.{index}.NIN_0.b"].data
| ^^^
|
error: `NIN` should be `INN`, `MIN`, `BIN`, `NINE`
--> ./scripts/convert_ncsnpp_original_checkpoint_to_diffusers.py:54:72
|
54 | new_layer.key.bias.data = old_checkpoint[f"all_modules.{index}.NIN_1.b"].data
| ^^^
|
error: `NIN` should be `INN`, `MIN`, `BIN`, `NINE`
--> ./scripts/convert_ncsnpp_original_checkpoint_to_diffusers.py:55:74
|
55 | new_layer.value.bias.data = old_checkpoint[f"all_modules.{index}.NIN_2.b"].data
| ^^^
|
error: `NIN` should be `INN`, `MIN`, `BIN`, `NINE`
--> ./scripts/convert_ncsnpp_original_checkpoint_to_diffusers.py:57:80
|
57 | new_layer.proj_attn.weight.data = old_checkpoint[f"all_modules.{index}.NIN_3.W"].data.T
| ^^^
|
error: `NIN` should be `INN`, `MIN`, `BIN`, `NINE`
--> ./scripts/convert_ncsnpp_original_checkpoint_to_diffusers.py:58:78
|
58 | new_layer.proj_attn.bias.data = old_checkpoint[f"all_modules.{index}.NIN_3.b"].data
| ^^^
|
error: `nin` should be `inn`, `min`, `bin`, `nine`
--> ./src/diffusers/models/unet_blocks.py:810:21
|
810 | use_nin_shortcut=True,
| ^^^
|
error: `nin` should be `inn`, `min`, `bin`, `nine`
--> ./src/diffusers/models/unet_blocks.py:890:21
|
890 | use_nin_shortcut=True,
| ^^^
|
error: `nin` should be `inn`, `min`, `bin`, `nine`
--> ./src/diffusers/models/resnet.py:268:13
|
268 | use_nin_shortcut=None,
| ^^^
|
error: `nin` should be `inn`, `min`, `bin`, `nine`
--> ./src/diffusers/models/resnet.py:325:18
|
325 | self.use_nin_shortcut = self.in_channels != self.out_channels if use_nin_shortcut is None else use_nin_shortcut
| ^^^
|
error: `nin` should be `inn`, `min`, `bin`, `nine`
--> ./src/diffusers/models/resnet.py:325:78
|
325 | self.use_nin_shortcut = self.in_channels != self.out_channels if use_nin_shortcut is None else use_nin_shortcut
| ^^^
|
error: `nin` should be `inn`, `min`, `bin`, `nine`
--> ./src/diffusers/models/resnet.py:325:108
|
325 | self.use_nin_shortcut = self.in_channels != self.out_channels if use_nin_shortcut is None else use_nin_shortcut
| ^^^
|
error: `nin` should be `inn`, `min`, `bin`, `nine`
--> ./src/diffusers/models/resnet.py:328:21
|
328 | if self.use_nin_shortcut:
| ^^^
|
error: `nin` should be `inn`, `min`, `bin`, `nine`
--> ./src/diffusers/models/unet_blocks.py:1343:21
|
1343 | use_nin_shortcut=True,
| ^^^
|
error: `nin` should be `inn`, `min`, `bin`, `nine`
--> ./src/diffusers/models/unet_blocks.py:1440:21
|
1440 | use_nin_shortcut=True,
| ^^^
|
error: `nin` should be `inn`, `min`, `bin`, `nine`
--> ./scripts/convert_ddpm_original_checkpoint_to_diffusers.py:25:38
|
25 | new_item = new_item.replace("nin_shortcut", "conv_shortcut")
| ^^^
|
error: `NIN` should be `INN`, `MIN`, `BIN`, `NINE`
--> ./scripts/convert_ncsnpp_original_checkpoint_to_diffusers.py:49:76
|
49 | new_layer.query.weight.data = old_checkpoint[f"all_modules.{index}.NIN_0.W"].data.T
| ^^^
|
error: `NIN` should be `INN`, `MIN`, `BIN`, `NINE`
--> ./scripts/convert_ncsnpp_original_checkpoint_to_diffusers.py:50:74
|
50 | new_layer.key.weight.data = old_checkpoint[f"all_modules.{index}.NIN_1.W"].data.T
| ^^^
|
error: `NIN` should be `INN`, `MIN`, `BIN`, `NINE`
--> ./scripts/convert_ncsnpp_original_checkpoint_to_diffusers.py:51:76
|
51 | new_layer.value.weight.data = old_checkpoint[f"all_modules.{index}.NIN_2.W"].data.T
| ^^^
|
error: `NIN` should be `INN`, `MIN`, `BIN`, `NINE`
--> ./scripts/convert_ncsnpp_original_checkpoint_to_diffusers.py:53:74
|
53 | new_layer.query.bias.data = old_checkpoint[f"all_modules.{index}.NIN_0.b"].data
| ^^^
|
error: `NIN` should be `INN`, `MIN`, `BIN`, `NINE`
--> ./scripts/convert_ncsnpp_original_checkpoint_to_diffusers.py:54:72
|
54 | new_layer.key.bias.data = old_checkpoint[f"all_modules.{index}.NIN_1.b"].data
| ^^^
|
error: `NIN` should be `INN`, `MIN`, `BIN`, `NINE`
--> ./scripts/convert_ncsnpp_original_checkpoint_to_diffusers.py:55:74
|
55 | new_layer.value.bias.data = old_checkpoint[f"all_modules.{index}.NIN_2.b"].data
| ^^^
|
error: `NIN` should be `INN`, `MIN`, `BIN`, `NINE`
--> ./scripts/convert_ncsnpp_original_checkpoint_to_diffusers.py:57:80
|
57 | new_layer.proj_attn.weight.data = old_checkpoint[f"all_modules.{index}.NIN_3.W"].data.T
| ^^^
|
error: `NIN` should be `INN`, `MIN`, `BIN`, `NINE`
--> ./scripts/convert_ncsnpp_original_checkpoint_to_diffusers.py:58:78
|
58 | new_layer.proj_attn.bias.data = old_checkpoint[f"all_modules.{index}.NIN_3.b"].data
| ^^^
|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment