Skip to content

Commit

Permalink
minimum tile size is dwon to 256px instead of 320
Browse files Browse the repository at this point in the history
  • Loading branch information
MaraScott committed Oct 2, 2024
1 parent b52a296 commit 2883065
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions py/nodes/UpscalerRefiner/McBoaty_v5.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def INPUT_TYPES(self):
"tile_size": ("INT", { "label": "Tile Size", "default": 512, "min": 320, "max": 4096, "step": 64}),
"feather_mask": ("INT", { "label": "Feather Mask", "default": 64, "min": 32, "max": nodes.MAX_RESOLUTION, "step": 32}),
"vae_encode": ("BOOLEAN", { "label": "VAE Encode type", "default": True, "label_on": "tiled", "label_off": "standard"}),
"tile_size_vae": ("INT", { "label": "Tile Size (VAE)", "default": 512, "min": 320, "max": 4096, "step": 64}),
"tile_size_vae": ("INT", { "label": "Tile Size (VAE)", "default": 512, "min": 256, "max": 4096, "step": 64}),

"color_match_method": (self.COLOR_MATCH_METHODS, { "label": "Color Match Method", "default": 'none'}),
"tile_prompting_active": ("BOOLEAN", { "label": "Tile prompting (with WD14 Tagger - experimental)", "default": False, "label_on": "Active", "label_off": "Inactive"}),
Expand Down Expand Up @@ -272,7 +272,7 @@ def upscale(self, image, iteration):

tiles_qty = rows_qty * cols_qty
if tiles_qty > 16384 :
msg = get_log(f"\n\n--------------------\n\n!!! Number of tiles is higher than 64 ({tiles_qty} for {self.PARAMS.cols_qty} cols and {self.PARAMS.rows_qty} rows)!!!\n\nPlease consider increasing your tile and feather sizes\n\n--------------------\n", "BLUE", "YELLOW", f"Node {self.INFO.id} - McBoaty_Upscaler_v5")
msg = get_log(f"\n\n--------------------\n\n!!! Number of tiles is higher than 16384 ({tiles_qty} for {self.PARAMS.cols_qty} cols and {self.PARAMS.rows_qty} rows)!!!\n\nPlease consider increasing your tile and feather sizes\n\n--------------------\n", "BLUE", "YELLOW", f"Node {self.INFO.id} - McBoaty_Upscaler_v5")
raise ValueError(msg)

upscaled_image = comfy_extras.nodes_upscale_model.ImageUpscaleWithModel().upscale(self.PARAMS.upscale_model, image)[0]
Expand Down Expand Up @@ -506,9 +506,9 @@ def _get_sigmas(self, sigmas_type, model, steps, denoise, scheduler, model_type)
def set_tiles_to_process(self, tiles_to_process=''):

max_tiles = len(self.OUTPUTS.grid_tiles_to_process)
max = max_tiles if max_tiles > 0 else 64
max = max_tiles if max_tiles > 0 else 16384

def is_valid_index(index, max = 64):
def is_valid_index(index, max = 16384):
return 1 <= index <= max
def to_computer_index(human_index):
return human_index - 1
Expand Down
2 changes: 1 addition & 1 deletion py/nodes/UpscalerRefiner/inc/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class Node:

INPUT_QTY = 64
INPUT_QTY = 16384

INPUT_NAMES = tuple("tile {:02d}".format(i) for i in range(0, INPUT_QTY))

Expand Down
2 changes: 1 addition & 1 deletion py/utils/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
#
###

VERSION = "5.3.3"
VERSION = "5.3.4"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "comfyui_marascott_nodes"
description = "A set of nodes including a universal bus, an Inpainting By Mask and a large Upscaler/Refiner"
version = "5.3.3"
version = "5.3.4"
license = { file = "LICENSE" }
dependencies = ["blend_modes", "numba", "color-matcher", "groq", "opencv-python"]

Expand Down

0 comments on commit 2883065

Please sign in to comment.