-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: argument of type 'NoneType' is not iterable #55
Comments
I ended up discovering the problem. The dpt_large file is not downloading automatically. I got the file from github and put it in the folder manually and that way it worked correctly. |
can you give a link pls? |
Claro. https://github.com/isl-org/MiDaS/releases/download/v3/dpt_large_384.pt |
Hello. Need help. The depthmap2mask extension doesn't work for me. Writes the following error.
Recommended settings: Sampling Steps: 80-100, Sampler: Euler a, Denoising strength: 0.8 ', 128, 8, ['left', 'right', 'up', 'down'], 1, 0.05, 128, 4, 0, ['left', 'right', 'up', 'down' ], False, False, 'positive', 'comma', 0, False, False, '', 'Will upscale the image by the selected scale factor; use width and height sliders to set tile size ', 64, 0, 2, 1, '', [], 0, '', [], 0, '', [], True, False, False, False, 0, False, 7, False, 512, 512, True, 9, True, True, False, False, None, None, False, 50) {}Traceback (most recent call last): File "C:\Users\User\Downloads\sd.webui\webui\modules\call_queue.py", line 55, in f res = list(func(*args, **kwargs)) File "C:\Users\User\Downloads\sd.webui\webui\modules\call_queue.py", line 35, in f res = func(*args, **kwargs) File "C:\Users\User\Downloads\sd.webui\webui\modules\img2img.py", line 196, in img2img processed = modules.scripts.scripts_img2img.run(p, *args) File "C:\Users\User\Downloads\sd.webui\webui\modules\scripts.py", line 456, in run processed = script.run(p, *script_args) File "C:\Users\User\Downloads\sd.webui\webui\extensions\depthmap2mask-main\scripts\depth2image_depthmask.py", line 97, in run d_m = sdmg.calculate_depth_maps(p.init_images[0],img_x,img_y,model_type,invert_depth) File "C:\Users\User\Downloads\sd.webui\webui\extensions/depthmap2mask/scripts/depthmap_for_depth2img.py", line 294, in calculate_depth_maps model, transform = load_model(device, model_path, models[model_type_index], (img_x, img_y)) File "C:\Users\User\Downloads\sd.webui\webui\extensions/depthmap2mask/scripts/depthmap_for_depth2img.py", line 142, in load_model model = DPTDepthModel( File "C:\Users\User\Downloads\sd.webui\webui\repositories\midas\midas\dpt_depth.py", line 163, in init self.load(path) File "C:\Users\User\Downloads\sd.webui\webui\repositories\midas\midas\base_model.py", line 13, in load if "optimizer" in parameters: TypeError: argument of type 'NoneType' is not iterable |
Thanks alot! Where exactly to place this file? Can you share the path? |
Hello. Current version of Midas is v3.1 and dpt_large_384.pt is marked as legacy. It worked for me perfectly fine. |
AttributeError: 'Block' object has no attribute 'drop_path' who knows what can it be? |
What's up guys. I'm having trouble using Depthmap2mask. I can install as instructed by github. When I go to img2img, enable Depthmap2mask and enable dpt_large, the following error appears in the CMD: File "C:\Users\bypau\Desktop\SD\stable-diffusion-webui\repositories\midas\midas\base_model.py", line 13, in load
if "optimizer" in parameters:
TypeError: argument of type 'NoneType' is not iterable
When I select another model other than dpt_large it works. The problem is only in dpt_large.
I am very grateful to everyone who can help me.
The text was updated successfully, but these errors were encountered: