Spaces:
Runtime error
Runtime error
envs
Browse files
app.py
CHANGED
|
@@ -237,7 +237,7 @@ def points_to_flows(track_points, model_length, height, width):
|
|
| 237 |
class ImageConductor:
|
| 238 |
def __init__(self, device, unet_path, image_controlnet_path, flow_controlnet_path, height, width, model_length, lora_rank=64):
|
| 239 |
self.device = device
|
| 240 |
-
tokenizer = CLIPTokenizer.from_pretrained("runwayml/stable-diffusion-v1-5", subfolder="tokenizer")
|
| 241 |
text_encoder = CLIPTextModel.from_pretrained("runwayml/stable-diffusion-v1-5", subfolder="text_encoder").to(device)
|
| 242 |
vae = AutoencoderKL.from_pretrained("runwayml/stable-diffusion-v1-5", subfolder="vae").to(device)
|
| 243 |
inference_config = OmegaConf.load("configs/inference/inference.yaml")
|
|
|
|
| 237 |
class ImageConductor:
|
| 238 |
def __init__(self, device, unet_path, image_controlnet_path, flow_controlnet_path, height, width, model_length, lora_rank=64):
|
| 239 |
self.device = device
|
| 240 |
+
tokenizer = CLIPTokenizer.from_pretrained("runwayml/stable-diffusion-v1-5", subfolder="tokenizer").to(device)
|
| 241 |
text_encoder = CLIPTextModel.from_pretrained("runwayml/stable-diffusion-v1-5", subfolder="text_encoder").to(device)
|
| 242 |
vae = AutoencoderKL.from_pretrained("runwayml/stable-diffusion-v1-5", subfolder="vae").to(device)
|
| 243 |
inference_config = OmegaConf.load("configs/inference/inference.yaml")
|