rupeshs / fastsdcpu

Fast stable diffusion on CPU
MIT License
1.01k stars 86 forks source link

Using GPU #56

Closed jeffywilburn closed 7 months ago

jeffywilburn commented 8 months ago

Hi, i have low CPU core, but i have big GPU card, how do i use this only for GPU card? my gpu rtx 4090

thanks adv.

rupeshs commented 8 months ago

@jeffywilburn Are you using Windows?

Disty0 commented 7 months ago

Adding device="GPU" (or device="GPU.1" if you have an iGPU+ dGPU) to OpenVINO pipeline loading will enable GPU support using OpenVINO.

Fastsd works fine on the GPU with only this change.

jeffywilburn commented 7 months ago

Refe

yes, its work now, i follow disty0 thanks sir

noob-guy-dev commented 7 months ago

previously in v1.0.0. beta 11 release, i was able to generate images in 5-6 seconds , without TAESD, using integrated Iris graphics (Intel - i5) , by changing device: str = "CPU" to "GPU", but now in current release (13) , it is not working for me.

Now , device: str = "CPU" to "GPU" in both cases only cpu is being used and generate image in 14+ secconds

rupeshs commented 7 months ago

@noob-guy-dev Please do a fresh install of the latest release v1.0.0. beta 15 https://github.com/rupeshs/fastsdcpu/releases/tag/v1.0.0-beta.15 You can use iGPU by set DEVICE=GPU - Windows export DEVICE=GPU - Linux