Spaces:
Runtime error
Runtime error
fix: change anonymizer to FB-cse
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ os.environ["TORCH_HOME"] = "torch_home"
|
|
11 |
from dp2 import utils
|
12 |
from gradio_demos.modules import ExampleDemo, WebcamDemo
|
13 |
|
14 |
-
cfg_face = utils.load_config("configs/anonymizers/
|
15 |
|
16 |
anonymizer_face = instantiate(cfg_face.anonymizer, load_cache=False)
|
17 |
|
@@ -22,6 +22,7 @@ with gradio.Blocks() as demo:
|
|
22 |
gradio.Markdown("# <center> DeepPrivacy2 - Realistic Image Anonymization </center>")
|
23 |
gradio.Markdown("### <center> Håkon Hukkelås, Rudolf Mester, Frank Lindseth </center>")
|
24 |
gradio.Markdown("<center> See more information at: <a href='https://github.com/hukkelas/deep_privacy2'> https://github.com/hukkelas/deep_privacy2 </a> </center>")
|
|
|
25 |
with gradio.Tab("Face Anonymization"):
|
26 |
ExampleDemo(anonymizer_face)
|
27 |
with gradio.Tab("Live Webcam"):
|
|
|
11 |
from dp2 import utils
|
12 |
from gradio_demos.modules import ExampleDemo, WebcamDemo
|
13 |
|
14 |
+
cfg_face = utils.load_config("configs/anonymizers/FB_cse.py")
|
15 |
|
16 |
anonymizer_face = instantiate(cfg_face.anonymizer, load_cache=False)
|
17 |
|
|
|
22 |
gradio.Markdown("# <center> DeepPrivacy2 - Realistic Image Anonymization </center>")
|
23 |
gradio.Markdown("### <center> Håkon Hukkelås, Rudolf Mester, Frank Lindseth </center>")
|
24 |
gradio.Markdown("<center> See more information at: <a href='https://github.com/hukkelas/deep_privacy2'> https://github.com/hukkelas/deep_privacy2 </a> </center>")
|
25 |
+
gradio.Markdown("<center> For a demo of face anonymization, see: <a href='https://huggingface.co/spaces/haakohu/deep_privacy2_face'> https://huggingface.co/spaces/haakohu/deep_privacy2_face </a> </center>")
|
26 |
with gradio.Tab("Face Anonymization"):
|
27 |
ExampleDemo(anonymizer_face)
|
28 |
with gradio.Tab("Live Webcam"):
|