pix2pixzero / pix2pix-zero

Zero-shot Image-to-Image Translation [SIGGRAPH 2023]
https://pix2pixzero.github.io/
MIT License
1.06k stars 78 forks source link

Execution stuck at 48/50。执行卡在48/50 #31

Open xddun opened 1 year ago

xddun commented 1 year ago

I have encountered a strange problem, always stuck at 48/50. I suspect that the version of a certain package is incorrect. Can the author provide the version of the package in the environment. 我遇到了一个奇怪的问题,总是卡在48/50。我怀疑是某个包的版本不对,作者可以给一下环境里的包的版本吗。

The following is the log, which stops every time it reaches 48/50. 下面是日志,每次运行到48/50 就停止了。

(ldm) xiedong@gpu20:/ssd/xiedong/home/InST-main/pix2pix-zero-main$ python src/inversion.py --input_image "assets/test_images/cats/cat_1.png" --results_folder "output/test_cat" text_encoder/pytorch_model.fp16.safetensors not found Fetching 20 files: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:00<00:00, 141460.51it/s] The config attributes {'scaling_factor': 0.18215} were passed to AutoencoderKL, but are not expected and will be ignored. Please verify your config.json configuration file. 96%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▎ | 48/50 [00:09<00:00, 5.09it/s]

Here is the version of my package.

下面是我的包的版本。

