Skip to content
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

[Bug]: Colorizer doesn't work in server mode #828

Open
hcharbonnier opened this issue Jan 15, 2025 · 0 comments
Open

[Bug]: Colorizer doesn't work in server mode #828

hcharbonnier opened this issue Jan 15, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@hcharbonnier
Copy link

hcharbonnier commented Jan 15, 2025

Issue

When making an API call like this, I get this error:

CommonColorizer.colorize() missing 1 required positional argument: 'colorization_size'

Request URL: /translate/with-form/image/stream
Payload:
image: (binary)
config:
{
   "detector":{
      "detector":"default",
      "detection_size":1536
   },
   "inpainter":{
      "inpainter":"default"
   },
   "render":{
      "direction":"auto",
      "font_size_offset":10
   },
   "colorizer":{
      "colorizer":"mc2",
      "colorization_size":576,
      "denoise_sigma":30
   },
   "translator":{
      "translator":"offline",
      "target_lang":"ENG"
   }
}

Command Line Arguments

python server/main.py --host=0.0.0.0 --port=5003 --use-gpu --verbose

Console logs

INFO:     192.168.1.104:52970 - "POST /translate/with-form/image/stream HTTP/1.1" 200 OK
[shared] Loading models
[shared] Running colorization
INFO:     127.0.0.1:48780 - "POST /execute/translate HTTP/1.1" 200 OK

Another way to repoduce the error

  • enable the colorizer manually in mangatranslation/config.py
  • launch in server mode
  • try generating a translation from the browser.
@hcharbonnier hcharbonnier added the bug Something isn't working label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant