triposr-texture-gen
triposr-texture-gen copied to clipboard
Please help
I have a error : (textureautovenv) (base) C:\pinokio\api\triposr.git\app>python text2texture.py .\output\catgirl.obj "catgirl"
processing mesh
computing UV atlas for 9999 triangles [Open3D INFO] actual parallel_partitions 3 saving depth map at output\mesh-preproc-depth.png
'C:\pinokio\api\triposr.git\app\depth_txt2img.py' catgirl 'output\mesh-preproc-depth.png' 'output\mesh-preproc-depth-paint.png' --steps 12 --image-model 'SG161222\Realistic_Vision_V5.1_noVAE' Fatal Python error: _Py_HashRandomization_Init: failed to get random numbers to initialize Python Python runtime state: preinitialized
Traceback (most recent call last):
File "C:\pinokio\api\triposr.git\app\text2texture.py", line 329, in
Hm, haven't seen that one, I can look into it. If it happens to be related to Windows, though, I'm not sure when I will have a chance to test it cross-platform. So far I've just been developing on the Mac.
I have this same error on Windows. If it's fixed this would prove incredibly helpful to the SD community - can I help you test it somehow?
I was able to get one step further. Windows doesn't seem to like Python opening up an instance of itself, as described here.
To fix the error, I tried this in text2texture.py:
new_env = os.environ.copy()
subprocess.run(
[sys.executable, *depth_paint_args],
check=True,
# env={'PYTORCH_ENABLE_MPS_FALLBACK': '1'},
env=new_env,
)
It got me a little bit deeper in the process to a totally different error, so I think it may fix this particular Windows issue.
same problem here! may i ask if there is any solution? Thanks a lot! @albozes @al3dv2 @ejones