Spaces:
Running
Running
Update src/gradio_pipeline.py
Browse files- src/gradio_pipeline.py +2 -1
src/gradio_pipeline.py
CHANGED
@@ -6,6 +6,7 @@ Pipeline for gradio
|
|
6 |
import gradio as gr
|
7 |
from .config.argument_config import ArgumentConfig
|
8 |
from .live_portrait_pipeline import LivePortraitPipeline
|
|
|
9 |
from .utils.io import load_img_online
|
10 |
from .utils.rprint import rlog as log
|
11 |
from .utils.crop import prepare_paste_back, paste_back
|
@@ -19,7 +20,7 @@ def update_args(args, user_args):
|
|
19 |
setattr(args, k, v)
|
20 |
return args
|
21 |
|
22 |
-
class GradioPipeline(
|
23 |
|
24 |
def __init__(self, inference_cfg, crop_cfg, args: ArgumentConfig):
|
25 |
super().__init__(inference_cfg, crop_cfg)
|
|
|
6 |
import gradio as gr
|
7 |
from .config.argument_config import ArgumentConfig
|
8 |
from .live_portrait_pipeline import LivePortraitPipeline
|
9 |
+
from .live_portrait_cpu_pipeline import LiveCPUPortraitPipeline
|
10 |
from .utils.io import load_img_online
|
11 |
from .utils.rprint import rlog as log
|
12 |
from .utils.crop import prepare_paste_back, paste_back
|
|
|
20 |
setattr(args, k, v)
|
21 |
return args
|
22 |
|
23 |
+
class GradioPipeline(LiveCPUPortraitPipeline):
|
24 |
|
25 |
def __init__(self, inference_cfg, crop_cfg, args: ArgumentConfig):
|
26 |
super().__init__(inference_cfg, crop_cfg)
|