You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def test_pipelines():
if pipeline_text2image is None or pipeline_image2image is None or torch_generator is None:
if pipeline_text2image is None:
print("pipeline_text2image not loaded correctly.")
if pipeline_image2image is None:
print("pipeline_image2image not loaded correctly.")
if torch_generator is None:
print("torch_generator not loaded correctly.")
else:
print(f"========pipeline_image2image attributes: {dir(pipeline_image2image)}")
if hasattr(pipeline_image2image, 'unet'):
print(f"========unet attributes: {dir(pipeline_image2image.unet)}")
if hasattr(pipeline_image2image.unet, 'encoder_hid_proj'):
print(f"========encoder_hid_proj attributes: {dir(pipeline_image2image.unet.encoder_hid_proj)}")
print("Pipelines loaded successfully.")
Other Notes
I don't think this is related but before the error/exception there is this warning:
C:\Users\Ira\AppData\Roaming\Python\Python312\site-packages\transformers\models\clip\modeling_clip.py:480: UserWarning: 1Torch was not compiled with flash attention. (Triggered internally at ..\aten\src\ATen\native\transformers\cuda\sdp_utils.cpp:455.)
attn_output = torch.nn.functional.scaled_dot_product_attention(
After that is this then it stops: 'NoneType' object has no attribute 'image_projection_layers'
I tried SD1.4 with IP Adapter 1.5 and it has more attributes especially under encoder_hid_proj and didn't show the error of NoneType object has no attribute 'image_projection_layers'
Here is the full log of working one, but I wish to use SD2.1 only, not SDXL because my computer can't handle it (always memory full on just a single image generation, and can't save the image after processing for minutes).
Is this an installation problem of IP Adapter or is my code incorrect somewhere?
Where I initialized IP Adapter
Code that throwed an exception
Testing Pipelines
Code to test
Logs showed
Other Notes
I don't think this is related but before the error/exception there is this warning:
After that is this then it stops:
'NoneType' object has no attribute 'image_projection_layers'
I tried SD1.4 with IP Adapter 1.5 and it has more attributes especially under encoder_hid_proj and didn't show the error of NoneType object has no attribute 'image_projection_layers'
Here is the full log of working one, but I wish to use SD2.1 only, not SDXL because my computer can't handle it (always memory full on just a single image generation, and can't save the image after processing for minutes).
The text was updated successfully, but these errors were encountered: