black-forest-labs / flux

Official inference repo for FLUX.1 models
Apache License 2.0
17.64k stars 1.25k forks source link

Added setup_flux.bat, the batch file to automate setup in Windows. #111

Open Thepathakarpit opened 3 months ago

Thepathakarpit commented 3 months ago

Automated cloning, setup and installation of dependencies, requirements and tools needed for running the project. steps:

  1. Open cmd
  2. Go to folder with setup_flux.bat with cd [path]
  3. run the batch file: setup_flux.bat And full setup will be done with just one single command. Will make it super easy for users to try the project.

Thank you. Btw really an awesome project.

timudk commented 3 months ago

thank you for the pr @Thepathakarpit ; would it be able to optionally also run the streamlit or cli demo instead of gradio? otherwise the pr lgtm

Thepathakarpit commented 3 months ago

thank you for the pr @Thepathakarpit ; would it be able to optionally also run the streamlit or cli demo instead of gradio? otherwise the pr lgtm

Thank you. I have added the options for users to choose between running Gradio, Streamlit, or CLI demo at the end of the setup process.

yumlevi commented 3 months ago

Hey, I'm getting this on setup image

Thepathakarpit commented 3 months ago

Hey, I'm getting this on setup image

Run cmd as administrator

Thepathakarpit commented 3 months ago

@timudk Please check this PR. If you want me to add something else too do let me know.

AbdullahSevin commented 3 months ago

after running the setup_flax.bat it dowloaded a ton of things, is this normal? Installing collected packages: sentencepiece, pytz, pydub, mpmath, websockets, watchdog, urllib3, tzdata, typing-extensions, tornado, tomlkit, toml, termcolor, tenacity, sympy, sniffio, smmap, six, shellingham, setuptools, semantic-version, safetensors, ruff, rpds-py, regex, pyyaml, python-multipart, pyparsing, pygments, protobuf, Pillow, packaging, orjson, numpy, networkx, narwhals, mdurl, markupsafe, kiwisolver, importlib-resources, idna, h11, fsspec, fonttools, filelock, ffmpy, einops, cycler, colorama, charset-normalizer, certifi, cachetools, blinker, attrs, annotated-types, aiofiles, tqdm, requests, referencing, PyWavelets, python-dateutil, pydantic-core, pyarrow, opencv-python, markdown-it-py, jinja2, httpcore, gitdb, fire, contourpy, click, anyio, uvicorn, torch, starlette, rich, pydeck, pydantic, pandas, matplotlib, jsonschema-specifications, huggingface-hub, httpx, gitpython, typer, torchvision, tokenizers, jsonschema, invisible-watermark, gradio-client, fastapi, transformers, gradio, altair, streamlit, flux, streamlit-keyup

Thepathakarpit commented 3 months ago

after running the setup_flax.bat it dowloaded a ton of things, is this normal? Installing collected packages: sentencepiece, pytz, pydub, mpmath, websockets, watchdog, urllib3, tzdata, typing-extensions, tornado, tomlkit, toml, termcolor, tenacity, sympy, sniffio, smmap, six, shellingham, setuptools, semantic-version, safetensors, ruff, rpds-py, regex, pyyaml, python-multipart, pyparsing, pygments, protobuf, Pillow, packaging, orjson, numpy, networkx, narwhals, mdurl, markupsafe, kiwisolver, importlib-resources, idna, h11, fsspec, fonttools, filelock, ffmpy, einops, cycler, colorama, charset-normalizer, certifi, cachetools, blinker, attrs, annotated-types, aiofiles, tqdm, requests, referencing, PyWavelets, python-dateutil, pydantic-core, pyarrow, opencv-python, markdown-it-py, jinja2, httpcore, gitdb, fire, contourpy, click, anyio, uvicorn, torch, starlette, rich, pydeck, pydantic, pandas, matplotlib, jsonschema-specifications, huggingface-hub, httpx, gitpython, typer, torchvision, tokenizers, jsonschema, invisible-watermark, gradio-client, fastapi, transformers, gradio, altair, streamlit, flux, streamlit-keyup

Yes it is normal these all are dependencies

zeekblitz commented 2 months ago

Is it possible to choose where the pytorch_model.bin is downloaded to? I don't have enough space on my C drive.

Thepathakarpit commented 2 months ago

@timudk Please review and Merge this PR or close it.

yumlevi commented 2 months ago

hey @Thepathakarpit, is the idea that this bat file lives in the main folder of the repo?, isn't that a problematic use case as you've likely cloned the repo at that point?.