-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.html
69 lines (61 loc) · 4.07 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!-- Copyright 2018 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
============================================================================-->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Transformer Visualization</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="./style.css">
<link href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono:400|Open+Sans" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/@magenta/[email protected]"></script>
<style>
body {
max-width: 1000px;
}
</style>
</head>
<body>
<div class="main">
<h1>Visualizing Music Transformer</h1>
<p>There are three possible visualizations currently available: relative
attention visualizations for either a sample generated by model trained on Bach chorale or piano performances, as well as a ``duo'' mode that shows an analysis of relative vs regular attention on an existing piece.
</p>
<p>
<a class="button" href="./bach.html">Bach visualizer</a>
<br>
<a class="button" href="./performance.html">Piano performance visualizer</a>
<br>
<a class="button" href="./bach_duo.html">Analyze relative vs. regular attention</a>
</p>
<h2>Paper figures</h2>
<p>All samples are generated by Transformer with relative attention, trained on either J.S. Bach Chorales or Piano-e-Competition, except Fig.1D which shows an analysis of an existing Bach chorale.</p>
<div><a class="button" href="./bach.html#figure=1a">Fig. 1a</a>: Multiple head visualization of a Bach chorale sample.</div>
<div><a class="button" href="./bach.html#figure=1b">Fig. 1b</a>: Visualizing the first layer of the Transformer model for a Bach chorale sample.</div>
<div><a class="button" href="./bach.html#figure=1c">Fig. 1c</a>: Visualizing the last layer of the Transformer model for a Bach chorale sample.</div>
<div><a class="button" href="./bach_duo.html#figure=1d">Fig. 1d</a>: Analysis of the relative and regular attention models for an existing Bach chorale piece. <b>Note:</b> this loads a large file, and it takes a bit to load </div>
<div><a class="button" href="./performance.html#figure=3a">Fig. 3a</a>Visualizing motifs in a piano performance sample. <b>Note:</b> this loads a large file, and it takes a bit to load.</div>
<div><a class="button" href="./performance.html#figure=3b">Fig. 3b</a>Visualizing motifs in a piano performance sample. <b>Note:</b> this loads a large file, and it takes a bit to load.</div>
<h2>Paper videos</h2>
<h3>Animated multiple head visualization of a Bach chorale:</h3>
<video type="video/mp4" src="https://storage.googleapis.com/nips-workshop-visualization/files/figure1a_bach_rel.mp4" controls></video>
<h3>Animated multiple head visualization of a piano performance:</h3>
<video type="video/mp4" src="https://storage.googleapis.com/nips-workshop-visualization/files/perf_triangles.mp4" controls></video>
<h3>Animated comparison of relative vs. regular attention on an existing Bach piece:</h3>
<video type="video/mp4" src="https://storage.googleapis.com/nips-workshop-visualization/files/bach_duo.mp4" controls></video>
</div>
<div class="glitchButton" style="position:fixed;top:20px;right:20px;"></div>
<script src="https://button.glitch.me/button.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/1.3.8/FileSaver.min.js" defer></script>
</body>
</html>