Tile super

#6
by HanLiii - opened

sd_model is not defined in tile_super.py:

out = sd_model(prompt=[prompt]*1,
image=sub_img,
control_image=sub_img,
negative_prompt=[negative_prompt]*1,
generator=generator,
width=new_width,
height=new_height,
num_inference_steps=30,
crops_coords_top_left=(W, H),
target_size=(W, H),
original_size=(W * 2, H * 2),
)

Traceback (most recent call last):
File "tile_sr.py", line 64, in
out = pipe(prompt=[prompt]*1,
File "/data/hli358/envs/controlplus/lib/python3.8/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/data/hli358/envs/controlplus/lib/python3.8/site-packages/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py", line 1197, in call
) = self.encode_prompt(
File "/data/hli358/envs/controlplus/lib/python3.8/site-packages/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py", line 349, in encode_prompt
prompt_embeds = text_encoder(text_input_ids.to(device), output_hidden_states=True)
File "/data/hli358/envs/controlplus/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/data/hli358/envs/controlplus/lib/python3.8/site-packages/transformers/models/clip/modeling_clip.py", line 806, in forward
return self.text_model(
File "/data/hli358/envs/controlplus/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/data/hli358/envs/controlplus/lib/python3.8/site-packages/transformers/models/clip/modeling_clip.py", line 711, in forward
encoder_outputs = self.encoder(
File "/data/hli358/envs/controlplus/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/data/hli358/envs/controlplus/lib/python3.8/site-packages/transformers/models/clip/modeling_clip.py", line 638, in forward
layer_outputs = encoder_layer(
File "/data/hli358/envs/controlplus/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/data/hli358/envs/controlplus/lib/python3.8/site-packages/transformers/models/clip/modeling_clip.py", line 379, in forward
hidden_states = self.layer_norm1(hidden_states)
File "/data/hli358/envs/controlplus/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/data/hli358/envs/controlplus/lib/python3.8/site-packages/torch/nn/modules/normalization.py", line 190, in forward
return F.layer_norm(
File "/data/hli358/envs/controlplus/lib/python3.8/site-packages/torch/nn/functional.py", line 2515, in layer_norm
return torch.layer_norm(input, normalized_shape, weight, bias, eps, torch.backends.cudnn.enabled)
RuntimeError: "LayerNormKernelImpl" not implemented for 'Half'

HanLiii changed discussion status to closed

Sorry to reply late, I am busy with the gpu fouding for flux. The first bug is because of the symbol I have written incorrectly, change sd_model to pipe, the second bug seems to be the diffusers version problem, you can downgrade the version to 0.0.21 or so to try it.

Sign up or log in to comment