add lycoris folder

This commit is contained in:
Vladimir Mandic
2023-04-15 12:25:59 -04:00
parent fd51bb90d0
commit e14cba0771
4 changed files with 9 additions and 5 deletions
+4 -4
View File
@@ -86,12 +86,12 @@ dtype_unet = torch.float16
unet_needs_upcast = False
def cond_cast_unet(input):
return input.to(dtype_unet) if unet_needs_upcast else input
def cond_cast_unet(tensor):
return tensor.to(dtype_unet) if unet_needs_upcast else tensor
def cond_cast_float(input):
return input.float() if unet_needs_upcast else input
def cond_cast_float(tensor):
return tensor.float() if unet_needs_upcast else tensor
def randn(seed, shape):