Skip to content

Commit

Permalink
add description for memory limit to upscaling node
Browse files Browse the repository at this point in the history
  • Loading branch information
stonerl committed Aug 21, 2023
1 parent 3c9cd9a commit 8a3b0b7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,9 @@ def estimate_cpu():
name="Upscale Image",
description=(
"Upscale an image with NCNN. Unlike PyTorch, NCNN has GPU support on all"
" devices, assuming your drivers support Vulkan. Select a manual"
" number of tiles if you are having issues with the automatic mode."
" devices, assuming your drivers support Vulkan. Select a lower memory limit or"
" manually adjust the number of tiles if you are experiencing issues with the"
" automatic mode."
),
icon="NCNN",
inputs=[
Expand All @@ -170,9 +171,10 @@ def estimate_cpu():
"Generally it's recommended to use the largest tile size possible for best"
" performance (with the ideal scenario being no tiling at all), but"
" depending on the model and image size, this may not be possible.",
"If you are having issues with the automatic mode, you can manually select"
" a tile size. On certain machines, a very small tile size such as 256 or"
" 128 might be required for it to work at all.",
"If you are having issues with the automatic mode, you can either set a"
" lower memory limit or manually select a tile size. On certain machines, a"
" very small tile size such as 256 or 128 might be required for it to work"
" at all.",
),
],
outputs=[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,9 @@ def estimate():
schema_id="chainner:pytorch:upscale_image",
name="Upscale Image",
description=(
"Upscales an image using a PyTorch Super-Resolution model. Select a manual"
" number of tiles if you are having issues with the automatic mode."
"Upscales an image using a PyTorch Super-Resolution model. Select a lower"
" memory limit or manually adjust the number of tiles if you are experiencing"
" issues with the automatic mode."
),
icon="PyTorch",
inputs=[
Expand All @@ -124,9 +125,10 @@ def estimate():
"Generally it's recommended to use the largest tile size possible for"
" best performance (with the ideal scenario being no tiling at all),"
" but depending on the model and image size, this may not be possible.",
"If you are having issues with the automatic mode, you can manually"
" select a tile size. Sometimes, a manually selected tile size may be"
" faster than what the automatic mode picks.",
"If you are having issues with the automatic mode, you can either"
" select a lower memory limit or manually select a tile size."
" Sometimes, a manually selected tile size may be faster than what the"
" automatic mode picks.",
hint=True,
)
),
Expand Down

0 comments on commit 8a3b0b7

Please sign in to comment.