Skip to content

Batch from directory, custom depth map giving errors #225

Closed
@prestonwright

Description

@prestonwright

DepthMap v0.3.11
device: cuda
Loading model weights from ./models/leres/res101.pth
initialize network with normal
loading the model from ./models/pix2pix\latest_net_G.pth
Computing depthmap(s) ..
0%| | 0/214 [00:00<?, ?it/s]

0%| | 0/214 [00:00<?, ?it/s]
Error completing request
Arguments: (2, None, None, 'D:\000001\left\generated', 'D:\000001\depth14\rename', 0, 0, 512, 512, False, True, True, False, 0, 1, False, 1, True, False, False, True, ['left-right'], 2.5, 'polylines_sharp', 0, False, False, False, False, False, 'u2net', False, 0, 2, False, None, True, False, True, False) {}
Traceback (most recent call last):
File "C:\stable-diffusion-webui\modules\call_queue.py", line 56, in f
res = list(func(*args, **kwargs))
File "C:\stable-diffusion-webui\modules\call_queue.py", line 37, in f
res = func(*args, **kwargs)
File "C:\stable-diffusion-webui\extensions\stable-diffusion-webui-depthmap-script\scripts\depthmap.py", line 1171, in run_generate
outputs, mesh_fi, meshsimple_fi = run_depthmap(
File "C:\stable-diffusion-webui\extensions\stable-diffusion-webui-depthmap-script\scripts\depthmap.py", line 542, in run_depthmap
dimg = Image.open(os.path.abspath(custom_depthmap_img.name))
AttributeError: 'str' object has no attribute 'name'

Traceback (most recent call last):
File "C:\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict
output = await app.get_blocks().process_api(
File "C:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1078, in process_api
data = self.postprocess_data(fn_index, result["prediction"], state)
File "C:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1012, in postprocess_data
prediction_value = block.postprocess(prediction_value)
File "C:\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 4307, in postprocess
"name": self.make_temp_copy_if_needed(y),
File "C:\stable-diffusion-webui\venv\lib\site-packages\gradio\processing_utils.py", line 362, in make_temp_copy_if_needed
temp_dir = self.hash_file(file_path)
File "C:\stable-diffusion-webui\venv\lib\site-packages\gradio\processing_utils.py", line 334, in hash_file
with open(file_path, "rb") as f:
OSError: [Errno 22] Invalid argument: "

AttributeError: 'str' object has no attribute 'name'

Time taken: 3.39s

Torch active/reserved: 1204/1220 MiB, Sys VRAM: 2803/12288 MiB (22.81%)

"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions