mirror of
https://huggingface.co/spaces/ECCV2022/dis-background-removal
synced 2024-11-26 09:53:17 +01:00
Fix: Removing annotations
This commit is contained in:
parent
0a1299f14b
commit
dcb9e75579
5
app.py
5
app.py
@ -122,7 +122,7 @@ hypar["model"] = ISNetDIS()
|
|||||||
net = build_model(hypar, device)
|
net = build_model(hypar, device)
|
||||||
|
|
||||||
|
|
||||||
def inference(image: Image):
|
def inference(image):
|
||||||
image_path = image
|
image_path = image
|
||||||
|
|
||||||
image_tensor, orig_size = load_image(image_path, hypar)
|
image_tensor, orig_size = load_image(image_path, hypar)
|
||||||
@ -150,6 +150,5 @@ interface = gr.Interface(
|
|||||||
description=description,
|
description=description,
|
||||||
article=article,
|
article=article,
|
||||||
allow_flagging='never',
|
allow_flagging='never',
|
||||||
theme="default",
|
|
||||||
cache_examples=False,
|
cache_examples=False,
|
||||||
).launch(enable_queue=True, debug=True)
|
).queue(concurrency_count=1, api_open=True).launch(show_api=True, show_error=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user