Skip to content
This repository was archived by the owner on Aug 13, 2025. It is now read-only.
This repository was archived by the owner on Aug 13, 2025. It is now read-only.

[BUG] Cannot load lama model when combined with Sanster/AnyText #631

@writingdeveloper

Description

@writingdeveloper

I tried using both lama and Sanster/AnyText in the --model option.

Describe the bug
When I include both --model lama and --model Sanster/AnyText in the startup command, only Sanster/AnyText is loaded properly. The lama model does not appear to be loaded or selectable from the UI.
However, if I only use --model lama alone, it works as expected.
Is it not possible to load both an erase model and an inpainting model together? Or is there a different way to enable both functionalities?

I used this command.

iopaint start \
  --model lama \
  --model Sanster/AnyText \
  --device=cuda \
  --port=9999 \
  --host=0.0.0.0 \
  --enable-interactive-seg \
  --interactive-seg-model=sam2_base \
  --interactive-seg-device=cuda \
  --enable-gfpgan \
  --gfpgan-device=cuda \
  --enable-realesrgan \
  --realesrgan-model=RealESRGAN_x4plus \
  --realesrgan-device=cuda \
  --enable-remove-bg \
  --remove-bg-device=cuda \
  --remove-bg-model=briaai/RMBG-2.0 \
  --enable-restoreformer \
  --restoreformer-device=cuda

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