stable-diffusion-webui-depthmap-script
stable-diffusion-webui-depthmap-script copied to clipboard
Only using 1 core when generating inpainted mesh/occluded mesh
Reproduce,
- use a high res image from https://replicate.com/xinntao/realesrgan
- generate image
the inpainted mesh code is almost entirely cpu bound and is not multi threaded.
the inpainted mesh code is almost entirely cpu bound and is not multi threaded.
would using a nvidia gpu (1070) be better since my amd gpu doesn't work
not for generating the inpainted mesh since it's almost completely cpu bound.
not for generating the inpainted mesh since it's almost completely cpu bound.
Can i not do anything to optimize the workflow, it takes 4 hours for a 20mb picture to be renderd, im happy with the result but it takes a bit too long. Any advice you can give me?
That's why it says slooooow, .. 4hrs is a long time, 20 MB .. what dimensions are we talking here ?
Except for overclocking or getting a cpu with better single core performance, I am not aware of anything you can do to speed it up, safe from rewriting the code from the original repo, which was only slightly adapted for use in this extension.
not sure why it's using the efficiency core, and not a power core ... ? I'm still on a 6th gen intel cpu, so I have no experience with this ... maybe you can select affinity in task manager or something ?
Is this a laptop ?
its 3264x5824 pixels 13900k i want to do the parralex on 50 pictures, thats 200 hours if the program doesn't crash which it does :/ it would be most ideal if it would be able to use multiple cores, first part is done within 5 minutes. Is there no optimization that can be done, because it's somewhat unusable for my use case.
Like i said, not that i'm aware of. 4hrs does seem excessive for that size, try getting it to run on a p-core for starters ..
If this is a laptop, check the power profile.
In this issue it seems like the one who posted figured an easy workaround to speed up things: swap the numpy arrays to torch tensors. https://github.com/thygate/stable-diffusion-webui-depthmap-script/issues/121