lllyasviel / lllyasviel/stable-diffusion-webui-forge

Computer Vision: Depth, Normal, and Geometry:- GeoWizard

Open
#1,324 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
13k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

Traceback (most recent call last):
File "D:\DEV\AI-PROJECTS\stable-diffusion-webui-forge\venv\lib\site-packages\gradio\queueing.py", line 536, in process_events
response = await route_utils.call_process_api(
File "D:\DEV\AI-PROJECTS\stable-diffusion-webui-forge\venv\lib\site-packages\gradio\route_utils.py", line 285, in call_process_api
output = await app.get_blocks().process_api(
File "D:\DEV\AI-PROJECTS\stable-diffusion-webui-forge\venv\lib\site-packages\gradio\blocks.py", line 1923, in process_api
result = await self.call_function(
File "D:\DEV\AI-PROJECTS\stable-diffusion-webui-forge\venv\lib\site-packages\gradio\blocks.py", line 1508, in call_function
prediction = await anyio.to_thread.run_sync( # type: ignore
File "D:\DEV\AI-PROJECTS\stable-diffusion-webui-forge\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "D:\DEV\AI-PROJECTS\stable-diffusion-webui-forge\venv\lib\site-packages\anyio_backends_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "D:\DEV\AI-PROJECTS\stable-diffusion-webui-forge\venv\lib\site-packages\anyio_backends_asyncio.py", line 807, in run
result = context.run(func, *args)
File "D:\DEV\AI-PROJECTS\stable-diffusion-webui-forge\venv\lib\site-packages\gradio\utils.py", line 818, in wrapper
response = f(*args, **kwargs)
File "D:\DEV\AI-PROJECTS\stable-diffusion-webui-forge\spaces.py", line 124, in wrapper
result = func(*args, **kwargs)
File "D:\DEV\AI-PROJECTS\stable-diffusion-webui-forge\extensions-builtin\forge_space_geowizard\forge_app.py", line 84, in depth_normal
pipe_out = pipe(
File "D:\DEV\AI-PROJECTS\stable-diffusion-webui-forge\venv\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "D:\DEV\AI-PROJECTS\stable-diffusion-webui-forge\extensions-builtin\forge_space_geowizard\geo_models\geowizard_pipeline.py", line 143, in call
for batch in iterable_bar:
File "D:\DEV\AI-PROJECTS\stable-diffusion-webui-forge\venv\lib\site-packages\tqdm\std.py", line 1182, in iter
for obj in iterable:
File "D:\DEV\AI-PROJECTS\stable-diffusion-webui-forge\venv\lib\site-packages\torch\utils\data\dataloader.py", line 631, in next
data = self._next_data()
File "D:\DEV\AI-PROJECTS\stable-diffusion-webui-forge\venv\lib\site-packages\torch\utils\data\dataloader.py", line 677, in _next_data
data = _utils.pin_memory.pin_memory(data, self._pin_memory_device)
File "D:\DEV\AI-PROJECTS\stable-diffusion-webui-forge\venv\lib\site-packages\torch\utils\data_utils\pin_memory.py", line 88, in pin_memory
clone[i] = pin_memory(item, device)
File "D:\DEV\AI-PROJECTS\stable-diffusion-webui-forge\venv\lib\site-packages\torch\utils\data_utils\pin_memory.py", line 58, in pin_memory
return data.pin_memory(device)
image

RuntimeError: cannot pin 'torch.cuda.FloatTensor' only dense CPU tensors can be pinned

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in extensions-builtin/forge_space_geowizard/forge_app.py at depth_normal and follow the call into geo_models/geowizard_pipeline.py at line 143. Reproduce the GeoWizard depth/normal operation and inspect the DataLoader path that reaches PyTorch pin_memory. Done means this operation completes without the reported CUDA tensor pinning error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
computer-vision, machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.