Commit Graph

41 Commits (0d4e6c4ece67e8375062cf39f3a8a1e83317382f)

Author SHA1 Message Date
陳鈞 58958d4637
chore(docker): adjust Dockerfile layers to improve build cache design
- Remove Docker LABEL related metadata and ARG for UID, VERSION, RELEASE from the beginning of the Dockerfile.
- Add NVIDIA environment settings to make visible devices and driver capabilities available.
- Add ARG UID back and modify user creation command accordingly.
- Make use of hard links (with `--link`) for license and code copy commands to optimize use of space.
- Reposition WORKDIR and ARG declarations for VERSION and RELEASE towards the end of the Dockerfile.
- Attach metadata labels like name, vendor, url, version, release, display name, summary, and description at the end of the Dockerfile, instead of the beginning.

Signed-off-by: 陳鈞 <jim60105@gmail.com>
2024-03-15 12:44:47 +08:00
bmaltais 3e023952df
Dev pure (#2039)
* Remove library folder, update setup_windows

* Cleanup sd-scripts files

* set sd-scripts release via file

* More cleanup

* Point to sd-scripts python files

* Fix blip captioning working directory

* Fix typo

* Fix issue with verify lora

* Improve git cloning of sd-scripts repo

* Integrate cloning in linux setup script

* Remove unnecessary folder

* Update linux setup

* Removing unnecessary code

* Fix validation issue under linux

* Update tensorboard version linux

* Updating linux requirements

* Update README

* Added submodule for sd-scripts

* Update for proper submodule handling

* Simplify submodule init

* Update comment

* Improve WSL2 LD_LIBRARY_PATH handling

* Update tensorboard handling of logging_dir

* chore(docker): update TensorFlow and TensorBoard versions

- Upgrade TensorFlow version in Dockerfile and requirements to 2.15.0.post1
- Update TensorBoard version in requirements to 2.15.2

Signed-off-by: 陳鈞 <jim60105@gmail.com>

* chore(docker): Add a mount for `sd-scripts` in the Dockerfile during pip install

- Add a mount step for `sd-scripts` in the Dockerfile during pip install.

Signed-off-by: 陳鈞 <jim60105@gmail.com>

* doc(docker): Update readme about docker

* Fix issue with TE LR

* Fix issue with TE LR

* Update sd-scripts to Feb 27 2024 commit

* Update version of bnb for windows

* Update windows setup

* Update windows setup

* Update bnb linux to match windows

* remove height:auto

* update UI

 * unify Quick Pick + custom model selection into gr.Dropdown()
 * add list_dirs(), list_files()
 * use gr.Accordion()
 * always show model + training image folder + output name + minimal default settings
 * do not show hidden files
 * clean up list_*()

* use PYTHONPATH env variable

* add "tool" classname to gr.Button() for sd-webui compatible

* update *_caption_gui.py using create_refresh_buttons()

* update Utilities->Group Images

* update Utilities->Convert model

* update dataset gui

* update Dreambooth/LoRA folders preparation

* update *lora*_gui UI using list_files(), create_refresh_button()

* more fixes for PYTHONPATH

* Minor edits to basic caption and common gui

* Optimising some code

* Fix path issue

* Fix issues with list_images_dir

* Update finetuning image folder label

* Minor updates to UI

---------

Signed-off-by: 陳鈞 <jim60105@gmail.com>
Co-authored-by: 陳鈞 <jim60105@gmail.com>
Co-authored-by: Won-Kyu Park <wkpark@gmail.com>
2024-03-09 09:30:20 -05:00
陳鈞 d7add285a5
chore(docker): Add label
Signed-off-by: 陳鈞 <jim60105@gmail.com>
2024-02-18 09:59:00 +08:00
陳鈞 543d12fcf5
chore(docker): fix dependencies for slim image
- Switch to a slim variant of the Python 3.10 Docker image for the build stage.
- Introduce a conditional installation of `pillow-simd` replacing `pillow`, specific to x86 architecture.
- Add required dependencies for `pillow-simd` installation, along with cleanup commands to remove unnecessary package lists after installation.
- Update runtime dependencies by adding `libtcl8.6` and `libtk8.6` to the final Docker image.

Signed-off-by: 陳鈞 <jim60105@gmail.com>
2024-02-18 09:59:00 +08:00
陳鈞 8330597e1a
chore(docker): Add EXPOSE ports and change final base image to python:3.10-slim
- Change the base image from `python:3.10` to `python:3.10-slim`
- Expose ports `7860` and `6006` in the Dockerfile

Signed-off-by: 陳鈞 <jim60105@gmail.com>
2024-02-18 09:59:00 +08:00
陳鈞 83bf2e0649
chore(docker): rewrite Dockerfile
Signed-off-by: 陳鈞 <jim60105@gmail.com>
2024-02-18 09:58:59 +08:00
Blanchon 9cdb6f03b8
Update Dockerfile
Mount user cache to improve build time
2023-11-30 15:32:23 +01:00
陳鈞 183bf1473a
feat: Let Tensorboard works in docker 2023-07-09 06:57:57 +08:00
Your Name 73d2f1489b Fix for docker 2023-06-24 07:58:53 -04:00
bmaltais 551eed76d2
Refactor setup (#1030)
* Refactor setup in setup folder

* More refactoring

* Remove need to run setup.sh as sudo

* Fix for unix undel python 3.8

* Create setup_common.py

* Fix windows setup

* Refining setup

---------

Co-authored-by: Your Name <you@example.com>
2023-06-21 15:09:18 -04:00
burdukow 2bcca37961 Docker working tkinter 2023-06-13 14:43:03 +05:00
Sergey Elpashev 33f05c70b0 Docker: added --headless option 2023-06-12 16:49:25 +03:00
bmaltais 797e2b4433 Update unix based system requirements file 2023-06-07 13:38:12 -04:00
Michael Nugent 26515d1a03 Set cuda version to 11.8 2023-06-06 01:09:44 -04:00
Michael Nugent 765a03ad8e Add chown -R appuser: /app to Dockerfile 2023-06-04 22:31:46 -04:00
Enes Sadık Özbek a3b129b0ad
Docker: fix xformers not working 2023-05-05 20:51:14 +03:00
Enes Sadık Özbek 71c16903b5
Docker: add cu118 extra index url 2023-05-05 19:04:36 +03:00
Enes Sadık Özbek bd31b4c0a8
Docker: add xformers 2023-05-05 18:48:01 +03:00
Enes Sadık Özbek dd1c3266d1
Docker: use --pre for torch 2.1.0 nightlies 2023-05-05 18:36:24 +03:00
Enes Sadık Özbek 308d1d5c4e
Docker: use no cache dir for xformers and pillow-simd 2023-05-05 17:56:05 +03:00
Enes Sadık Özbek cccd417ef7
Docker: fix Dockerfile syntax warning 2023-05-05 17:54:24 +03:00
Enes Sadık Özbek fefaa46a1c
Docker: compile xformers nightly 2023-05-05 17:52:12 +03:00
Enes Sadık Özbek 72d633b741
Docker: add missing xformers 2023-05-05 17:50:34 +03:00
Enes Sadık Özbek f114006974
Update Dockerfile 2023-05-05 17:37:29 +03:00
bmaltais ca83de2013 Merge branch 'master' into dev 2023-05-03 13:28:28 -04:00
Chirag Jain eb2ca440c9
Add `--no-cache-dir` to reduce image size 2023-05-03 11:21:46 +05:30
Enes Sadık Özbek f4a7104097
Docker: ignore built-in deps 2023-05-02 21:37:47 +03:00
Enes Sadık Özbek d15c8958fb
Docker: use python 3.8 packages for faster image build 2023-05-02 21:26:00 +03:00
Enes Sadık Özbek 880d8a73ac
Docker: remove useless steps 2023-05-02 20:25:33 +03:00
Enes Sadık Özbek 1f76494fc0
Install shipped torch 2023-05-02 20:22:55 +03:00
Enes Sadık Özbek c6e187456d
Docker: Fix not finding accelerate command 2023-05-02 18:38:50 +03:00
Enes Sadık Özbek 1f6bef63eb
Docker: Fix python-tk version 2023-05-02 17:58:03 +03:00
Enes Sadık Özbek 77f1e7485a
Docker: fix missing pip 2023-05-02 17:37:22 +03:00
Enes Sadık Özbek 2389dc32fc
Docker: use python 3.10 and remove venv 2023-05-02 17:23:53 +03:00
Enes Sadık Özbek cac5e12e49
Docker: use xformers 0.0.17 2023-05-01 19:47:37 +03:00
Enes Sadık Özbek 1daafcc91c
Docker: fix missing libnvinfer7 2023-05-01 18:40:21 +03:00
Enes Sadık Özbek 5f8aa9edfa
Docker: add related issue link to hotfix 2023-05-01 18:02:53 +03:00
Enes Sadık Özbek 57ea3ee598
Docker: comment out hugging face import 2023-05-01 18:02:33 +03:00
Enes Sadık Özbek c1216e8a35
Fix conflicting packages 2023-05-01 17:36:31 +03:00
Enes Sadık Özbek e4e61406a7
Docker: separate requirements.txt and depds update commands 2023-05-01 17:17:18 +03:00
Enes Sadık Özbek 82fce1166e
Add docker support 2023-05-01 16:59:44 +03:00