Giter Club home page Giter Club logo

Comments (6)

Chaoses-Ib avatar Chaoses-Ib commented on September 24, 2024

Can you upload the workflow here? I wonder where True and 50 come from.

from comfyscript.

lingondricka2 avatar lingondricka2 commented on September 24, 2024

workflow (77).json

from comfyscript.

lingondricka2 avatar lingondricka2 commented on September 24, 2024

I should have cleaned it up first, you need to remove the ToneMapNoiseWithRescaleCFG node first or set the values to 1, btw should bypassed nodes be transpiled?

from comfyscript.

Chaoses-Ib avatar Chaoses-Ib commented on September 24, 2024

Look like some node will hook DetailerForEachPipe and add two addtional optional inputs. I only have ComfyUI-Impact-Pack installed before, so I didn't find what the two addtional values are.

The bug is now fixed. You can git pull to update.

image image
"optional": {
    "detailer_hook": [
        "DETAILER_HOOK"
    ],
    "refiner_basic_pipe_opt": [
        "BASIC_PIPE"
    ],

    "inpaint_model": [
        "BOOLEAN",
        {
            "default": false,
            "label_on": "enabled",
            "label_off": "disabled"
        }
    ],
    "noise_mask_feather": [
        "INT",
        {
            "default": 0,
            "min": 0,
            "max": 100,
            "step": 1
        }
    ]
}

from comfyscript.

Chaoses-Ib avatar Chaoses-Ib commented on September 24, 2024

btw should bypassed nodes be transpiled?

Bypassed nodes are now ignored.

Before:

mage, _ = LoadImage('ComfyUI_temp_rcuxh_00001_.png')
image2 = ImageScaleToSide(image, 1024, 'Longest', 'nearest-exact', 'disabled')
image2 = ColorCorrect(image2, 0, 0, 0, -40, -40, 1)
PreviewImage(image2)
image3, _ = CRUpscaleImage(image2, '8x_NMKD-Superscale_150000_G.pth', 'rescale', 2, 1024, 'lanczos', 'true', 8)
segs = ImpactMakeTileSEGS(image3, 600, 1.5, 200, 100, 0, 'Reuse fast', None, None)
# _ = SEGSPreview(segs, True, 0.1, image3)
image4 = DepthAnythingPreprocessor(image3, 'depth_anything_vitl14.pth', 512)
PreviewImage(image4)
control_net = ControlNetLoader(r'XL\controlnet-sd-xl-1.0-depth-16bit-zoe.safetensors')
segs2 = ImpactControlNetApplySEGS(segs, control_net, 1, None, image4)
model, clip, vae = CheckpointLoaderSimple(r'XL\turbovisionxlSuperFastXLBasedOnNew_alphaV0101Bakedvae.safetensors')
model = TonemapNoiseWithRescaleCFG(model, 2, 2)
model = SelfAttentionGuidance(model, 1, 4)
lora_stack, _ = CRLoRAStack('On', r'xl\LCMTurboMix_LCM_Sampler.safetensors', 1, 1, 'On', r'xl\xl_more_art-full_v1.safetensors', 1, 1, 'On', r'xl\add-detail-xl.safetensors', 1, 1, None)
model, clip, _ = CRApplyLoRAStack(model, clip, lora_stack)
conditioning = CLIPTextEncode('Shot Size - extreme wide shot,( Marrakech market at night time:1.5), Moroccan young beautiful woman, smiling, exotic, (loose hijab:0.1)', clip)
conditioning2 = CLIPTextEncode('(worst quality, low quality, normal quality:2), blurry, depth of field, nsfw', clip)
basic_pipe = ToBasicPipe(model, clip, vae, conditioning, conditioning2)
image5, _, _, _ = DetailerForEachPipe(image3, segs2, 1024, True, 1024, 403808226377311, 10, 3, 'lcm', 'ddim_uniform', 0.1, 50, True, True, basic_pipe, '', 0, 1, None, None, True, 50)
image5 = ColorCorrect(image5, 0, 0, 0, 40, 40, 1)
SaveAsWebp(image5, 'ComfyUI', 'lossy', 80)
# _ = CannyEdgePreprocessor(image3, 100, 200, 2048)
PreviewImage(image5)
PreviewImage(image)

After:

image, _ = LoadImage('ComfyUI_temp_rcuxh_00001_.png')
image2 = ImageScaleToSide(image, 1024, 'Longest', 'nearest-exact', 'disabled')
PreviewImage(image2)
image3, _ = CRUpscaleImage(image2, '8x_NMKD-Superscale_150000_G.pth', 'rescale', 2, 1024, 'lanczos', 'true', 8)
segs = ImpactMakeTileSEGS(image3, 600, 1.5, 200, 100, 0, 'Reuse fast', None, None)
# _ = SEGSPreview(segs, True, 0.1, image3)
image4 = image3
PreviewImage(image4)
segs2 = segs
model, clip, vae = CheckpointLoaderSimple(r'XL\turbovisionxlSuperFastXLBasedOnNew_alphaV0101Bakedvae.safetensors')
lora_stack, _ = CRLoRAStack('On', r'xl\LCMTurboMix_LCM_Sampler.safetensors', 1, 1, 'On', r'xl\xl_more_art-full_v1.safetensors', 1, 1, 'On', r'xl\add-detail-xl.safetensors', 1, 1, None)
model, clip, _ = CRApplyLoRAStack(model, clip, lora_stack)
conditioning = CLIPTextEncode('Shot Size - extreme wide shot,( Marrakech market at night time:1.5), Moroccan young beautiful woman, smiling, exotic, (loose hijab:0.1)', clip)
conditioning2 = CLIPTextEncode('(worst quality, low quality, normal quality:2), blurry, depth of field, nsfw', clip)
basic_pipe = ToBasicPipe(model, clip, vae, conditioning, conditioning2)
image5, _, _, _ = DetailerForEachPipe(image3, segs2, 1024, True, 1024, 403808226377311, 10, 3, 'lcm', 'ddim_uniform', 0.1, 50, True, True, basic_pipe, '', 0, 1, None, None, True, 50)
PreviewImage(image5)
PreviewImage(image)

from comfyscript.

lingondricka2 avatar lingondricka2 commented on September 24, 2024

Thank you :)

from comfyscript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.