fallback for old torch versions

This commit is contained in:
matt3o
2024-03-24 07:41:25 +01:00
parent 457d1561a1
commit 10150e4763
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -10,7 +10,10 @@ import comfy.utils
import torch.nn as nn
from PIL import Image
import torchvision.transforms.v2 as T
try:
import torchvision.transforms.v2 as T
except ImportError:
import torchvision.transforms as T
from .image_proj_models import MLPProjModel, MLPProjModelFaceId, ProjModelFaceIdPlus, Resampler, ImageProjModel
from .CrossAttentionPatch import CrossAttentionPatch
+1 -1
View File
@@ -11,7 +11,7 @@ I'm an open source advocate and I'm happy to share all my code for free but main
**I'm not expecting donations but if you are making a profit from my projects it is only fair that you give something back.** I'm talking especially to companies here, I know the struggles of being a freelancer.
Please contact me if you are interested in a sponsorship at _matt3o@gmail_ or consider a contribution via [PayPal](paypal.me/matt3o) (Matteo "matt3o" Spinelli, Firenze, IT). That will help mainining the code, adding new features and working on better documentation.
Please contact me if you are interested in a sponsorship at _matt3o@gmail_ or consider a contribution via [PayPal](https://paypal.me/matt3o) (Matteo "matt3o" Spinelli, Firenze, IT). That will help mainining the code, adding new features and working on better documentation.
And in that regard I really need to thank [Nathan Shipley](https://www.nathanshipley.com/) for his generous donation. Go check his website, he's terribly talented.