Comments (3)
Seems primarily the issue is that timers don't run when Blender is started from the command line to render. Likely due to the main thread being used as the render thread, rather than having a separate thread for rendering where the main thread is free to handle timer events.
dream-textures/generator_process/future.py
Lines 64 to 69 in 978e7b9
These timers are necessary under normal circumstances to run things on Blender's main thread and not cause crashes. We'll have to make sure any requests to the backend are blocking when
bpy.app.background==True
and have the Future
objects queue their callbacks to run on the calling thread somehow.from dream-textures.
With the lastest git it gets one step further but fails to write the rendered image to disk:
WARN (bpy.rna): C:\Users\blender\git\blender-v360\blender.git\source\blender\python\intern\bpy_rna.c:1343 pyrna_enum_to_py: current value '1' matches no enum in 'DreamTexturesRenderEngineProperties', '', 'backend'
Error: Python: Traceback (most recent call last):
File "C:\Users\g\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\dream_textures\engine\nodes\pipeline_nodes.py", line 79, in update
self.prompt.backend = bpy.context.scene.dream_textures_render_engine.backend
TypeError: bpy_struct: item.attr = val: enum "" not found in ('dream_textures.diffusers_backend.DiffusersBackend')
Traceback (most recent call last):
File "C:\Users\g\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\dream_textures\engine\nodes\pipeline_nodes.py", line 79, in update
self.prompt.backend = bpy.context.scene.dream_textures_render_engine.backend
TypeError: bpy_struct: item.attr = val: enum "" not found in ('dream_textures.diffusers_backend.DiffusersBackend')
Fra:1 Mem:49.74M (Peak 49.74M) | Time:00:00.00 | Group Output
Fra:1 Mem:49.74M (Peak 49.74M) | Time:00:00.00 | Render Properties
Fra:1 Mem:49.74M (Peak 49.74M) | Time:00:00.00 | Render Properties
Fra:1 Mem:49.74M (Peak 49.74M) | Time:00:00.01 | Render Properties
Fra:1 Mem:49.74M (Peak 49.74M) | Time:00:00.01 | Stable Diffusion
Keyword arguments {'safety_checker': None, 'requires_safety_checker': False} are not expected by StableDiffusionXLPipeline and will be ignored.
Loading pipeline components...: 100%|████████████████████████████████████████████████████| 7/7 [00:00<00:00, 7.62it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 25/25 [00:08<00:00, 3.02it/s]
from dream-textures.
Same issue here. I get an endless list of 'WARN (bpy.rna): C:\Users\blender\git\blender-v360\blender.git\source\blender\python\intern\bpy_rna.c:1343 pyrna_enum_to_py: current value '0' matches no enum in 'DreamPrompt', '', 'model''.
Also:
WARN (bpy.rna): C:\Users\blender\git\blender-v360\blender.git\source\blender\python\intern\bpy_rna.c:1343 pyrna_enum_to_py: current value '1' matches no enum in 'DreamTexturesRenderEngineProperties', '', 'backend'
Traceback (most recent call last):
File "C:\Users\GganallHis\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\dream_textures\engine\nodes\pipeline_nodes.py", line 79, in update
self.prompt.backend = bpy.context.scene.dream_textures_render_engine.backend
TypeError: bpy_struct: item.attr = val: enum "" not found in ('dream_textures.diffusers_backend.DiffusersBackend')
from dream-textures.
Related Issues (20)
- LCM Realtime Viewport Generation HOT 2
- Python: Traceback in exists : path should be string, bytes, os.PathLike or integer, not NoneType HOT 3
- Project Dream Texture button greyed out HOT 4
- ModuleNotFoundError: No module named 'dream_textures.api' error HOT 4
- Bake mode with black seams HOT 2
- RuntimeError-ConnectionError HOT 2
- AI Model Doesn't Install on Macbook M1 (Issue #715?) HOT 4
- Path too long HOT 3
- no module named dream_textures.api HOT 7
- Can't load Stable Diffusion 2.1 HOT 2
- there is no module named dream_textures.api HOT 6
- stable diffusion 2.1 is not installed! HOT 3
- Dream Texture X Pallaidium HOT 2
- A template file used to working with Dream in 3.6 stops working in 4.0 even with the addon uninstalled HOT 2
- fails when I set step preview to accurate: 'Generator' object has no attribute 'numpy_to_pil' HOT 2
- error when clicking generate HOT 1
- "No model selected" only when a model is selected HOT 6
- INTEL GPU INTEL IRIS XE GRAPHICS WITH ICORE I5 HOT 2
- Error in Blender 4.0 MacOS Apple Silicon HOT 5
- depth2img unhandled pipeline class HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dream-textures.