diff --git a/meme.py b/meme.py index 60daf17..a241f94 100644 --- a/meme.py +++ b/meme.py @@ -1,19 +1,10 @@ import json +import os import os.path as osp import random - -import numpy as np -import cv2 import sys - -from PIL import Image import subprocess - -import torch -from einops import rearrange - import importlib.metadata -import folder_paths cur_dir = osp.dirname(osp.abspath(__file__)) @@ -31,7 +22,19 @@ print("missing pkgs", missing_params) if missing: python = sys.executable - subprocess.check_call([python, '-m', 'pip', 'install', missing_params], stdout=subprocess.DEVNULL) + os.system(f'{sys.executable} -m pip install {missing_params}') + # subprocess.check_call([python, '-m', 'pip', 'install', missing_params], stdout=subprocess.DEVNULL) + +import numpy as np +import cv2 + +from PIL import Image + +import torch +from einops import rearrange + +import folder_paths + from .hellomeme.utils import (get_drive_expression, get_drive_expression_pd_fgc, diff --git a/pyproject.toml b/pyproject.toml index f49a774..01dcd24 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui_hellomeme" description = "This repository is the official implementation of the [a/HelloMeme](https://arxiv.org/pdf/2410.22901) ComfyUI interface" -version = "1.1.2" +version = "1.1.3" license = {file = "LICENSE"} [project.urls]