This commit is contained in:
Matt Tancik committed 2023-01-27 10:36:56 -08:00
1 parent ee604800d7
commit c79a9a3be7
1 file changed
+1 -1
+1 -1
View File
@@ -137,7 +137,7 @@ class DreamfusionPipeline(VanillaPipeline):
else: else:
text_embedding = self.base_text_embedding text_embedding = self.base_text_embedding
with torch.autocast(device_type='cuda', dtype=torch.float16): with torch.autocast(device_type="cuda", dtype=torch.float16):
sds_loss, latents, grad = self.sd.sds_loss( sds_loss, latents, grad = self.sd.sds_loss(
text_embedding.to(self.sd_device), text_embedding.to(self.sd_device),
train_output.to(self.sd_device), train_output.to(self.sd_device),