Others

ComfyUI upscale4k with controlnet tile

файл на civitaiстраница на civitai

Very effective.

Тэги: comfyuitooltileworkflows
SHA256: 48C2586DBE4026D7E72662352530228A688CA22AB5E5F28B2EE05AA4756B565B

{DD} How to make gifs (from my Loras)

файл на civitaiстраница на civitai

About this tutorial

A lot of people asking the same questions, that's why I decided to make a general tutorial, that will work with any of my "frames" Loras. So what is it and why do you may need them, and how make gifs with them?

The frames Lora represent a bunch of frames that supposedly follow one another like a frames from video/animation. They should be somewhat coherent and consistent, that prevent the flickering, that you'll obviously get if try to split a real video into frames and then process them through img2img. My way still get flickering, but much less, and with much much more flexible results, because you can control "the base" of the image. At least that is my experience.

Setup

Model

So, for starters we will need to download any nsfw model, for example, here is my favorites:

*Basically any nsfw model should do, but sometimes it needs more or less weight of the Lora.

Loras

Then you'll need to download (or train) "frames" Lora. For example here is mine:

Character Lora

Some of my models is flexible enough to be mixed with other Loras, for example - character Loras. But because lots of people are struggling with the frames set - lastly I started to make them overfitting. Which is why it may cause artifacts if used with other Loras. If you want to use character Lora - use it after the base is done, when upscaling/finetuning the image. Just add to the prompt stuff, that will descibe your character - like hair, body type - etc.

Prompting

The frames set could be received in following order:

  1. We make "raw" image with needed frame set (2x2/3x3 for now);

  2. Finetuning with img2img;

  3. Making a gif;

  4. Profit!

"Raw" image

For example I'll use my POV bj Lora, and PerfectDeliberate model. I'll show how to use it on 2x2frame set. Here is my prompt parameters:

