Merge pull request #30 from myd510/master

Replace disutils.version.LooseVersion with packaging.version.Version
This commit is contained in:
ArtemM
2025-06-21 10:02:17 +02:00
committed by GitHub
3 changed files with 30 additions and 3 deletions
+6 -1
View File
@@ -3,7 +3,12 @@ import math
import torch
import torchvision
import warnings
from distutils.version import LooseVersion
import sys
if sys.version_info >= (3, 12):
from packaging.version import Version
LooseVersion = Version
else:
from distutils.version import LooseVersion
from itertools import repeat
from torch import nn as nn
from torch.nn import functional as F
+2 -1
View File
@@ -19,7 +19,8 @@ git clone https://github.com/mav-rik/facerestore_cf.git
If running the portable windows version of ComfyUI, run embedded_install.bat
Windows users not running the portable version can run install.bat. Linux and mac users can run install.sh.
If the install fails for whatever reason, you'll need to work out how to install opencv-python yourself (you'll get a cv2 not found error otherwise)
If the install fails for whatever reason, you'll need to work out how to install opencv-python yourself (you'll get a cv2 not found error otherwise).
If you are using Python3.12 or higher version, please use `requirements_312.txt`.
+21
View File
@@ -0,0 +1,21 @@
opencv-python
numpy
torch
torchvision
addict
future
lmdb
Pillow
pyyaml
requests
scikit-image
scipy
tb-nightly
tqdm
yapf
lpips
gdown # supports downloading the large file from Google Drive
# cmake
# dlib
# conda install -c conda-forge dlib
packaging