Move efficientnet example (#8087)

This commit is contained in:
Ahmed Harmouche
2024-12-06 15:48:16 +01:00
committed by GitHub
parent 7dbd166227
commit f3983f6743
2 changed files with 3 additions and 3 deletions

View File

@@ -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 = [];

View File

@@ -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");