{Prompt:<lora:DDpovbj_1ot:0.75>

Negative prompt: 3d, sepia, painting, cartoons, sketch, (worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, (monochrome), ((grayscale)), (ugly:2.0), badhandv4, BBN, easynegative, poor quality

Steps: 25, Sampler: DPM++ 2M Karras, CFG scale: 7, Seed: 3329762245, Size: 512x512, Model hash: 6ac5833494, Model: perfectdeliberate_v20, Clip skip: 2}

!!!NO VAE!!! Some of the people had problems with vae. Don't know why. Just choose "none" in preferences.

Size have to (let me stress it out, it's not "should be" - IT'S HAVE TO) be exact 512x512 for 2x2frames set. For the 3x3frames set use 768x768 resolution - no more, no less.

Here is what I get:

For those who doesn't understood it yet - It's not 4 images it's one in 2x2frames set.

Adding details

Some of the models can be picky and refuse to give you a frame set. In that cases We will need to help it with this tags:

Here is the new prompt parametrs (negative and other parametrs are the same):

{Prompt: 1girl, (2x2frames), a series of pictures of blowjob, <lora:DDpovbj_1ot:0.75>}

Now, let's add some details about girl:

{Prompt: 1girl, (2x2frames), a series of pictures of blowjob, <lora:DDpovbj_1ot:0.75>, long ((ginger)) hair, petite, perfect face, perfect eyes, masterpiece, best quality, high quality, 4k, ray tracing}

Here is what i get:

It's not perfect - I don't like fingers, most likely it'l cause more flickering, so let's try to find a better seed with the same prompt.

I liked this one (seed 173730505):

After that, we send this image to img2img tab, and upscale it.

Finetuning and upscaling

Here are two ways to do that (there are not the only ones):

img2img

The first one - if you have enough Vram you can just process this image with higher resolution. For example with 2048x2048. But we should lower the Lora weight to prevent artifacts and lower the denoising strength, to prevent the image from falling apart.

We may use different seed, and higher denosing strength if we want more variety. But let's stick as close as we can to the raw picture.

Here is the prompt:

{Prompt: 1girl, (2x2frames), a series of pictures of blowjob, <lora:DDpovbj_1ot:0.5>, long ((ginger)) hair, petite, perfect face, perfect eyes, masterpiece, best quality, high quality, 4k, ray tracing

Negative prompt: 3d, sepia, painting, cartoons, sketch, (worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, (monochrome), ((grayscale)), (ugly:2.0), badhandv4, BBN, easynegative, poor quality

Steps: 25, Sampler: DPM++ 2M Karras, CFG scale: 7, Seed: 173730505, Size: 2048x2048, Model hash: 6ac5833494, Model: perfectdeliberate_v20, Denoising strength: 0.4, Clip skip: 2, Mask blur: 4}

Still blurry, and have morbid fingers, but I'll take it for example.

Ultimate sd upscale

If you don't have enough Vram you can use Ultimate sd upscale. This extension could be downloaded and installed through extensions tab in your automatic1111 and reload your UI.

You can find it in the sripts dropdown:

Here is the prompt:

{Prompt: 1girl, (2x2frames), a series of pictures of blowjob, <lora:DDpovbj_1ot:0.5>, long ((ginger)) hair, petite, perfect face, perfect eyes, masterpiece, best quality, high quality, 4k, ray tracing

Negative prompt: 3d, sepia, painting, cartoons, sketch, (worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, (monochrome), ((grayscale)), (ugly:2.0), badhandv4, BBN, easynegative, poor quality

Steps: 25, Sampler: DPM++ 2M Karras, CFG scale: 7, Seed: 173730505, Size: 1024x1024, Model hash: 6ac5833494, Model: perfectdeliberate_v20, Denoising strength: 0.3, Clip skip: 2, Mask blur: 4, Ultimate SD upscale upscaler: 4x-UltraSharp, Ultimate SD upscale tile_width: 512, Ultimate SD upscale tile_height: 512, Ultimate SD upscale mask_blur: 8, Ultimate SD upscale padding: 32}

Here is the result:

And finaly we are going to the Gif making.

Making a GIF

Again, there are lots of ways to do that, here is the "lazy" one.

DigitalDreamer (many thanks to him again) made a script that may help to make gifs inside AUTOMATIC1111 (it's the one that attached to that tutorial). Just place it inside the "scripts" folder and restart UI. You'll find it in the UI down bellow in "scripts" dropdown. Use 2 when you made 2x2frames, and 3 for 3x3frames. It will make a gif and put it in your outputs folder.

So let's send the last made picture to img2img, and set denoising strenth to 0.

Then we will change script "GIF creator by image slice", and set number of cut's to 2. Duration can be left untouched (for 3x3frames you may want to make it longer, because you'll get 9 pictures instead of 4).

The result will be in the attached files)

That's it)

Enjoy, and have a peacefull day and life)

Feel free to ask any questions here in comments, or in my discord channel.

Also I am making games with AI arts. They will be free in the future, but if you want to participate in making or have an early access - you can support me on patreon)

Тэги: tutorialtoolddgif
SHA256: 50218CFAF81EF1986EC38E07167B3279CC052C0BF4E428F4E87871F60FFBE4B7

Civitai shortcut

файл на civitaiстраница на civitai

* There have been changes to the rules and methods for downloading the model. You can now specify the folder to download to and set the user-defined classification item as the download item for the model.

* If you set the user-defined classification item as the download item, you cannot create subfolders. The folder for the user-defined classification item specified by the user will be created in the model type base folder (e.g. model/lora) and downloaded.

* If you select "Create Model Name Folder," a folder will be created based on the model name in the model type base folder (e.g. model/lora), and you can create a subfolder with the desired name according to the version.

* Downloaded model files can be freely moved to any desired folder. This extension only facilitates the convenience of downloading files and does not manage downloaded files. You can move them comfortably without any problems.

* Image downloads are downloaded by default to outputs/download-images, and can be set in setting->download for extension->Download Images Folder. Depending on the system, permission settings may be required.

