osanseviero HF staff commited on
Commit
168baa1
1 Parent(s): 6e4fb57

Fix video?

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -72,7 +72,7 @@ model = ViTModel.from_pretrained("facebook/dino-vits8", add_pooling_layer=False)
72
  title = "Interactive demo: DINO"
73
  description = "Demo for Facebook AI's DINO, a new method for self-supervised training of Vision Transformers. Using this method, they are capable of segmenting objects within an image without having ever been trained to do so. This can be observed by displaying the self-attention of the heads from the last layer for the [CLS] token query. This demo uses a ViT-S/8 trained with DINO. To use it, simply upload an image or use the example image below. Results will show up in a few seconds."
74
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2104.14294'>Emerging Properties in Self-Supervised Vision Transformers</a> | <a href='https://github.com/facebookresearch/dino'>Github Repo</a></p>"
75
- examples =[['video.mp4']]
76
  iface = gr.Interface(fn=visualize_attention,
77
  inputs=gr.inputs.Video(gr.inputs.Video()),
78
  outputs=[gr.outputs.Video(label=f'result_video')],
 
72
  title = "Interactive demo: DINO"
73
  description = "Demo for Facebook AI's DINO, a new method for self-supervised training of Vision Transformers. Using this method, they are capable of segmenting objects within an image without having ever been trained to do so. This can be observed by displaying the self-attention of the heads from the last layer for the [CLS] token query. This demo uses a ViT-S/8 trained with DINO. To use it, simply upload an image or use the example image below. Results will show up in a few seconds."
74
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2104.14294'>Emerging Properties in Self-Supervised Vision Transformers</a> | <a href='https://github.com/facebookresearch/dino'>Github Repo</a></p>"
75
+ examples =['video.mp4']
76
  iface = gr.Interface(fn=visualize_attention,
77
  inputs=gr.inputs.Video(gr.inputs.Video()),
78
  outputs=[gr.outputs.Video(label=f'result_video')],