(ldm) xiedong@gpu20:/ssd/xiedong/home/InST-main/pix2pix-zero-main$ pip list
Package                   Version              Location
------------------------- -------------------- --------------------------------------------------------
absl-py                   1.4.0
accelerate                0.21.0
aiohttp                   3.8.5
aiosignal                 1.3.1
albumentations            1.1.0
altair                    5.0.1
aniso8601                 9.0.1
annotated-types           0.5.0
antlr4-python3-runtime    4.9.3
anyio                     3.7.1
argon2-cffi               21.3.0
argon2-cffi-bindings      21.2.0
arrow                     1.2.3
asttokens                 2.2.1
async-lru                 2.0.4
async-timeout             4.0.2
attrs                     23.1.0
autofaiss                 2.15.8
Babel                     2.12.1
backcall                  0.2.0
backports.zoneinfo        0.2.1
beautifulsoup4            4.12.2
bleach                    6.0.0
blessed                   1.20.0
blessings                 1.7
blinker                   1.6.2
blis                      0.7.10
blobfile                  2.0.2
boto3                     1.28.20
botocore                  1.31.20
braceexpand               0.1.7
cachetools                5.3.1
catalogue                 2.0.9
certifi                   2023.7.22
cffi                      1.15.1
cfgv                      3.3.1
charset-normalizer        3.2.0
clean-fid                 0.1.35
click                     8.1.6
clip                      1.0                  /ssd/xiedong/workplace/InST-main/src/clip
clip-anytorch             2.5.2
clip-retrieval            2.37.0
cmake                     3.27.0
comm                      0.1.3
confection                0.1.1
ConfigArgParse            1.7
contextlib2               21.6.0
contexttimer              0.3.3
contourpy                 1.1.0
cycler                    0.11.0
cymem                     2.0.7
Cython                    3.0.0
cython-bbox               0.1.3
dataclasses               0.6
datasets                  2.1.0
debugpy                   1.6.7
decorator                 5.1.1
decord                    0.6.0
defusedxml                0.7.1
diffusers                 0.12.0
dill                      0.3.7
discord-webhook           1.2.1
distlib                   0.3.7
docker-pycreds            0.4.0
easydict                  1.10
einops                    0.4.1
embedding-reader          1.5.1
exceptiongroup            1.1.2
executing                 1.2.0
ExifRead-nocycle          3.0.1
fairscale                 0.4.4
faiss-cpu                 1.7.4
fastjsonschema            2.18.0
filelock                  3.12.2
filterpy                  1.4.5
fire                      0.4.0
Flask                     2.3.2
Flask-Cors                3.0.10
Flask-RESTful             0.3.10
flatbuffers               23.5.26
fonttools                 4.41.1
fqdn                      1.5.1
FrEIA                     0.2
frozenlist                1.4.0
fsspec                    2022.11.0
ftfy                      6.1.1
future                    0.18.3
fvcore                    0.1.5.post20221221
gdown                     4.7.1
gitdb                     4.0.10
GitPython                 3.1.32
google-auth               2.22.0
google-auth-oauthlib      1.0.0
gpustat                   1.1
graphviz                  0.20.1
grpcio                    1.56.2
h5py                      3.9.0
huggingface-hub           0.16.4
identify                  2.5.26
idna                      3.4
imageio                   2.14.1
imageio-ffmpeg            0.4.8
img2dataset               1.41.0
importlib-metadata        6.8.0
importlib-resources       6.0.0
iopath                    0.1.10
ipykernel                 6.25.0
ipython                   8.12.2
ipython-genutils          0.2.0
ipywidgets                8.0.7
isoduration               20.11.0
itsdangerous              2.1.2
jedi                      0.19.0
Jinja2                    3.1.2
jmespath                  1.0.1
joblib                    1.3.1
json5                     0.9.14
jsonpointer               2.4
jsonschema                4.18.4
jsonschema-specifications 2023.7.1
jupyter                   1.0.0
jupyter-client            8.3.0
jupyter-console           6.6.3
jupyter-core              5.3.1
jupyter-events            0.6.3
jupyter-lsp               2.2.0
jupyter-server            2.7.0
jupyter-server-terminals  0.4.4
jupyterlab                4.0.3
jupyterlab-pygments       0.2.2
jupyterlab-server         2.24.0
jupyterlab-widgets        3.0.8
kaggle                    1.5.16
kiwisolver                1.4.4
kornia                    0.7.0
langcodes                 3.3.0
lap                       0.4.0
lazy-loader               0.3
lightning-utilities       0.9.0
lit                       16.0.6
lmdb                      1.4.1
loguru                    0.7.0
lpips                     0.1.4
lxml                      4.9.3
Markdown                  3.4.4
markdown-it-py            3.0.0
MarkupSafe                2.1.3
matplotlib                3.7.1
matplotlib-inline         0.1.6
mdurl                     0.1.2
mistune                   3.0.1
mkl-fft                   1.3.1
mkl-random                1.2.2
mkl-service               2.4.0
ml-collections            0.1.1
motmetrics                1.4.0
mpmath                    1.3.0
multidict                 6.0.4
multilingual-clip         1.0.10
multiprocess              0.70.15
munch                     4.0.0
murmurhash                1.0.9
nbclient                  0.8.0
nbconvert                 7.7.3
nbformat                  5.9.1
nest-asyncio              1.5.7
networkx                  3.1
ninja                     1.11.1
nltk                      3.8.1
nodeenv                   1.8.0
notebook                  7.0.0
notebook-shim             0.2.3
numpy                     1.22.3
nvidia-cublas-cu11        11.10.3.66
nvidia-cuda-cupti-cu11    11.7.101
nvidia-cuda-nvrtc-cu11    11.7.99
nvidia-cuda-runtime-cu11  11.7.99
nvidia-cudnn-cu11         8.5.0.96
nvidia-cufft-cu11         10.9.0.58
nvidia-curand-cu11        10.2.10.91
nvidia-cusolver-cu11      11.4.0.1
nvidia-cusparse-cu11      11.7.4.91
nvidia-ml-py              12.535.77
nvidia-ml-py3             7.352.0
nvidia-nccl-cu11          2.14.3
nvidia-nvtx-cu11          11.7.91
oauthlib                  3.2.2
omegaconf                 2.3.0
onnx                      1.8.1
onnx-simplifier           0.3.5
onnxoptimizer             0.3.13
onnxruntime               1.8.0
open-clip-torch           2.20.0
opencv-python             4.8.0.74
opencv-python-headless    4.5.5.64
opendatasets              0.1.22
overrides                 7.3.1
packaging                 23.1
pandas                    1.5.3
pandocfilters             1.5.0
parso                     0.8.3
pathtools                 0.1.2
pathy                     0.10.2
pexpect                   4.8.0
pickleshare               0.7.5
Pillow                    9.3.0
pip                       20.3.3
pkgutil-resolve-name      1.3.10
platformdirs              3.9.1
plotly                    5.15.0
portalocker               2.7.0
pre-commit                3.3.3
preshed                   3.0.8
prometheus-client         0.17.1
promise                   2.3
prompt-toolkit            3.0.39
protobuf                  3.20.3
psutil                    5.9.5
ptyprocess                0.7.0
pudb                      2019.2
pure-eval                 0.2.2
pyarrow                   7.0.0
pyasn1                    0.5.0
pyasn1-modules            0.3.0
pycocoevalcap             1.2
pycocotools               2.0.6
pycparser                 2.21
pycryptodomex             3.18.0
pydantic                  2.1.1
pydantic-core             2.4.0
pydeck                    0.8.0
pyDeprecate               0.3.2
Pygments                  2.15.1
Pympler                   1.0.1
pyparsing                 3.0.9
PySocks                   1.7.1
pyspng                    0.1.1
python-dateutil           2.8.2
python-json-logger        2.0.7
python-magic              0.4.27
python-multipart          0.0.5
python-slugify            8.0.1
pytorch-fid               0.3.0
pytorch-lightning         2.0.6
pytz                      2023.3
pytz-deprecation-shim     0.1.0.post0
PyWavelets                1.4.1
PyYAML                    5.4.1
pyzmq                     25.1.0
qtconsole                 5.4.3
QtPy                      2.3.1
qudida                    0.0.4
referencing               0.30.0
regex                     2023.6.3
requests                  2.31.0
requests-oauthlib         1.3.1
responses                 0.18.0
rfc3339-validator         0.1.4
rfc3986-validator         0.1.1
rich                      13.4.2
rpds-py                   0.9.2
rsa                       4.9
s3transfer                0.6.1
sacremoses                0.0.53
safetensors               0.3.1
salesforce-lavis          1.0.2
scikit-image              0.19.0
scikit-learn              1.3.0
scipy                     1.9.1
seaborn                   0.12.2
Send2Trash                1.8.2
sentence-transformers     2.2.2
sentencepiece             0.1.99
sentry-sdk                1.29.2
setproctitle              1.3.2
setuptools                59.5.0
shortuuid                 1.0.11
six                       1.16.0
smart-open                6.3.0
smmap                     5.0.0
sniffio                   1.3.0
soupsieve                 2.4.1
spacy                     3.6.1
spacy-legacy              3.0.12
spacy-loggers             1.0.4
srsly                     2.4.7
stack-data                0.6.2
streamlit                 1.25.0
sympy                     1.12
tabulate                  0.9.0
taming-transformers       0.0.1                /ssd/xiedong/workplace/InST-main/src/taming-transformers
tenacity                  8.2.2
tensorboard               2.13.0
tensorboard-data-server   0.7.1
tensorboard-plugin-wit    1.8.1
tensorboardX              2.6.2
termcolor                 2.3.0
terminado                 0.17.1
test-tube                 0.7.5
text-unidecode            1.3
thinc                     8.1.11
thop                      0.1.1.post2209072238
threadpoolctl             3.2.0
tifffile                  2023.7.10
timm                      0.4.12
tinycss2                  1.2.1
tokenizers                0.12.1
toml                      0.10.2
tomli                     2.0.1
toolz                     0.12.0
torch                     1.13.1+cu116
torch-fidelity            0.3.0
torchaudio                0.13.1+cu116
torchdiffeq               0.2.3
torchmetrics              1.0.2
torchsummary              1.5.1
torchvision               0.14.1+cu116
torchviz                  0.0.2
tornado                   6.3.2
tqdm                      4.65.0
traitlets                 5.9.0
transformers              4.26.1
trimesh                   3.23.0
triton                    2.0.0
typer                     0.9.0
typing-extensions         4.7.1
tzdata                    2023.3
tzlocal                   4.3.1
uri-template              1.3.0
urllib3                   1.26.16
urwid                     2.1.2
validators                0.20.0
virtualenv                20.24.2
wandb                     0.12.21
wasabi                    1.1.2
watchdog                  3.0.0
wcwidth                   0.2.6
webcolors                 1.13
webdataset                0.2.48
webencodings              0.5.1
websocket-client          1.6.1
Werkzeug                  2.3.6
wheel                     0.38.4
widgetsnbextension        4.0.8
xmltodict                 0.13.0
xxhash                    3.3.0
yacs                      0.1.8
yarl                      1.9.2
yolox                     0.1.0                /ssd/xiedong/home/InST-main/ByteTrack-main
zipp                      3.16.2
idealwhite commented 1 year ago

The README.md said that "Given an input image, we first generate text captions using BLIP and apply regularized DDIM inversion to obtain our inverted noise map."

so you actually need to install BLIP, through

pip install salesforce-lavis
66ling66 commented 8 months ago

屏幕截图 2024-02-21 223143 我也是和你卡在一样的位置,但是我是报显存不够gpu 12G显存不够推理吗? I'm also stuck in the same position as you, but I'm reporting that the video memory is not enough gpu 12G video memory is not enough to reason?

Ra1nbowxiaoyu commented 2 months ago

@xddun Hello, I am also stuck in the same place and unable to continue. Have you solved this problem? If so, could you give me some advice?