* Since the user-defined classification item is used as the folder name, it is recommended to change difficult-to-use characters for folder creation. The "-" character will be replaced when creating the folder.

* The display type of thumbnail images can be changed. You can set it in setting->Shortcut Browser and Information Images->Gallery Thumbnail Image Style.

* When registering a shortcut, you can set the number of images to download. You can set it in setting->Shortcut Browser and Information Images->Maximum number of download images per version, and when set to 0, all images will be downloaded.

Civitai Shortcut

Stable Diffusion Webui Extension for Civitai, to download civitai shortcut and models.

Install

Stable Diffusion Webui's Extension tab, go to Install from url sub-tab. Copy this project's url into it, click install.

git clone https://github.com/sunnyark/civitai-shortcut

Install url : https://github.com/sunnyark/civitai-shortcut

Usage instructions

  1. The information in the Civitai model information tab is obtained in real-time from the Civitai website.

    Download : downloads the model for the selected version. You can choose to create specific folders for each version. The downloaded model will be automatically saved in the appropriate location, and a preview image and info will be generated together with it.

  2. The information in the Saved model information tab are composed of the information saved on the Civitai website when creating the shortcut.

    Update Model Information : updates the information of an individual shortcut to the latest information. This function only works when the site is functioning normally.

    Delete Shortcut : deletes the information of a registered shortcut.

  3. Civitai User Gallery : The Civitai User Gallery allows users to view uploaded images.

[Browser to upload]

[File to Upload]

[Multifilesto Upload]

Scan Models for Civitai - Scan and register shortcut for models without model information that are currently held.

Update Shortcut - Move the shortcut update function from the Upload tab.

Update the model information for the shortcut - Update the information of registered shortcuts with the latest information.

Scan downloaded models for shortcut registration - Register new shortcuts for downloaded models that have been deleted or have missing model information.

Features

You can save the model URL of the Civitai site for future reference and storage.

This allows you to download the model when needed and check if the model has been updated to the latest version.

The downloaded models are saved to the designated storage location.

Notice

When using Civitai Shortcut, five items will be created:

Change Log

v 1.3c

* Add "Scan and Update Models" and "Settings" tabs to the Manage tab.

* Scan and Update Models tab

Scan Models for Civitai - Scan and register shortcut for models without model information that are currently held.

Update Shortcut - Move the shortcut update function from the Upload tab.

Update the model information for the shortcut - Update the information of registered shortcuts with the latest information.

Scan downloaded models for shortcut registration - Register new shortcuts for downloaded models that have been deleted or have missing model information.

* Setting tab - Set the number of columns in the image gallery.

* The name of the model info file that records information about the model has been changed.

As a result, even models with a normal model info file may be moved to a new folder when scanning models for Civitai.

To prevent this, uncheck the "Create a model folder corresponding to the model type" option.

v 1.3a

* A new feature has been added that allows you to manage and classify items.

You can add, delete, and update classification items in the "manage" -> "classification" tab.

To add a shortcut, select the desired classification item in the center top and click on the list on the left to register the desired shortcut. When you click, the registered shortcut appears in the center of the screen, and you can remove it by clicking on the registered shortcut.

Click the "update" button to complete the registration.

In the "civitai shortcut" -> "information" tab, a "model classification" item has been added on the right side, and you can perform registration and deletion of shortcuts for the model corresponding to the desired classification item.

After modification, click the "update" button to complete the task.

* In the browsing "search" feature, you can check the items registered in the classification.

When you select a classification item from the dropdown list, the selected item appears in the list and works in conjunction with the "filter model type" and "search" features.

The "search" feature works by entering items such as tags, classification, and search keywords.

The tags, classification, and search keywords are applied with "and" operation, and each item is applied with "or" operation. Each item is separated by ",".

Although only one item can be selected from the classification dropdown list, you can enter multiple items by using the "@" prefix.

v 1.2a

* The Downloaded Model tab, which duplicated the functionality of the Saved Model Information tab, has been removed

