sylym / comfy_vid2vid

Apache License 2.0
69 stars 12 forks source link

Couple Tweaks Needed #17

Open BuildBackBuehler opened 1 year ago

BuildBackBuehler commented 1 year ago

Just downloaded this for the first time today, so my b if its just an issue on my end/using an unsupported diffusers version.

In Models/Attention.py & Unet.py...

from diffusers.modeling_utils should now be:

from diffusers.models.modeling_utils

In c_vid2vid's sd.py, to mirror the referenced sd.py file (at least in the latest comfyui):

Lines 2&3 should be:

from comfy import model_management, model_patcher from comfy.sd import load_model_weights, VAE, CLIP, load_lora_for_models

– Might be wrong about the latter tweak, but I received an error if I went a sub-ref below to get "ModelPatcher, model_lora_keys_unet, model_lora_keys_clip" from sd.py

BuildBackBuehler commented 1 year ago

Also needed to fix models/attention.py, line 14 to:

diffusers.models.attention import Attention as CrossAttention, FeedForward, AdaLayerNorm