this post was submitted on 22 Jul 2025
144 points (100.0% liked)

chat

8446 readers
286 users here now

Chat is a text only community for casual conversation, please keep shitposting to the absolute minimum. This is intended to be a separate space from c/chapotraphouse or the daily megathread. Chat does this by being a long-form community where topics will remain from day to day unlike the megathread, and it is distinct from c/chapotraphouse in that we ask you to engage in this community in a genuine way. Please keep shitposting, bits, and irony to a minimum.

As with all communities posts need to abide by the code of conduct, additionally moderators will remove any posts or comments deemed to be inappropriate.

Thank you and happy chatting!

founded 4 years ago
MODERATORS
 

I made a website where you can draw a fish. And you can watch it swim around. If you're interested in it. I spent a lot of time on it and I'm not really sure who to share it with.

http://drawafish.com/ if you are interested. would love to hear your thots...

you are viewing a single comment's thread
view the rest of the comments
[–] wart@hexbear.net 11 points 1 week ago (1 children)

If you can show me the console outputs I can take a look into diagnosing why ! It's possible it's just very slow

[–] trinicorn@hexbear.net 7 points 1 week ago* (last edited 1 week ago) (1 children)

when I click the button I get this

Uncaught (in promise) Error: Fish model not loaded
    verifyFishDoodle https://drawafish.com/src/js/app.js:464
    <anonymous> https://drawafish.com/src/js/app.js:162
app.js:464:15
    <anonymous> https://drawafish.com/src/js/app.js:162
    AsyncFunctionThrow self-hosted:808

On initial pageload I get this

Failed to load fish model: Error: no available backend found. ERR: [wasm] Error: WebAssembly SIMD is not supported in the current environment., [cpu] Error: previous call to 'initWasm()' failed., [webnn] Error: previous call to 'initWasm()' failed., [webgpu] Error: previous call to 'initWasm()' failed.
    hr backend-impl.ts:138
    create inference-session-impl.ts:208
    modelLoadPromise app.js:387
    loadFishModel app.js:396
    onload app.js:554
    ensureONNXRuntime app.js:552
    <anonymous> app.js:565
app.js:391:21
    modelLoadPromise https://drawafish.com/src/js/app.js:391
    loadFishModel https://drawafish.com/src/js/app.js:396
    onload https://drawafish.com/src/js/app.js:554
    (Async: EventHandlerNonNull)
    ensureONNXRuntime https://drawafish.com/src/js/app.js:552
    <anonymous> https://drawafish.com/src/js/app.js:565
Failed to load model on startup: Error: no available backend found. ERR: [wasm] Error: WebAssembly SIMD is not supported in the current environment., [cpu] Error: previous call to 'initWasm()' failed., [webnn] Error: previous call to 'initWasm()' failed., [webgpu] Error: previous call to 'initWasm()' failed.
    hr backend-impl.ts:138
    create inference-session-impl.ts:208
    modelLoadPromise app.js:387
    loadFishModel app.js:396
    onload app.js:554
    ensureONNXRuntime app.js:552
    <anonymous> app.js:565
app.js:555:25
    onload https://drawafish.com/src/js/app.js:555
    (Async: promise callback)
    onload https://drawafish.com/src/js/app.js:554
    (Async: EventHandlerNonNull)
    ensureONNXRuntime https://drawafish.com/src/js/app.js:552
    <anonymous> https://drawafish.com/src/js/app.js:565

so some wasm features might just not be supported?

[–] wart@hexbear.net 11 points 1 week ago

Yeah, that must be it. There's a CNN I trained that runs in the front end and shows you what percentage fish it thinks it is. There's also one in the backend, so I could honestly catch the error and let ppl submit without the front end verification. But then it kind of fails silently which isn't good UX... maybe I'll do it in the morning 😇