borisdayma / dalle-mini

DALL·E Mini - Generate images from a text prompt
https://www.craiyon.com
Apache License 2.0
14.69k stars 1.2k forks source link

How to install this repo on Windows 10 PC? #145

Closed zydjohnHotmail closed 2 years ago

zydjohnHotmail commented 2 years ago

Hello: I want to install the repo on my Windows 10 (Version 21H2), I have installed Python 3.9.7 (x64). I tried the following:

C:\Python>pip install git+https://github.com/borisdayma/dalle-mini.git Collecting git+https://github.com/borisdayma/dalle-mini.git Cloning https://github.com/borisdayma/dalle-mini.git to c:\users\john\appdata\local\temp\pip-req-build-4eumrdah Running command git clone --filter=blob:none --quiet https://github.com/borisdayma/dalle-mini.git 'C:\Users\John\AppData\Local\Temp\pip-req-build-4eumrdah' Resolved https://github.com/borisdayma/dalle-mini.git to commit b7b619a2ab6b9dec1812d074fbee7b5abafae158 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting ftfy Using cached ftfy-6.1.1-py3-none-any.whl (53 kB) Collecting flax Downloading flax-0.4.1-py3-none-any.whl (184 kB) ---------------------------------------- 184.1/184.1 KB 3.7 MB/s eta 0:00:00 ……

Attempting uninstall: six Found existing installation: six 1.12.0 Uninstalling six-1.12.0: Successfully uninstalled six-1.12.0 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. aim 2.7.4 requires pysqlite3, which is not installed.

botocore 1.21.41 requires urllib3<1.27,>=1.25.4, but you have urllib3 1.24.3 which is incompatible. Successfully installed dalle-mini-0.0.3 docker-pycreds-0.4.0 filelock-3.6.0 flax-0.3.3 ftfy-6.1.1 huggingface-hub-0.4.0 jax-0.3.4 msgpack-1.0.3 pathtools-0.1.2 promise-2.3 regex-2022.3.15 sacremoses-0.0.49 sentry-sdk-1.5.8 setproctitle-1.2.2 shortuuid-1.0.8 six-1.16.0 tokenizers-0.11.6 transformers-4.17.0 unidecode-1.3.4 wandb-0.12.11 yaspin-2.1.0

How I can fix this issue? What is the Python and/or other software package requirements for this repo to be installed on Windows 10? Thanks,

borisdayma commented 2 years ago

Those errors happen sometimes for me as well but everything still works fine.

zydjohnHotmail commented 2 years ago

Hello: Thanks for your reply, I have tried again, and this time, there is no error. However, I don't quite understand how to use pre-trained model to generate images. I can use Dalle mini from huggingface web site by input some words like "Flying pig". But there is no python script which can accept text input, like "Flying pig", so I can use it to generate images. Please advise! Thanks,

borisdayma commented 2 years ago

Open the notebook in tools/inference. Going to close this issue. Let me know if it does not run.