-
Notifications
You must be signed in to change notification settings - Fork 3
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
Works then stops working - can't install it anymore #6
Comments
Just for info, I removed pinokio 3.0.31 from https://github.com/pinokiocomputer/pinokio, and installed version 3.0.37, from https://github.com/cocktailpeanutlabs/p2, just in case... But error messages, even with a clean install of everything, ended up being the same. |
Same problem here: |
I ended up installing that today: Trellis-Stable-Projectorz. Download the latest version (at the moment it's: trellis-stable-projectorz-cuda11.8_torch2.1.2.zip). Unzip it in some folder AI or something. Then click run.bat and that's all. Installed. Worked instantly for me. There's no WebUI which sucks a bit. But it works fine. To use it once installed: .glb (3D, blender, etc.) The few models I posted here, from the gaming chair (look at the details in this one !) to the last one with 3 cars, it's all done with Trellis. Cheers. Hope it'll also work for you. |
Thanks for the workaround info. I haven't tried this yet. I'm hoping this awesome tool will work properly with Pinokio soon, including UI. I'll resort to trying your workaround if nothing else pans out soon. |
EDIT: script update today 2025/01/03 E:\pinokio\api\TRELLIS.git\app>conda_hook && conda deactivate && conda deactivate && conda deactivate && conda activate base && E:\pinokio\api\TRELLIS.git\app\env\Scripts\activate E:\pinokio\api\TRELLIS.git\app\env && uv pip install -r ../requirements.txt |
Script update 2025/01/03 doesn't work for me either, fails immediately: (I do hope this gets sorted out) Expected --hash, found "--no-build-isolation" at ../requirements.txt:28:56 Microsoft Windows 11 [Version 10.0.26100.2605] |
Hello everyone, I apologize for not addressing this issue earlier. The message above is from here. The errors you have been experiencing were due to a mistake in the code while updating it to work on both Linux and Windows. Please update your version of Trellis, and this issue should be resolved:
Regarding this issue:
I am not sure about what happened here, but I would like to say that this is an issue with the trellis repo rather than this repo. Please let me know if it still isn't fixed, or alternatively you can get some support from the pinokio discord: https://discord.gg/TQdNwadtE4 |
Thanks for trying to get this to work for us. I tried your installer again today and it doesn't work for me. : Microsoft Windows [Version 10.0.26100.2605] C:\pinokio\api\TRELLIS.git\app>conda_hook && conda deactivate && conda deactivate && conda deactivate && conda activate base && C:\pinokio\api\TRELLIS.git\app\env\Scripts\activate C:\pinokio\api\TRELLIS.git\app\env && uv pip install -r ../requirements.txt [stderr] hint: This error likely indicates that |
Interestingly, if I edit your install.js and remove 'uv' from 'uv pip install -r ../requirements.txt' the install completes and the TRELLIS UI loads, but unfortunately fails during generation. : Sampling: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 12/12 [00:02<00:00, 4.42it/s] Traceback (most recent call last): |
Pinokio-3.2.0 UPDATE: I finally got your TRELLIS installer working for me. Yay! I'm super happy TRELLIS is working in Pinokio browser now. I'm not sure exactly what fixed it for me. I had uninstalled Visual Studio 2022 pro and 2019 pro trials from my system. I had manually re-installed uv. I had manually re-installed Visual Studio Build Tools 2019. I had run your installer again from scratch. All of a sudden TRELLIS works perfectly. I can't close this issue out because I didn't create it, but I did give your project a star. Thank you! |
Well it gives some hope :/ Thanks cmackenna for sharing your experience. As far as I'm concerned each update give its own error. Latest from yesterday gives me that: Start View File E:\pinokio\api\TRELLIS.git\app>conda_hook && conda deactivate && conda deactivate && conda deactivate && conda activate base && E:\pinokio\api\TRELLIS.git\app\env\Scripts\activate E:\pinokio\api\TRELLIS.git\app\env && uv pip install -r ../requirements.txt [stderr] hint: This error likely indicates that (env) (base) E:\pinokio\api\TRELLIS.git\app> Aka: still doesn't install. |
I use Pinokio 3.0.31 (from https://github.com/pinokiocomputer/pinokio)
Trellis installed fine. Worked for a day or two, then didn't want to start anymore. I uninstalled it a few times because of that. Weirdly enough a fresh setup of just Trellis and it would work again, until it doesn't start anymore... again.
But this morning, same issue except I can't even install Trellis anymore. Could you please tell me what you think of this error message ? Having to reinstall all Pinokio and the other stable AI apps I use, just because this integration of Trellis seems unstable it kind of problematic :/
Since I see this error multiple times during install, Trellis gets "installed", I can start it, load an image and see its background being removed. But it doesn't generate meshes anymore and all I get is an error.
When I start Trellis:
Microsoft Windows [Version 10.0.22631.4602]
(c) Microsoft Corporation. All rights reserved.
E:\pinokio\api\TRELLIS3D.git\app>conda_hook && conda deactivate && conda deactivate && conda deactivate && conda activate base && E:\pinokio\api\TRELLIS3D.git\app\env\Scripts\activate E:\pinokio\api\TRELLIS3D.git\app\env && python app.py
[SPARSE] Backend: spconv, Attention: xformers
Warp 1.5.0 initialized:
CUDA Toolkit 12.6, Driver 12.6
Devices:
"cpu" : "Intel64 Family 6 Model 151 Stepping 2, GenuineIntel"
"cuda:0" : "NVIDIA GeForce RTX 3090" (24 GiB, sm_86, mempool enabled)
Kernel cache:
C:\Users\hanso\AppData\Local\NVIDIA\warp\Cache\1.5.0
E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\gradio_client\utils.py:1097: UserWarning: file() is deprecated and will be removed in a future version. Use handle_file() instead.
warnings.warn(
[SPARSE][CONV] spconv algo: native
[ATTENTION] Using backend: xformers
Using cache found in E:\pinokio\api\TRELLIS3D.git\cache\TORCH_HOME\hub\facebookresearch_dinov2_main
E:\pinokio\api\TRELLIS3D.git\cache\TORCH_HOME\hub\facebookresearch_dinov2_main\dinov2\layers\swiglu_ffn.py:43: UserWarning: xFormers is available (SwiGLU)
warnings.warn("xFormers is available (SwiGLU)")
E:\pinokio\api\TRELLIS3D.git\cache\TORCH_HOME\hub\facebookresearch_dinov2_main\dinov2\layers\attention.py:27: UserWarning: xFormers is available (Attention)
warnings.warn("xFormers is available (Attention)")
E:\pinokio\api\TRELLIS3D.git\cache\TORCH_HOME\hub\facebookresearch_dinov2_main\dinov2\layers\block.py:33: UserWarning: xFormers is available (Block)
warnings.warn("xFormers is available (Block)")
Running on local URL: http://127.0.0.1:7860
To create a public link, set
share=True
inlaunch()
.When I import an image and try to generate a mesh from it :
Sampling: 0%| | 0/12 [00:00<?, ?it/s]
Traceback (most recent call last):
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\gradio\queueing.py", line 536, in process_events
response = await route_utils.call_process_api(
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\gradio\route_utils.py", line 322, in call_process_api
output = await app.get_blocks().process_api(
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\gradio\blocks.py", line 1935, in process_api
result = await self.call_function(
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\gradio\blocks.py", line 1520, in call_function
prediction = await anyio.to_thread.run_sync( # type: ignore
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\anyio_backends_asyncio.py", line 2505, in run_sync_in_worker_thread
return await future
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\anyio_backends_asyncio.py", line 1005, in run
result = context.run(func, *args)
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\gradio\utils.py", line 826, in wrapper
response = f(*args, **kwargs)
File "E:\pinokio\api\TRELLIS3D.git\app\app.py", line 140, in image_to_3d
outputs = pipeline.run(
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\torch\utils_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
File "E:\pinokio\api\TRELLIS3D.git\app\trellis\pipelines\trellis_image_to_3d.py", line 282, in run
coords = self.sample_sparse_structure(cond, num_samples, sparse_structure_sampler_params)
File "E:\pinokio\api\TRELLIS3D.git\app\trellis\pipelines\trellis_image_to_3d.py", line 184, in sample_sparse_structure
z_s = self.sparse_structure_sampler.sample(
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\torch\utils_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
File "E:\pinokio\api\TRELLIS3D.git\app\trellis\pipelines\samplers\flow_euler.py", line 199, in sample
return super().sample(model, noise, cond, steps, rescale_t, verbose, neg_cond=neg_cond, cfg_strength=cfg_strength, cfg_interval=cfg_interval, **kwargs)
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\torch\utils_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
File "E:\pinokio\api\TRELLIS3D.git\app\trellis\pipelines\samplers\flow_euler.py", line 112, in sample
out = self.sample_once(model, sample, t, t_prev, cond, **kwargs)
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\torch\utils_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
File "E:\pinokio\api\TRELLIS3D.git\app\trellis\pipelines\samplers\flow_euler.py", line 73, in sample_once
pred_x_0, pred_eps, pred_v = self._get_model_prediction(model, x_t, t, cond, **kwargs)
File "E:\pinokio\api\TRELLIS3D.git\app\trellis\pipelines\samplers\flow_euler.py", line 43, in _get_model_prediction
pred_v = self._inference_model(model, x_t, t, cond, **kwargs)
File "E:\pinokio\api\TRELLIS3D.git\app\trellis\pipelines\samplers\guidance_interval_mixin.py", line 11, in _inference_model
pred = super()._inference_model(model, x_t, t, cond, **kwargs)
File "E:\pinokio\api\TRELLIS3D.git\app\trellis\pipelines\samplers\flow_euler.py", line 40, in _inference_model
return model(x_t, t, cond, **kwargs)
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
File "E:\pinokio\api\TRELLIS3D.git\app\trellis\models\sparse_structure_flow.py", line 192, in forward
h = block(h, t_emb, cond)
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
File "E:\pinokio\api\TRELLIS3D.git\app\trellis\modules\transformer\modulated.py", line 156, in forward
return self._forward(x, mod, context)
File "E:\pinokio\api\TRELLIS3D.git\app\trellis\modules\transformer\modulated.py", line 139, in _forward
h = self.self_attn(h)
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\torch\nn\modules\module.py", line 1747, in call_impl
return forward_call(*args, **kwargs)
File "E:\pinokio\api\TRELLIS3D.git\app\trellis\modules\attention\modules.py", line 126, in forward
h = scaled_dot_product_attention(q, k, v)
File "E:\pinokio\api\TRELLIS3D.git\app\trellis\modules\attention\full_attn.py", line 113, in scaled_dot_product_attention
out = xops.memory_efficient_attention(q, k, v)
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\xformers\ops\fmha_init.py", line 306, in memory_efficient_attention
return memory_efficient_attention(
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\xformers\ops\fmha_init.py", line 467, in _memory_efficient_attention
return memory_efficient_attention_forward(
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\xformers\ops\fmha_init.py", line 490, in memory_efficient_attention_forward
out, * = op.apply(inp, needs_gradient=False)
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\xformers\ops\fmha\flash.py", line 677, in apply
out, softmax_lse, rng_state = cls.OPERATOR(
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\torch_ops.py", line 1116, in call
return self._op(*args, **(kwargs or {}))
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\torch_library\autograd.py", line 113, in autograd_impl
result = forward_no_grad(*args, Metadata(keyset, keyword_only_args))
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\torch_library\autograd.py", line 40, in forward_no_grad
result = op.redispatch(keyset & _C._after_autograd_keyset, *args, **kwargs)
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\torch_ops.py", line 721, in redispatch
return self._handle.redispatch_boxed(keyset, *args, **kwargs)
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\torch_library\custom_ops.py", line 324, in backend_impl
result = self._backend_fns[device_type](*args, **kwargs)
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\torch_compile.py", line 32, in inner
return disable_fn(*args, **kwargs)
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\torch_dynamo\eval_frame.py", line 632, in _fn
return fn(*args, **kwargs)
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\torch_library\custom_ops.py", line 367, in wrapped_fn
return fn(*args, **kwargs)
File "E:\pinokio\api\TRELLIS3D.git\app\env\lib\site-packages\xformers\ops\fmha\flash.py", line 139, in _flash_fwd
(
ValueError: not enough values to unpack (expected 8, got 4)
Thanks.
The text was updated successfully, but these errors were encountered: