carson-katri / dream-textures

Stable Diffusion built-in to Blender
GNU General Public License v3.0
7.77k stars 415 forks source link

Error in Blender 4.0 MacOS Apple Silicon #766

Closed hemanth-x closed 5 months ago

hemanth-x commented 8 months ago

Description

Python: Traceback (most recent call last): File "/Users/hemanthsubbiah/Library/Application Support/Blender/4.0/scripts/addons/dream_textures/engine/annotations/depth.py", line 32, in _execute shader = gpu.shader.from_builtin('3D_UNIFORM_COLOR') ValueError: expected a string in ('FLAT_COLOR', 'IMAGE', 'IMAGE_COLOR', 'SMOOTH_COLOR', 'UNIFORM_COLOR', 'POLYLINE_FLAT_COLOR', 'POLYLINE_SMOOTH_COLOR', 'POLYLINE_UNIFORM_COLOR'), got '3D_UNIFORM_COLOR'

Steps to Reproduce

  1. Install stable-diffusion-2-depth
  2. Create a cube -> Edit mode -> Subdivide the mesh couple of times -> Press 'a' to select all faces -> Run "Project dream texture" with configuration as shown in image. Screenshot 2023-12-29 at 8 59 51 AM

Expected Behavior

Works as expected in Blender 3.5x versions, but not working in Blender 4.0. Used same machine. The texture generation model works as expected in Blender 4.0 though. Only the depth model is having issue.

Addon Version

macOS (Apple Silicon)

GPU

Apple Silicon

blastframe commented 8 months ago

I'm also having this issue with Blender 4.0 on MacOS Apple Silicon, but the Texture Generation model isn't working for me either. Screenshot 2023-12-30 at 10 02 33 AM Screenshot 2023-12-30 at 10 08 17 AM

renggli commented 8 months ago

Using the command-line-rendering branch solves the problem for me.

CyWP commented 7 months ago

I simply changed this line of code in engine/annotations/depth.py, works fine now! Mind you I had the same issue in Windows with an AMD Ryzen 9 and an Nvidia Rtx3060Ti, Blender 4.0.3 image

github-actions[bot] commented 5 months ago

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] commented 5 months ago

This issue was closed because it has been inactive for 7 days since being marked as stale.