mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-07 22:23:55 -05:00
Move efficientnet example (#8087)
This commit is contained in:
@@ -17,7 +17,7 @@ canvas { display: none; }
|
||||
* { text-align: center; font-family: monospace; }
|
||||
</style>
|
||||
<title>tinygrad has WebGPU</title>
|
||||
<script src="./net.js"></script>
|
||||
<script src="../../net.js"></script>
|
||||
<link rel="icon" type="image/x-icon" href="https://raw.githubusercontent.com/tinygrad/tinygrad/master/docs/logo.png">
|
||||
</head>
|
||||
<body>
|
||||
@@ -61,7 +61,7 @@ canvas { display: none; }
|
||||
|
||||
const getLabels = async () => (await fetch("https://raw.githubusercontent.com/anishathalye/imagenet-simple-labels/master/imagenet-simple-labels.json")).json();
|
||||
|
||||
const getSavetensorBuffer = async () => new Uint8Array(await (await fetch("./net.safetensors")).arrayBuffer());
|
||||
const getSavetensorBuffer = async () => new Uint8Array(await (await fetch("../../net.safetensors")).arrayBuffer());
|
||||
|
||||
const reorderChannelsAndRemoveAlpha = (data) => {
|
||||
const out = [];
|
||||
@@ -47,7 +47,7 @@ async function runTest() {
|
||||
console.log(`error from page ${message}`),
|
||||
);
|
||||
|
||||
const res = await page.goto("http://localhost:8000/examples/index.html");
|
||||
const res = await page.goto("http://localhost:8000/examples/webgpu/efficientnet/index.html");
|
||||
if (res.status() !== 200) throw new Error("Failed to load page");
|
||||
|
||||
const textSelector = await page.waitForSelector("#result");
|
||||
|
||||
Reference in New Issue
Block a user