mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Removed last bits of dtype and and device hardwiring from controlnet section
This commit is contained in:
parent
07726af703
commit
48485fe92f
@ -300,15 +300,9 @@ class TextToLatentsInvocation(BaseInvocation):
|
|||||||
control_weights.append(control_info.control_weight)
|
control_weights.append(control_info.control_weight)
|
||||||
|
|
||||||
# handle control models
|
# handle control models
|
||||||
# FIXME: change this to dropdown menu?
|
# FIXME: change this to dropdown menu
|
||||||
# FIXME: generalize so don't have to hardcode torch_dtype and device
|
|
||||||
control_model = ControlNetModel.from_pretrained(control_info.control_model,
|
control_model = ControlNetModel.from_pretrained(control_info.control_model,
|
||||||
#torch_dtype=model.unet.dtype).to(model.device)
|
torch_dtype=model.unet.dtype).to(model.device)
|
||||||
#torch.dtype=model.unet.dtype).to("cuda")
|
|
||||||
# torch.dtype = model.unet.dtype).to("cuda")
|
|
||||||
torch_dtype=torch.float16).to("cuda")
|
|
||||||
# torch_dtype = torch.float16).to(model.device)
|
|
||||||
# model.dtype).to(model.device)
|
|
||||||
control_models.append(control_model)
|
control_models.append(control_model)
|
||||||
|
|
||||||
# handle control images
|
# handle control images
|
||||||
|
Loading…
Reference in New Issue
Block a user