mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
i
This commit is contained in:
@@ -272,7 +272,7 @@ class SiLU(nn.Module):
|
||||
|
||||
class GroupNorm32(nn.GroupNorm):
|
||||
def forward(self, x):
|
||||
return super().forward(x.float()).type(x.dtype)
|
||||
return super().forward(x)
|
||||
|
||||
|
||||
def conv_nd(dims, *args, **kwargs):
|
||||
|
||||
@@ -166,7 +166,7 @@ class GeneralConditioner(nn.Module):
|
||||
emb = torch.zeros_like(emb)
|
||||
if out_key in output:
|
||||
output[out_key] = torch.cat(
|
||||
(output[out_key], emb), self.KEY2CATDIM[out_key]
|
||||
(output[out_key].cuda(), emb.cuda()), self.KEY2CATDIM[out_key]
|
||||
)
|
||||
else:
|
||||
output[out_key] = emb
|
||||
|
||||
Reference in New Issue
Block a user