Skip to content

TripoSG mesh generation fails due to missing scheduler import #392

Closed
lightningpixel/modly-triposg-extension
#4

Description

@lightningpixel

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)

Activity

  1. added
    bugSomething isn't working
    from-discordImporté automatiquement depuis un post Discord
    on Nov 1, 2026
  2. lightningpixel commented on Nov 8, 2026

    @lightningpixel
    OwnerAuthor

    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.

  3. added a commit that references this issue on Nov 8, 2026
    cf1d468
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfrom-discordImporté automatiquement depuis un post Discord

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions