diff --git a/README.md b/README.md index e8c9000..6150fbb 100644 --- a/README.md +++ b/README.md @@ -99,9 +99,11 @@ Enable "resize to target size" and set it to a preferred resolution for your mod If you mask an area and you can still see the original image through the rendered image, it is **very likely** that your mask is not fully opaque. Even if it looks fully opaque - the human brain cannot tell a difference between many shades of grey. Please make sure that the mask is 100% opaque, e.g. take a screenshot, check pixel values for 255, 255, 255 or #FFFFFF. If you use mask fill holes, check that the entire boundary is 255, 255, 255 or #FFFFFF e.g. with the fuzzy select tool in Gimp with threshold 0. -If you are running out of memory (likely you're processing very large videos), switch from GPU to CPU mode in the crop node - this will make both crop and stitch use CPU and RAM instead of VRAM. +If the node is a bottleneck in your workflow (e.g. video inpainting), consider switching from CPU to GPU mode in the crop node, this will make both crop and stitch use GPU and VRAM instead of CPU and RAM, which will be 30x-100x faster - however, the inputs must fit in memory. # Changelog +## 2026-05-25 +- Switched device default to CPU for compatibility. ## 2026-01-09 - Huge performance improvement of 30x-100x by adding GPU support (new default is GPU, CPU is available as an option for fallback). - Clean up: Removed the long-deprecated old versions. diff --git a/inpaint_cropandstitch.py b/inpaint_cropandstitch.py index cbc1ede..22fbe7f 100644 --- a/inpaint_cropandstitch.py +++ b/inpaint_cropandstitch.py @@ -1190,7 +1190,7 @@ class InpaintCropImproved: "output_padding": (["0", "8", "16", "32", "64", "128", "256", "512"], {"default": "32"}), # Device Mode - "device_mode": (["cpu (compatible)", "gpu (much faster)"], {"default": "gpu (much faster)"}), + "device_mode": (["cpu (compatible)", "gpu (much faster)"], {"default": "cpu (compatible)"}), }, "optional": { # Optional inputs diff --git a/pyproject.toml b/pyproject.toml index 36221a9..cdf03fe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-inpaint-cropandstitch" description = "The '✂️ Inpaint Crop' and '✂️ Inpaint Stitch' nodes enable inpainting only on masked area very easily: crop the image around the masked area with the Crop node, then use any standard workflow for sampling, then connect the sampled image to the Stitch node, which will put it back in place in the original image. These nodes enable faster sampling of smaller areas and take care of downsampling and upsampling to fit specific model and resource needs." -version = "3.0.11" +version = "3.0.12" license = { file = "LICENSE" } [project.urls]