* The application method for generating image information has been internally modified to include information from Civitai's 'information' field in addition to the image. As a result, there have been changes to the naming convention for saved images. Please update the images using 'Update Shortcut's Model Information' accordingly.

v 1.2

* A Civitai User Gallery tab has been added where users can view the information and images of the models in the gallery. If there are no images available for a particular model, the tab may appear empty. There may also be a delay in the data provided by the API.

* An "Update Downloaded Model Information" button has been added below the "Upload" button on the left-hand side. This button updates the internal information when users rename folders during Stable Diffusion operation.

* The option to download additional networks by selecting them from a list has been removed. This feature was deemed unnecessary as users can simply specify the desired folder in Settings -> Additional Networks. Personally, I use the "models/Lora" folder for this purpose.

* Users can now specify the folder name when downloading a model to an individual folder. The default format is "model name-version name", but users can input their preferred value. If a folder with the same version of the model already exists within the model's folder, that folder name will be displayed.

* Minor design changes have been made.

* Bug: There are several bugs, but when viewing the gallery images at full size, the image control and browsing controls overlap.

v 1.1c

* Measures have been taken to alleviate bottleneck issues during information loading.

* The search function now includes a #tag search feature.

Search terms are separated by commas (,) and are connected with an "or" operation within the search terms and within the tags. There is an "and" operation between the search terms and tags.

* The shortcut storage table has been changed to add the #tag search function.

Existing shortcuts require an "update shortcut model information" for tag searches.

v 1.1

* When registering a shortcut, model information and images are saved in a separate folder.

* This allows users to access model information from "Saved Model Information" Tab even if there is no connection to the Civitai site.

* "Thumbnail Update" button is removed and replaced with an "Update Shortcut's Model Information" button to keep the model information and images up to date.

* "Download images Only" button is removed from "Civitai Model Information" Tab that can be accessed live, and "Delete shortcut" button is moved to "Saved Model Information" Tab.

* "Delete shortcut" button removes the model information and images stored in sc_infos in one go.

* "Update Model Information" button is added to "Saved Model Information" Tab for individual updating of model information, in addition to "Update Shortcut's Model Information" that updates all model information.

Тэги: tool
SHA256: 7262E9CAEF9981E8372710BF34DF7AE0905F851138774DD08499424A1DEDF03A

WAS Node Suite - ComfyUI

файл на civitaiстраница на civitai

WAS Node Suite - ComfyUI - WAS#0263

ComfyUI is an advanced node based UI utilizing Stable Diffusion. It allows you to create customized workflows such as image post processing, or conversions.


Latest Version Download

Important Updates

Current Nodes:

Extra Nodes

Video Nodes

Codecs

You can use codecs that are available to your ffmpeg binaries by adding their fourcc ID (in one string), and appropriate container extension to the was_suite_config.json

Example H264 Codecs (Defaults)

    "ffmpeg_extra_codecs": {
        "avc1": ".mp4",
        "h264": ".mkv"
    }

Notes

Text Tokens

Text tokens can be used in the Save Text File and Save Image nodes. You can also add your own custom tokens with the Text Add Tokens node.

The token name can be anything excluding the : character to define your token. It can also be simple Regular Expressions.

Built-in Tokens

Other Features

Import AUTOMATIC1111 WebUI Styles

