-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathminimal_example.html
43 lines (40 loc) · 1.56 KB
/
minimal_example.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="origin-trial" content="AtZGezovwmz3WHwNgkl9ou32eX4VRsh/zKBF8piQwtKh0WlUaRCZ3/mERQo1mQ+IHqgFuzK7jksSdPF5KZbzBAYAAABSeyJvcmlnaW4iOiJodHRwczovL3NvbmExMTExLmdpdGh1Yi5pbzo0NDMiLCJmZWF0dXJlIjoiV2ViR1BVIiwiZXhwaXJ5IjoxNjUyODMxOTk5fQ==">
<title>yay</title>
<script src="localStorageDB.min.js"></script>
<script>
let current_network = null;
let current_device = null;
let device_model_pointers = null;
let device_model_meta = null;
</script>
<script src="weightsreader.js"></script>
</head>
<body>
<img src="baboon_sm.png" id="sm_img" crossorigin="anonymous">
yay
<canvas id="original"></canvas>
<canvas id="result"></canvas>
<input id="imageUpload" name="imageUpload" type="file">
<progress id="download_progress" value=""></progress>
<pre id="dataload_status">Init...</pre>
<script src="utils.js"></script>
<script src="rrbdnetC_v7.js"></script>
<script>
current_network = "RRDB_ESRGAN_x4";
async function main(){
await storeModelData("RRDB_ESRGAN_x4", "ESRGAN_py/RRDB_ESRGAN_x4");
const img = document.getElementById('sm_img');
const output_elem = document.getElementById('result');
const status_elem = document.getElementById('dataload_status');
const gpumem_elem = document.getElementById('dataload_status');
const progress_elem = document.getElementById('download_progress');
run_nn(img, output_elem, status_elem, gpumem_elem, progress_elem, 23);
}
main();
</script>
</body>
</html>