stable-diffusion-webui-depthmap-script icon indicating copy to clipboard operation
stable-diffusion-webui-depthmap-script copied to clipboard

This script doesn't get enough attention! :) One issue, though, re: 3d PLY generation speed

Open enn-nafnlaus opened this issue 3 years ago • 4 comments

I tried it for the first time last night and noticed my GPU was running at 0% but my CPU pegged at 100%; it appears to run purely on CPU, which certainly goes a long way to explaining why it's so slow!

Having converted code to PyTorch before to run on GPU, it's actually not as scary as it sounds. torch.Tensors are basically the same thing as numpy.array. There's a couple minor issues that generally come up in the conversion process - for example, they require more explicit conversions in some cases, and a few functions are different - but for the most part, just substitute torch.Tensor as the type for numpy.array. And as a bonus, I also found that for any conversion issues that comes up, ChatGPT usually knows the answer! :)

enn-nafnlaus avatar Feb 27 '23 10:02 enn-nafnlaus

what do you mean, Im not scriptor, do you mean you changed the code to make it , useingGPU from Mesh to videos?
does it speed up faster?

LanceGao97 avatar Jun 12 '23 13:06 LanceGao97

I tried it for the first time last night and noticed my GPU was running at 0% but my CPU pegged at 100%; it appears to run purely on CPU, which certainly goes a long way to explaining why it's so slow!

Having converted code to PyTorch before to run on GPU, it's actually not as scary as it sounds. torch.Tensors are basically the same thing as numpy.array. There's a couple minor issues that generally come up in the conversion process - for example, they require more explicit conversions in some cases, and a few functions are different - but for the most part, just substitute torch.Tensor as the type for numpy.array. And as a bonus, I also found that for any conversion issues that comes up, ChatGPT usually knows the answer! :)

Are you successful on the GPU? Will it get faster?

old90 avatar Sep 16 '23 14:09 old90

+1, would love to know if this ended up working

rajaman0 avatar Nov 01 '23 14:11 rajaman0

I don't understand the question. This was a feature request, not an "I Implemented It Already" :)

enn-nafnlaus avatar Nov 01 '23 16:11 enn-nafnlaus