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] - Image Distortion #2

Open
kanjieater opened this issue Aug 22, 2023 · 1 comment
Open

[BUG] - Image Distortion #2

kanjieater opened this issue Aug 22, 2023 · 1 comment

Comments

@kanjieater
Copy link

kanjieater commented Aug 22, 2023

I've noticed I get image distortion occasionally (notice the signature blue bit it adds compared to the original), and I think it's Kurp thing, as I can access the image at the default komga url without any distortion. The majority of images are working, but usually about 1 page in any given chapter might do this. It does seem to do it consistently for the image even if I reload after clearing cache
image
image

port: 3030 # listen port
upstream_url: "http://localhost:8443"
upscale: true
size_threshold_enabled: true # enables content size check
size_threshold: 1000 # in KB. will not upscale if image size is bigger than specified size
size_threshold_png: 2000 # in KB. will not upscale if image size is bigger than specified size. PNG only

# return format of the upscaled image. If the original image was png then converting for example to webp
# will result in significantly smaller image size
# available options are "WebP", "Jpeg", "Png" and "Original"
return_format: WebP
upscaler: Realcugan # upscaler to use (Waifu2x or Realcugan)

waifu2x:
  # gpuid: 1 # gpu device to use (-1 = cpu). if you have single gpu then this should usually be 0
  scale: 2 # upscale ratio (1/2/4/8/16/32)
  noise: -1 # denoise level (-1/0/1/2/3)
  model: Cunet # waifu2x model (Cunet, Upconv7AnimeStyleArtRgb, Upconv7Photo)
  tile_size: 0 # tile size (>=32/0=auto)
  tta_mode: false # enable tta mode
  num_threads: 4 #  thread count used for upscaling
  models_path: "./models" # path to directory with models
realcugan:
  gpuid: 0 # gpu device to use (-1 = cpu). if you have single gpu then this should usually be 0
  scale: 2 # upscale ratio (1/2/3/4)
  noise: 0 # denoise level (-1/0/1/2/3)
  model: Se # realcugan model (Se, Pro, Nose)
  tile_size: 0 # tile size (>=32/0=auto)
  sync_gap: 3 # sync gap mode (0/1/2/3)
  tta_mode: false # enable tta mode
  num_threads: 8 #  thread count for upscaling
  models_path: "./models" # path to directory with models
@kanjieater
Copy link
Author

Well, i quickly guessed that it was sync_gap 3, which I changed to 2, and now it works fine. Not sure why this would be or what the intention of the syncgap is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant