Live data from Hacker News

OnnxStream: Stable Diffusion XL 1.0 Base on a Raspberry Pi Zero 2

github.com

11–20 of 88 posts

Re: OnnxStream: Stable Diffusion XL 1.0 Base on a Raspberry Pi Zero 2

#11
post #7

So it’s safe to assume in the next 10 years - AI will be running locally on every device from phones, laptops and even many embedded devices. Even robots- from street cleaning bots to helpful human assistants?

Yes, every processor will have an AI core or two.

Re: OnnxStream: Stable Diffusion XL 1.0 Base on a Raspberry Pi Zero 2

#12
post #7

So it’s safe to assume in the next 10 years - AI will be running locally on every device from phones, laptops and even many embedded devices. Even robots- from street cleaning bots to helpful human assistants?

Probably not even 10 years.

Re: OnnxStream: Stable Diffusion XL 1.0 Base on a Raspberry Pi Zero 2

#13
post #7

So it’s safe to assume in the next 10 years - AI will be running locally on every device from phones, laptops and even many embedded devices. Even robots- from street cleaning bots to helpful human assistants?

Yeah, that's happening right now really? There has been loads of developments in the mobile space already, in many ways lower powered arm devices are way more optimised for AI applications than the current crop of intel machines.

This example, whilst impressive, feels way more in the "Doom running on a calculator" vein of progress though.

Re: OnnxStream: Stable Diffusion XL 1.0 Base on a Raspberry Pi Zero 2

#14
post #3

Could be a nice wall paper generator every 29 min. Input a big list of random prompts and let it rotate

This project is a fun POC but it's not very practical for that type of application.

A 4090 can generate over 100 images a second with turbo+lcm and a few techniques, you can make 2 days worth of images in 1 seconds. You could make a years worth in roughly 3 minutes and put them on the sd card

Re: OnnxStream: Stable Diffusion XL 1.0 Base on a Raspberry Pi Zero 2

#15
post #3

Could be a nice wall paper generator every 29 min. Input a big list of random prompts and let it rotate

This project is a fun POC but it's not very practical for that type of application. A 4090 can generate over 100 images a second with turbo+lcm and a few techniques, you can make 2 days worth of images in 1 seconds. You could make a years worth in roughly 3 minutes and put them on the sd card

But that's not the point, obviously. Sometimes, being slow is a feature. Besides, a 4090 costs more than a small car.

Re: OnnxStream: Stable Diffusion XL 1.0 Base on a Raspberry Pi Zero 2

#16
post #7

So it’s safe to assume in the next 10 years - AI will be running locally on every device from phones, laptops and even many embedded devices. Even robots- from street cleaning bots to helpful human assistants?

Every Google Home device is already running an ML model to do speech recognition to recognize the "hey Google" wake word, so sooner than 10 years. The Raspberry Pi Zero is a particularly underpowered device for this. Doing it on the Coral TPU accelerator plugged into a pi zero would take less than 30 mins. Doing it on an iPhone 15 would take less time. Doing it on a Pixel 8 would be faster. Not to diminish getting it to work on a Pi Zero, but that future is already here, just as soon as we figure out what to do with them.

https://coral.ai/products/accelerator/

Re: OnnxStream: Stable Diffusion XL 1.0 Base on a Raspberry Pi Zero 2

#17
post #15

Earlier quoted context omitted.

This project is a fun POC but it's not very practical for that type of application. A 4090 can generate over 100 images a second with turbo+lcm and a few techniques, you can make 2 days worth of images in 1 seconds. You could make a years worth in roughly 3 minutes and put them on the sd card

But that's not the point, obviously. Sometimes, being slow is a feature. Besides, a 4090 costs more than a small car.

$1600 is more than a car?

I feel like you can't even find driveable cars that will last 100 miles at that price point anymore.

Re: OnnxStream: Stable Diffusion XL 1.0 Base on a Raspberry Pi Zero 2

#18
post #15

Earlier quoted context omitted.

This project is a fun POC but it's not very practical for that type of application. A 4090 can generate over 100 images a second with turbo+lcm and a few techniques, you can make 2 days worth of images in 1 seconds. You could make a years worth in roughly 3 minutes and put them on the sd card

But that's not the point, obviously. Sometimes, being slow is a feature. Besides, a 4090 costs more than a small car.

> But that's not the point, obviously.

If you want to say the zero2-w is what's making it then sure.

> Besides, a 4090 costs more than a car.

They only cost ~0.70USD for 1 hr. In fact you could put this on an A100 for 1$/hr. Renting would make the most sense for this type of thing.

Re: OnnxStream: Stable Diffusion XL 1.0 Base on a Raspberry Pi Zero 2

#19
post #7

So it’s safe to assume in the next 10 years - AI will be running locally on every device from phones, laptops and even many embedded devices. Even robots- from street cleaning bots to helpful human assistants?

Every Google Home device is already running an ML model to do speech recognition to recognize the "hey Google" wake word, so sooner than 10 years. The Raspberry Pi Zero is a particularly underpowered device for this. Doing it on the Coral TPU accelerator plugged into a pi zero would take less than 30 mins. Doing it on an iPhone 15 would take less time. Doing it on a Pixel 8 would be faster. Not to diminish getting it…

There's an ocean of difference between optimizing for a single wakeword and the class of models that are taking off today. I'm excited for more on-board processing, because it will mean less dependency on the cloud.

Re: OnnxStream: Stable Diffusion XL 1.0 Base on a Raspberry Pi Zero 2

#20
post #6
post #3

Could be a nice wall paper generator every 29 min. Input a big list of random prompts and let it rotate

That is, if you don't mind your wallpaper consuming 100% system resources, heh.

298MB of RAM is hardly 100%, as per this example. Slack takes up way more RAM than that.
Post reply on HN