Spaces:
Runtime error
Runtime error
Update app.py
Browse files59 unmodified lines6061626364656667686970718 unmodified lines8081828384858659 unmodified lineselif orbit_type == "Up":weight_name = "orbit_up_lora_weights.safetensors"#adapter_name = "orbit_up_lora_weights"lora_rank = 256adapter_timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")# Load LoRA weights on CPU, move to GPU afterwardpipe.load_lora_weights(lora_path, weight_name=weight_name, adapter_name=adapter_timestamp)pipe.fuse_lora(lora_scale=1 / lora_rank)# Move the pipeline to GPU for inference8 unmodified linesvideo = pipe(image,prompt,num_inference_steps=50,guidance_scale=7.0,use_dynamic_cfg=True,generator=torch.Generator(device="cpu").manual_seed(seed)59 unmodified lines6061626364656667686970718 unmodified lines8081828384858659 unmodified lineselif orbit_type == "Up":weight_name = "orbit_up_lora_weights.safetensors"#adapter_name = "orbit_up_lora_weights"lora_rank = 128adapter_timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")# Load LoRA weights on CPU, move to GPU afterwardpipe.load_lora_weights(lora_path, weight_name=weight_name, adapter_name=f"adapter_{adapter_timestamp}")pipe.fuse_lora(lora_scale=1 / lora_rank)# Move the pipeline to GPU for inference8 unmodified linesvideo = pipe(image,prompt,num_inference_steps=25,guidance_scale=7.0,use_dynamic_cfg=True,generator=torch.Generator(device="cpu").manual_seed(seed)
app.py+3-3