Spaces:
Running
Running
fixed convertion issues
Browse files- app.py +1 -1
- converter.py +1 -1
- live_demo.py +0 -3
- requirements.txt +2 -2
app.py
CHANGED
@@ -7,7 +7,7 @@ import numpy as np
|
|
7 |
import torchvision.transforms.functional as tf
|
8 |
from PIL import Image
|
9 |
|
10 |
-
args = OmegaConf.load(os.path.join(f"./config/
|
11 |
|
12 |
log("Model loading")
|
13 |
phnet = Inference(**args)
|
|
|
7 |
import torchvision.transforms.functional as tf
|
8 |
from PIL import Image
|
9 |
|
10 |
+
args = OmegaConf.load(os.path.join(f"./config/demo.yaml"))
|
11 |
|
12 |
log("Model loading")
|
13 |
phnet = Inference(**args)
|
converter.py
CHANGED
@@ -14,7 +14,7 @@ from PIL import Image
|
|
14 |
import cv2 as cv
|
15 |
from onnxruntime import InferenceSession
|
16 |
|
17 |
-
args = OmegaConf.load(os.path.join(f"./config/
|
18 |
|
19 |
log("Model loading")
|
20 |
phnet = Inference(**args)
|
|
|
14 |
import cv2 as cv
|
15 |
from onnxruntime import InferenceSession
|
16 |
|
17 |
+
args = OmegaConf.load(os.path.join(f"./config/demo.yaml"))
|
18 |
|
19 |
log("Model loading")
|
20 |
phnet = Inference(**args)
|
live_demo.py
CHANGED
@@ -45,9 +45,6 @@ async def main(queue):
|
|
45 |
# live_matting_step(inp, back, stylematte))
|
46 |
# res = await live_matting_step(inp, back, stylematte)
|
47 |
log(f"{i} await")
|
48 |
-
# Display the resulting frame
|
49 |
-
|
50 |
-
# blurred_frame = cv.blur(frame, (10, 10))
|
51 |
end = time.time()
|
52 |
log(f"frames: {frame_count}, time: {end - begin}, fps: {frame_count/(end - begin) }")
|
53 |
|
|
|
45 |
# live_matting_step(inp, back, stylematte))
|
46 |
# res = await live_matting_step(inp, back, stylematte)
|
47 |
log(f"{i} await")
|
|
|
|
|
|
|
48 |
end = time.time()
|
49 |
log(f"frames: {frame_count}, time: {end - begin}, fps: {frame_count/(end - begin) }")
|
50 |
|
requirements.txt
CHANGED
@@ -36,5 +36,5 @@ torchvision==0.12.0
|
|
36 |
tornado==6.2
|
37 |
tqdm==4.64.1
|
38 |
transformers==4.28.1
|
39 |
-
onnx==1.14.1
|
40 |
-
onnxruntime==1.16.0
|
|
|
36 |
tornado==6.2
|
37 |
tqdm==4.64.1
|
38 |
transformers==4.28.1
|
39 |
+
# onnx==1.14.1
|
40 |
+
# onnxruntime==1.16.0
|