Skip to content

Trellis2 GGUF not installing properly #269

Description

@Bazmundi

Which official extension?

Trellis2 GGUF from Modly page

Describe the bug

Seems aking to #129

But there's been multiple stabs at fixing #129 and that is aqainst an older version of modly

Seems the extension is missing cumesh module.

Steps to reproduce

  1. copy basic workflow https://github.com/lightningpixel/modly-trellis2-gguf-extension#basic-workflow
  2. From Generate page I get the error attached.
  3. Per descructions in the error log I try the "Click Repair", the repair "runs" to finish but there is not progress reported.
  4. Try generating again but get the error again.

Modly version

0.4.1

Operating system

Ubuntu

GPU

RTX4080

Screenshots & logs

Error: Traceback (most recent call last):
File "/tmp/.mount_Modly-cISyU3/resources/api/routers/generation.py", line 154, in _run_generation
gen = await loop.run_in_executor(None, generator_registry.get_active)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/asterion/.config/Modly/python-embed/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/.mount_Modly-cISyU3/resources/api/services/generator_registry.py", line 253, in get_active
gen.load()
File "/tmp/.mount_Modly-cISyU3/resources/api/services/extension_process.py", line 263, in load
raise RuntimeError(msg.get("traceback") or msg.get("message"))
RuntimeError: Traceback (most recent call last):
File "/home/asterion/Documents/Modly/extensions/trellis2/generator.py", line 1338, in _ensure_trellis2_gguf
from trellis2_gguf.pipelines import Trellis2ImageTo3DPipeline # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/asterion/Documents/Modly/extensions/trellis2/venv/lib/python3.11/site-packages/trellis2_gguf/pipelines/init.py", line 16, in getattr
module = importlib.import_module(f".{module_name}", name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/.mount_Modly-cISyU3/resources/python-embed/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/asterion/Documents/Modly/extensions/trellis2/venv/lib/python3.11/site-packages/trellis2_gguf/pipelines/trellis2_image_to_3d.py", line 10, in
from ..representations import Mesh, MeshWithVoxel
File "/home/asterion/Documents/Modly/extensions/trellis2/venv/lib/python3.11/site-packages/trellis2_gguf/representations/init.py", line 18, in getattr
module = importlib.import_module(f".{module_name}", name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/.mount_Modly-cISyU3/resources/python-embed/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/asterion/Documents/Modly/extensions/trellis2/venv/lib/python3.11/site-packages/trellis2_gguf/representations/mesh/init.py", line 1, in
from .base import Mesh, MeshWithVoxel, MeshWithPbrMaterial, TextureFilterMode, TextureWrapMode, AlphaMode, PbrMaterial, Texture
File "/home/asterion/Documents/Modly/extensions/trellis2/venv/lib/python3.11/site-packages/trellis2_gguf/representations/mesh/base.py", line 4, in
import cumesh
ModuleNotFoundError: No module named 'cumesh'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/tmp/.mount_Modly-cISyU3/resources/api/runner.py", line 153, in main
gen.load()
File "/home/asterion/Documents/Modly/extensions/trellis2/generator.py", line 160, in load
self._ensure_trellis2_gguf()
File "/home/asterion/Documents/Modly/extensions/trellis2/generator.py", line 1340, in _ensure_trellis2_gguf
raise RuntimeError(
RuntimeError: [Trellis2GGUFGenerator] trellis2_gguf not found. Click Repair on the Models page to re-run setup.py.

Confirmation

  • I have searched existing issues and this has not been reported yet.
  • I can reproduce this on the latest version of Modly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions