Update
Browse files
app.py
CHANGED
@@ -31,6 +31,11 @@ sys.path.insert(0, 'CBNetV2/')
|
|
31 |
|
32 |
from mmdet.apis import inference_detector, init_detector
|
33 |
|
|
|
|
|
|
|
|
|
|
|
34 |
|
35 |
def parse_args() -> argparse.Namespace:
|
36 |
parser = argparse.ArgumentParser()
|
@@ -164,10 +169,7 @@ def main():
|
|
164 |
model = Model(args.device)
|
165 |
|
166 |
with gr.Blocks(theme=args.theme, css='style.css') as demo:
|
167 |
-
gr.Markdown(
|
168 |
-
|
169 |
-
This is an unofficial demo for [https://github.com/VDIGPKU/CBNetV2](https://github.com/VDIGPKU/CBNetV2).'''
|
170 |
-
)
|
171 |
|
172 |
with gr.Row():
|
173 |
with gr.Column():
|
@@ -200,9 +202,7 @@ This is an unofficial demo for [https://github.com/VDIGPKU/CBNetV2](https://gith
|
|
200 |
samples=[[path.as_posix()]
|
201 |
for path in paths])
|
202 |
|
203 |
-
gr.Markdown(
|
204 |
-
'<center><img src="https://visitor-badge.glitch.me/badge?page_id=hysts.cbnetv2" alt="visitor badge"/></center>'
|
205 |
-
)
|
206 |
|
207 |
detector_name.change(fn=model.set_model_name,
|
208 |
inputs=[detector_name],
|
|
|
31 |
|
32 |
from mmdet.apis import inference_detector, init_detector
|
33 |
|
34 |
+
DESCRIPTION = '''# CBNetV2
|
35 |
+
|
36 |
+
This is an unofficial demo for [https://github.com/VDIGPKU/CBNetV2](https://github.com/VDIGPKU/CBNetV2).'''
|
37 |
+
FOOTER = '<img id="visitor-badge" alt="visitor badge" src="https://visitor-badge.glitch.me/badge?page_id=hysts.cbnetv2" />'
|
38 |
+
|
39 |
|
40 |
def parse_args() -> argparse.Namespace:
|
41 |
parser = argparse.ArgumentParser()
|
|
|
169 |
model = Model(args.device)
|
170 |
|
171 |
with gr.Blocks(theme=args.theme, css='style.css') as demo:
|
172 |
+
gr.Markdown(DESCRIPTION)
|
|
|
|
|
|
|
173 |
|
174 |
with gr.Row():
|
175 |
with gr.Column():
|
|
|
202 |
samples=[[path.as_posix()]
|
203 |
for path in paths])
|
204 |
|
205 |
+
gr.Markdown(FOOTER)
|
|
|
|
|
206 |
|
207 |
detector_name.change(fn=model.set_model_name,
|
208 |
inputs=[detector_name],
|