When using the latest builds of WAS Node Suite a was_suite_config.json file will be generated (if it doesn't exist). In this file you can setup a A1111 styles import.

You can set webui_styles_persistent_update to true to update the WAS Node Suite styles from WebUI every start of ComfyUI

Recommended Installation:

If you're running on Linux, or non-admin account on windows you'll want to ensure /ComfyUI/custom_nodes, was-node-suite-comfyui, and WAS_Node_Suite.py has write permissions.

Alternate Installation:

If you're running on Linux, or non-admin account on windows you'll want to ensure /ComfyUI/custom_nodes, and WAS_Node_Suite.py has write permissions.

This method will not install the resources required for Image Crop Face node, and you'll have to download the ./res/ folder yourself.

Installing on Colab

Create a new cell and add the following code, then run the cell. You may need to edit the path to your custom_nodes folder. You can also use the colab hosted here

Github Repository: https://github.com/WASasquatch/was-node-suite-comfyui

❤ Hearts and 🖼️ Reviews let me know you want moarr! :3

Тэги: animationdepth of fieldcustom nodecomfyuiwildcardsdepth mapmidasnodescustom nodesimage filterscannynoodle soup promptsnspimage combineedgesedge detectionimage stylesimage blendingtoolvideomasking
SHA256: BB2C1E66F4DC4110B6C35172DE1E181F50D7EEE53E14152BEB00DFE4D2483C6E

Tutorial for multidiffusion upscaler for automatic1111, detail to the max

файл на civitaiстраница на civitai

First i recommend reading the Part 1. It explains the extension and settings. Remember to leave some ⭐(~ ̄▽ ̄)~

I have planned to expand more on multidiffusion tutorials:

Please leave feedback and images you manage to create with the tutorial :)

⬇Updates and information below ⬇

Updates:

05/07

V1.0 of Region prompt control

05/01

V1.0 of Multidiffusion IMG2IMG Workflow

04/29

V1.2 of Multidiffusion upscaler how to use + workflow

04/25

V1.1 of Multidiffusion upscaler how to use + workflow

04/24

V1.0 of Multidiffusion upscaler how to use + workflow

multidiffusion upscaler for automatic1111

Disclaimer

This is information i have gathered experimenting with the extension. I might get something wrong and if you spot something wrong with guide, please leave comment. Any feedback is welcome.

I am not native English speaker and write such text. I can't do anything about that. :)

I am not the creator of this extension and i am not in any way related to them. They can be found from Gitgub . Please show some love for them if you have time :).

Тэги: tutorialguideupscaletiled diffusionupscalermultidiffusion
SHA256: EDF62117F51E9714AD48F5BAA839F21B59F81A33E02A93C92D71BB7E982E949E

4k Resolution Upscale (8x) + ControlNet Tile Resample: In depth with resources

файл на civitaiстраница на civitai

The zip file contains all the original images in the tutorial along with the generation data.

Requirements:

Please follow the installation instructions for each. ControlNet and the various models are easy to install.

Example Generation

Workflow:

1) txt2img

We will generate a base image of 512x512. Note, you will get a better result upscaling 512 to 4096 than you will from 256 to 2048.

Our generation data:

Abandoned truck in the forest
Negative prompt: lr, easynegative,
Steps: 32, Sampler: DPM++ 2S a Karras, CFG scale: 7, Seed: 979998160, Size: 512x512, Model hash: 7d3bdbad51, Model: aZovyaPhotoreal_v1, Clip Skip 1

Note: The two negative embeddings are not required for good results, only to recreate my example. Image Sharpener (lr) will most always provide a higher quality generated Image. EasyNegative (easynegative) will most always provide better composition.

Send to img2img as shown in the screenshot below:

2) img2img

Here you can leave everything pretty much as is. For our demo I will use a high denoising (0.75) to showcase controlnet and how well it can handle the tiling. You can go as low as 0.2, but lower than 0.35 will start to give noticeable smoothing on 4 to 8x upscales. Make sure you select your sampler of choice, mine is DPM++ 2S a Karras which is probably the best (imho) and one of the slowest.

3) ControlNet

Scroll down to the ControlNet panel, open the tab, and check the Enable checkbox. Select tile_resampler as the Preprocessor and control_v11f1e_sd15_tile as the model.

4) Ultimate SD Upscale

This is honestly the more confusing part. Assuming you have installed the script properly, scroll down to the scripts selection at the bottom, choose Ultimate SD Upscale.

Settings:

Our Generation Data:

