Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transpiler and CLIP Set Last Layer #16

Open
lingondricka2 opened this issue Jan 31, 2024 · 1 comment
Open

Transpiler and CLIP Set Last Layer #16

lingondricka2 opened this issue Jan 31, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation transpiler

Comments

@lingondricka2
Copy link
Contributor

lingondricka2 commented Jan 31, 2024

CLIP Set Last Layer is not transpiled

workflow (78).json

@Chaoses-Ib Chaoses-Ib added documentation Improvements or additions to documentation transpiler labels Jan 31, 2024
@Chaoses-Ib
Copy link
Owner

This is by design. CLIPSetLastLayer(-1) does nothing and is removed for simplicity.

Full list:

SWITCH_NODES = {
'HypernetworkLoader': [{'strength': 0}],
'CLIPSetLastLayer': [{'stop_at_clip_layer': -1}],
'ConditioningSetArea': [{'strength': 0}],
'ConditioningSetAreaPercentage': [{'strength': 0}],
'ConditioningSetMask': [{'strength': 0}],
'ControlNetApply': [{'strength': 0}],
'ControlNetApplyAdvanced': [{'strength': 0}],
'CR Apply ControlNet': [{'switch': 'Off'}, {'strength': 0}],
'CR Color Tint': [{'strength': 0}],
'CR Load LoRA': [{'switch': 'Off'}, {'strength_model': 0, 'strength_clip': 0}],
'LatentMultiply': [{'multiplier': 1}],
'TomePatchModel': [{'ratio': 0}],
'unCLIPConditioning': [{'strength': 0}],
}

MULTIPLEXER_NODES = {
'CLIPMergeSimple': ('CLIP', {
'clip1': {'ratio': 1},
'clip2': {'ratio': 0},
}),
'ConditioningAverage': ('CONDITIONING', {
'conditioning_to': {'conditioning_to_strength': 1},
'conditioning_from': {'conditioning_to_strength': 0},
}),
'CR Clip Input Switch': ('CLIP', {
'clip1': {'Input': 1},
'clip2': {'Input': 2},
}),
'CR Conditioning Input Switch': ('CONDITIONING', {
'conditioning1': {'Input': 1},
'conditioning2': {'Input': 2},
}),
'CR ControlNet Input Switch': ('CONTROL_NET', {
'control_net1': {'Input': 1},
'control_net2': {'Input': 2},
}),
'CR Image Input Switch': ('IMAGE', {
'image1': {'Input': 1},
'image2': {'Input': 2},
}),
'CR Image Input Switch (4 way)': ('IMAGE', {
'image1': {'Input': 1},
'image2': {'Input': 2},
'image3': {'Input': 3},
'image4': {'Input': 4},
}),
'CR Latent Input Switch': ('LATENT', {
'latent1': {'Input': 1},
'latent2': {'Input': 2},
}),
'CR Model Input Switch': ('MODEL', {
'model1': {'Input': 1},
'model2': {'Input': 2},
}),
'CR Pipe Switch': ('PIPE_LINE', {
'pipe1': {'Input': 1},
'pipe2': {'Input': 2},
}),
'ImageBlend': ('IMAGE', {
'image1': {'blend_mode': 'normal', 'blend_factor': 0},
'image2': {'blend_mode': 'normal', 'blend_factor': 1},
}),
'LatentBlend': ('LATENT', {
'samples1': {'blend_mode': 'normal', 'blend_factor': 1},
'samples2': {'blend_mode': 'normal', 'blend_factor': 0},
}),
'ModelMergeBlocks': ('MODEL', {
'model1': {'input': 1, 'middle': 1, 'out': 1},
'model2': {'input': 0, 'middle': 0, 'out': 0},
}),
'ModelMergeSimple': ('MODEL', {
'model1': {'ratio': 1},
'model2': {'ratio': 0},
}),
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation transpiler
Projects
None yet
Development

No branches or pull requests

2 participants