Yang Gu commited on
Commit
b24610e
·
1 Parent(s): 80fd73c

Add more videos

Browse files
demos.js CHANGED
@@ -12,7 +12,6 @@ const categoryDemos = [
12
  name: 'Segment Anything',
13
  description: `Segment Anything from https://github.com/guschmue/ort-webgpu/tree/master/segment-anything`,
14
  filename: "ort-sam",
15
- video: "ort-sam.mp4",
16
  },
17
  'ort-sdturbo': {
18
  name: 'Stable Diffusion Turbo',
@@ -46,7 +45,7 @@ const categoryDemos = [
46
  name: 'Transformers.js',
47
  description: 'Transformers.js',
48
  demos: {
49
- benchmark: {
50
  name: 'Benchmark',
51
  description: `Benchmark by Transformers.js`,
52
  filename: "https://huggingface.co/spaces/Xenova/webgpu-embedding-benchmark",
@@ -57,41 +56,58 @@ const categoryDemos = [
57
  description: `Zero-shot Image Classification with OpenAI's CLIP by Transformers.js`,
58
  filename: "https://huggingface.co/spaces/Xenova/webgpu-clip",
59
  openInNewTab: true,
60
- video: 'tjs-clip.mp4',
61
  },
62
- depthAnything: {
63
  name: 'Depth Anything',
64
  description: `Depth Anything by Transformers.js`,
65
  filename: "https://huggingface.co/spaces/Xenova/webgpu-depth-anything",
66
  openInNewTab: true,
67
  },
68
- removeImageBackground: {
 
 
 
 
 
 
 
 
 
 
 
 
69
  name: 'Remove Image Background',
70
  description: `Image Background Removal by Transformers.js`,
71
  filename: "https://huggingface.co/spaces/Xenova/remove-background-webgpu",
72
  openInNewTab: true,
73
  },
74
- removeVideoBackground: {
75
  name: 'Remove Video Background',
76
  description: `Video Background Removal by Transformers.js`,
77
  filename: "https://huggingface.co/spaces/Xenova/webgpu-video-background-removal",
78
  openInNewTab: true,
79
  },
 
 
 
 
 
 
80
  },
81
  },
82
  {
83
  name: 'TVM',
84
  description: 'TVM',
85
  demos: {
86
- sd: {
87
  name: 'Web Stable Diffusion',
88
  description: `Web Stable Diffusion`,
89
  filename: "https://websd.mlc.ai/",
90
  openInNewTab: true,
91
  },
92
- llm: {
93
- name: 'Web LLM (Gemma/LLama/Mistral/Phi)',
94
- description: `Web LLM`,
95
  filename: "https://webllm.mlc.ai/",
96
  openInNewTab: true,
97
  },
@@ -101,15 +117,10 @@ const categoryDemos = [
101
  name: `Developer Only`,
102
  description: `Developer Only`,
103
  demos: {
104
- 'ort-phi2-test': {
105
- name: 'phi2 test',
106
- description: `phi2 from Microsoft`,
107
- filename: "ort-phi2-test",
108
- },
109
- 'ort-phi3-test': {
110
- name: 'phi3 test',
111
  description: `phi3 from Microsoft`,
112
- filename: "ort-phi3-test",
113
  },
114
  },
115
  },
 
12
  name: 'Segment Anything',
13
  description: `Segment Anything from https://github.com/guschmue/ort-webgpu/tree/master/segment-anything`,
14
  filename: "ort-sam",
 
15
  },
16
  'ort-sdturbo': {
17
  name: 'Stable Diffusion Turbo',
 
45
  name: 'Transformers.js',
46
  description: 'Transformers.js',
47
  demos: {
48
+ 'tjs-benchmark': {
49
  name: 'Benchmark',
50
  description: `Benchmark by Transformers.js`,
51
  filename: "https://huggingface.co/spaces/Xenova/webgpu-embedding-benchmark",
 
56
  description: `Zero-shot Image Classification with OpenAI's CLIP by Transformers.js`,
57
  filename: "https://huggingface.co/spaces/Xenova/webgpu-clip",
58
  openInNewTab: true,
 
59
  },
60
+ 'tjs-depthAnything': {
61
  name: 'Depth Anything',
62
  description: `Depth Anything by Transformers.js`,
63
  filename: "https://huggingface.co/spaces/Xenova/webgpu-depth-anything",
64
  openInNewTab: true,
65
  },
66
+ 'tjs-musicGen': {
67
+ name: 'Text to music (WASM)',
68
+ description: `Text to music by Transformers.js`,
69
+ filename: "https://huggingface.co/spaces/Xenova/musicgen-web",
70
+ openInNewTab: true,
71
+ },
72
+ 'tjs-phi3': {
73
+ name: 'Phi3',
74
+ description: `Phi3 by Transformers.js`,
75
+ filename: "https://huggingface.co/spaces/Xenova/experimental-phi3-webgpu",
76
+ openInNewTab: true,
77
+ },
78
+ 'tjs-removeImageBackground': {
79
  name: 'Remove Image Background',
80
  description: `Image Background Removal by Transformers.js`,
81
  filename: "https://huggingface.co/spaces/Xenova/remove-background-webgpu",
82
  openInNewTab: true,
83
  },
84
+ 'tjs-removeVideoBackground': {
85
  name: 'Remove Video Background',
86
  description: `Video Background Removal by Transformers.js`,
87
  filename: "https://huggingface.co/spaces/Xenova/webgpu-video-background-removal",
88
  openInNewTab: true,
89
  },
90
+ 'tjs-yolo': {
91
+ name: 'Realtime video object detection by YOLOv9',
92
+ description: `Realtime video object detection by Transformers.js`,
93
+ filename: "https://huggingface.co/spaces/Xenova/video-object-detection",
94
+ openInNewTab: true,
95
+ },
96
  },
97
  },
98
  {
99
  name: 'TVM',
100
  description: 'TVM',
101
  demos: {
102
+ 'tvm-sd': {
103
  name: 'Web Stable Diffusion',
104
  description: `Web Stable Diffusion`,
105
  filename: "https://websd.mlc.ai/",
106
  openInNewTab: true,
107
  },
108
+ 'tvm-llama3': {
109
+ name: 'Web LLM Llama3',
110
+ description: `Web LLM Llama3`,
111
  filename: "https://webllm.mlc.ai/",
112
  openInNewTab: true,
113
  },
 
117
  name: `Developer Only`,
118
  description: `Developer Only`,
119
  demos: {
120
+ 'dev-ort-phi3': {
121
+ name: 'phi3',
 
 
 
 
 
122
  description: `phi3 from Microsoft`,
123
+ filename: "dev-ort-phi3",
124
  },
125
  },
126
  },
demos/dev-ort-phi3/dev-ort-phi3.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41d71d75b2ab5836677e566c877f7a334805e82aa4fd6bb2b3beeb90cdc041dd
3
+ size 1348112
demos/ort-phi3/ort-phi3.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41d71d75b2ab5836677e566c877f7a334805e82aa4fd6bb2b3beeb90cdc041dd
3
+ size 1348112
demos/ort-yolo/ort-yolo.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68663429de9ef6a2f94aafd6423db9b0bd547cc9f79498eff7f9852c983d5607
3
+ size 1302423
demos/tjs-benchmark/tjs-benchmark.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21eeae15ebad31497baca25766ea20ed9f72b1e3100fd865ba1d5202193efc01
3
+ size 309877
demos/tjs-depthAnything/tjs-depthAnything.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0336ed99d9a520ab4804563b3fac3c2290ecb8295f03340f300c850aef49779
3
+ size 531151
demos/tjs-musicGen/tjs-musicGen.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a204d3f683e920b4ee784b2b02272191ff318d0ee289cc89227a1a448818e3a
3
+ size 308298
demos/tjs-phi3/tjs-phi3.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41d71d75b2ab5836677e566c877f7a334805e82aa4fd6bb2b3beeb90cdc041dd
3
+ size 1348112
demos/tjs-removeImageBackground/tjs-removeImageBackground.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec2b2bb82f9fed3542cd8dc333f5bcf0314d770d4018c330b735494f7e0a2211
3
+ size 183983
demos/tjs-removeVideoBackground/tjs-removeVideoBackground.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b9d0b0e2a32916eee2d8f40d68b55774a2e6e9db8c0a06b3e8a21beea5cf162
3
+ size 520668
demos/tjs-yolo/tjs-yolo.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68663429de9ef6a2f94aafd6423db9b0bd547cc9f79498eff7f9852c983d5607
3
+ size 1302423
demos/tvm-llama3/tvm-llama3.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a4d7853d8ee2bb7c0d0b9885a54dfb1e02d648dfcd33a811609e7dfd2790f875
3
+ size 3190883
gallery.html CHANGED
@@ -17,6 +17,17 @@
17
  text-align: center;
18
  display: block;
19
  }
 
 
 
 
 
 
 
 
 
 
 
20
  </style>
21
 
22
  <body>
@@ -38,13 +49,7 @@
38
  for (const [key, demoInfo] of Object.entries(demos)) {
39
  const li = document.createElement('li');
40
  const video = document.createElement('video');
41
- video.width = 600;
42
- video.height = 600;
43
- if (demoInfo.video) {
44
- video.src = `demos/${key}/${demoInfo.video}`;
45
- } else {
46
- video.src = 'video-na.mp4';
47
- }
48
 
49
  video.autoplay = true;
50
  video.muted = true;
 
17
  text-align: center;
18
  display: block;
19
  }
20
+
21
+ video {
22
+ width: 480px;
23
+ height: 320px;
24
+ border:2px solid black;
25
+ box-shadow: 0px 3px 17px -3px rgba(0,0,0,0.36);
26
+ -webkit-box-shadow: 0px 3px 17px -3px rgba(0,0,0,0.36);
27
+ -moz-box-shadow: 0px 3px 17px -3px rgba(0,0,0,0.36);
28
+ object-fit: cover !important;
29
+ border-radius: 20px !important;
30
+ }
31
  </style>
32
 
33
  <body>
 
49
  for (const [key, demoInfo] of Object.entries(demos)) {
50
  const li = document.createElement('li');
51
  const video = document.createElement('video');
52
+ video.src = `demos/${key}/${key}.mp4`;
 
 
 
 
 
 
53
 
54
  video.autoplay = true;
55
  video.muted = true;