stable-diffusion-webui-depthmap-script
stable-diffusion-webui-depthmap-script copied to clipboard
double free or corruption (!prev) Aborted (core dumped)
I encountered this problem, how to solve it?
python main.py
DepthMap v0.4.4 (5250c8b7) running in standalone mode!
The standalone mode is not on par with the stable-diffusion-webui mode.
Some features may be missing or work differently. Please report bugs.
Running on local URL: http://127.0.0.1:7861
To create a public link, set `share=True` in `launch()`.
DepthMap v0.4.4 (5250c8b7)
device: cuda
Loading model(s) ..
Loading model weights from ./models/leres/res101.pth
initialize network with normal
loading the model from ./models/pix2pix/latest_net_G.pth
Computing output(s) ..
0%| | 0/1 [00:00<?, ?it/s]wholeImage being processed in : 1120
Adjust factor is: 1.0
Selecting patches ...
Target resolution: (2240, 2240, 3)
Resulting depthmap resolution will be : (1200, 1200)
patches to process: 8
processing patch 0 / 7 | [ 0 0 1200 1200]
processing patch 1 / 7 | [ 0 180 840 840]
processing patch 2 / 7 | [ 0 360 840 840]
processing patch 3 / 7 | [180 360 840 840]
processing patch 4 / 7 | [360 180 840 840]
processing patch 5 / 7 | [360 360 840 840]
processing patch 6 / 7 | [ 0 360 480 480]
processing patch 7 / 7 | [ 0 540 480 480]
double free or corruption (!prev)
Aborted (core dumped)
So your are using a relatively high resolution. You might want to try with a lower resolutions image.
This also might be a corrupted model. You could try deleting the /models/pix2pix/latest_net_G.pth
model and redownload it. If the files are significantly smaller than below it's likely a download that was interrupted.
latest_net_G.pth
should be about 318 MB
and
res101.pth
should be about 531 MB