modly icon indicating copy to clipboard operation
modly copied to clipboard

TripoSG mesh generation fails due to missing scheduler import

Open lightningpixel opened this issue 1 month ago • 1 comments

Description

Mesh generation fails in TripoSG because Diffusers cannot load triposg.schedulers.scheduling_rectified_flow. The reporter found that adding an explicit import in extensions/triposg/generator.py during load resolves the issue.

Steps to Reproduce

  1. Use Modly 0.4.3 on Windows 11.
  2. Attempt to generate a mesh with TripoSG.
  3. Check the logs.
  4. Observe the error:
    ValueError: triposg.schedulers.scheduling_rectified_flow
    is not one of the libraries Diffusers can load components from
    

Expected Behavior

Mesh generation should complete successfully without requiring a manual code change.

Actual Behavior

Mesh generation fails with a Diffusers ValueError about triposg.schedulers.scheduling_rectified_flow not being a loadable library. Adding import triposg.schedulers.scheduling_rectified_flow in extensions/triposg/generator.py before importing TripoSGPipeline works around the issue.

Environment

  • Application: Modly 0.4.3
  • OS: Windows 11

Automatically imported from Discord.

Discord: https://discord.com/channels/1476254551991386279/1566498909453418677 (by zer0_at)

lightningpixel avatar Nov 01 '26 17:11 lightningpixel

Fixed in lightningpixel/modly-triposg-extension#4.

Cause: the extension only sets a floor on diffusers (>=0.31.0), so fresh installs now get diffusers 0.42. That version no longer imports a custom module named in model_index.json; the module has to be imported already. The TripoSG pipeline imported the transformer and the VAE, but not the scheduler.

Fix: the generator now imports triposg.schedulers.scheduling_rectified_flow before loading the pipeline, as the reporter suggested. The extension version goes to 1.0.2 so existing installs pick it up. Verified with diffusers 0.42.1 (it fails without the fix and loads with it) and 0.37.1.

Once the PR is merged, update or repair the TripoSG extension from the Models page to get the fix.

lightningpixel avatar Nov 08 '26 09:11 lightningpixel