Spaces:
Paused
Paused
Update skyreelsinfer/skyreels_video_infer.py
Browse files
skyreelsinfer/skyreels_video_infer.py
CHANGED
|
@@ -103,8 +103,8 @@ class SkyReelsVideoSingleGpuInfer:
|
|
| 103 |
def warm_up(self):
|
| 104 |
init_kwargs = {
|
| 105 |
"prompt": "A woman is dancing in a room",
|
| 106 |
-
"height":
|
| 107 |
-
"width":
|
| 108 |
"guidance_scale": 6,
|
| 109 |
"num_inference_steps": 1,
|
| 110 |
"negative_prompt": "Aerial view, aerial view, overexposed, low quality, deformation, a poor composition, bad hands, bad teeth, bad eyes, bad limbs, distortion",
|
|
@@ -113,7 +113,7 @@ class SkyReelsVideoSingleGpuInfer:
|
|
| 113 |
"embedded_guidance_scale": 1.0,
|
| 114 |
}
|
| 115 |
if self.task_type == TaskType.I2V:
|
| 116 |
-
init_kwargs["image"] = Image.new("RGB", (
|
| 117 |
self.pipe(**init_kwargs)
|
| 118 |
|
| 119 |
def inference(self, kwargs: Dict[str, Any]):
|
|
|
|
| 103 |
def warm_up(self):
|
| 104 |
init_kwargs = {
|
| 105 |
"prompt": "A woman is dancing in a room",
|
| 106 |
+
"height": 512,
|
| 107 |
+
"width": 512,
|
| 108 |
"guidance_scale": 6,
|
| 109 |
"num_inference_steps": 1,
|
| 110 |
"negative_prompt": "Aerial view, aerial view, overexposed, low quality, deformation, a poor composition, bad hands, bad teeth, bad eyes, bad limbs, distortion",
|
|
|
|
| 113 |
"embedded_guidance_scale": 1.0,
|
| 114 |
}
|
| 115 |
if self.task_type == TaskType.I2V:
|
| 116 |
+
init_kwargs["image"] = Image.new("RGB", (512, 512), color="black")
|
| 117 |
self.pipe(**init_kwargs)
|
| 118 |
|
| 119 |
def inference(self, kwargs: Dict[str, Any]):
|