You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No module named 'inpaint'. Some issue with generating inpainted mesh #453 [proposed fix] #473
File "/home/k/Downloads/src/stable-diffusion-webui/extensions/stable-diffusion-webui-depthmap-script/src/core.py", line 355, in run_3dphoto
from inpaint.mesh import write_mesh
ModuleNotFoundError: No module named 'inpaint'
$ g "issue with" * -r
extensions/stable-diffusion-webui-depthmap-script/src/core.py:334: print(f'{str(e)}, some issue with generating inpainted mesh')
# TODO: This should not be here
if inp[go.GEN_INPAINTED_MESH]:
try:
mesh_fi = run_3dphoto(device, inpaint_imgs, inpaint_depths, inputnames, outpath,
inp[go.GEN_INPAINTED_MESH_DEMOS],
1, "mp4")
yield 0, 'inpainted_mesh', mesh_fi
except Exception as e:
print(f'{str(e)}, some issue with generating inpainted mesh')
backbone.reload_sd_model()
print("All done.\n")
def run_3dphoto(device, img_rgb, img_depth, inputnames, outpath, gen_inpainted_mesh_demos, vid_ssaa, vid_format):
from inpaint.mesh import write_mesh
from inpaint.networks import Inpaint_Color_Net, Inpaint_Depth_Net, Inpaint_Edge_Net
from inpaint.bilateral_filtering import sparse_bilateral_filtering
$ where inpaint
./extensions/stable-diffusion-webui-depthmap-script/inpaint
n extensions/stable-diffusion-webui-depthmap-script/src/core.py:334:
FIX#1. Path issue
$ cd ./extensions/stable-diffusion-webui-depthmap-script
$ ln -s $(pwd)/inpaint ../../
hmm
So I run python and try stepping through
>>> from inpaint.mesh import write_mesh
>>> from inpaint.networks import Inpaint_Color_Net, Inpaint_Depth_Net, Inpaint_Edge_Net
SyntaxError: trailing comma not allowed without surrounding parentheses
Fix#2. Put parenthesis around imports around line ~355 from inpaint.networks import (Inpaint_Color_Net, Inpaint_Depth_Net, Inpaint_Edge_Net)
I also removed the try...catch block. It doesn't really do anything but hide errors.
changed the title [-]No module named 'inpaint'. Some issue with generating inpainted mesh #453 again[/-][+]No module named 'inpaint'. Some issue with generating inpainted mesh #453 [proposed fix][/+]on Oct 15, 2024
Activity
[-]No module named 'inpaint'. Some issue with generating inpainted mesh #453 again[/-][+]No module named 'inpaint'. Some issue with generating inpainted mesh #453 [proposed fix][/+]