Abandoned truck in the forest
Negative prompt: lr, easynegative,
Steps: 32, Sampler: DPM++ 2S a Karras, CFG scale: 7, Seed: 979998160, Size: 4096x4096, Model hash: 7d3bdbad51, Model: aZovyaPhotoreal_v1, Denoising strength: 0.75, Ultimate SD upscale upscaler: 4x-UltraSharp, Ultimate SD upscale tile_width: 512, Ultimate SD upscale tile_height: 512, Ultimate SD upscale mask_blur: 8, Ultimate SD upscale padding: 32, ControlNet Enabled: True, ControlNet Preprocessor: tile_resample, ControlNet Model: control_v11f1e_sd15_tile [a371b31b], ControlNet Weight: 1, ControlNet Starting Step: 0, ControlNet Ending Step: 1, ControlNet Resize Mode: Crop and Resize, ControlNet Pixel Perfect: False, ControlNet Control Mode: Balanced, ControlNet Preprocessor Parameters: "(512, 1, 64)", Clip Skip 1,

Resulting 4k image (please see gallery images for full resolution)

Resulting 2k image

Resulting 1k image

Origina 512

Notes about 8k upscale.

512 to 4096 at 512 tile will make 64 tiles. That is a lot of tiles.

When you have this many tiles it is possible that you will get ghosting. In our 4k example above you can find an "abandoned truck" hidden within various tiles. Below is a crop where two have generated.

Denoise Fix: You can reduce this with a lower denoise, but you will still have the issue. Lower denoise will decrease the effect, but also at the loss of detail (smoothing). Below is .35 denoise, you can see it is less noticeable now and also a bit smoother.

Prompt Fix: You can resolve this another way with a high denoise, and that is to simply clear your prompt. Without the prompt set it will not attempt to redraw the scene within every tile. However, the downside is that you will have considerably less details even at .75 denoise. Here you can see that the ghosting abandoned truck effect is removed entirely.

But, as I mentioned you have much less details without prompt. Here you can see the difference clearly.

4k with prompt

4k without prompt
Negative embeddings not used on example below, but you can include lr to increase details. You can also used words like sharp, detailed, etc, to help, but if you said rusty metal it would start adding rust to the trees and stuff. So you have to be thoughtful about how you modify the prompt.

Larger Tiles Fix: At 1024 tile size (16 tiles) with the prompt set and a high denoise, the problem will be reduced dramatically. The overall detail will also be better with higher tile sizes, but the problem will still persist. You can see that in the crop below it has removed one truck, but made the other more detailed. Overall the final image has probably half as many hidden trucks throughout the tiles, but they are still there. The problem is when you are on a tile that isn't a part of the subject (abandoned truck) it attempts to inject one. At this point you can paint them out, or use a combination of lower denoise and higher tile size along with prompt modification to achieve best results.

Settings Restriction

In order to render 4096 you will need to enable higher image sizes within your settings.

Settings > Saving images/grids

Width/height limit - 4096 (or 8192 if your crazy)

Maximum megapixels - 400 (not entirely sure how this is measured)

With the checkbox option enabled (save image as downscaled jpg) you can still save the image as png.

Troubleshooting:

Please ensure you have downloaded the right tile model, a version was released previously for ControlNet 1.1 that did not work and so it has been removed. If you downloaded at 1.1 release you will need to update your model. Please verify the version number of your model, this is critical.

Final notes:

I have also seen tutorials where people upscale 512 to 2048, then take the 2048 and upscale to 4096. I would not do that, and I don't think it is necessary. This will also take much much longer (three to four times as long) than to simply upscale from 512 to 4096. Technically you may get better details this way, however it is not optimal.

If you notice your image is too smoothed out you can run a final detail pass over the 4k render just as you did earlier with a high denoise but set the scale down to 1.

You may want to save various versions of the render with different settings, seams, etc and then mask them together in Photoshop (or whatever).

The zip file contains all the original images in the tutorial along with the generation data.

Тэги: tutorialguidecontrolnetupscale
SHA256: E4E77DC917CA35CF7A9CFC86E3E9A6CB8497FBD64FBAF1B3A5408F2915BEB9C1