diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 449bf15..0000000 --- a/LICENSE +++ /dev/null @@ -1,89 +0,0 @@ -License - -Copyright (c) 2022 - -Section I - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -The person obtaining a copy of the Software meets the Use-based restrictions -as referenced in Section II paragraph 1. - -The person obtaining a copy of the Software accepts that the Model or -Derivatives of the Model (as defined in the "CreativeML Open RAIL-M" license -accompanying this License) are subject to Section II paragraph 1. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - -Section II - -1. Use-based restrictions. The restrictions set forth in Attachment A are -considered Use-based restrictions. Therefore the person obtaining a copy of the -Software cannot use the Software for the specified restricted uses. The person -obtaining a copy of the Software may use the Software only for lawful purposes. - -2. Except as set forth herein, the authors or copyright holders claim no rights -in the results of operating the Software. The person obtaining a copy of the -Software is accountable for the results of operating the Software and its -subsequent uses. - -3. If any provision of this License is held to be invalid, illegal or -unenforceable, the remaining provisions shall be unaffected thereby and -remain valid as if such provision had not been set forth herein. - -END OF TERMS AND CONDITIONS - - - - - -Attachment A - -Use Restrictions - -The person obtaining a copy of the Software agrees not to use the Software: -- In any way that violates any applicable national, federal, state, local -or international law or regulation; -- For the purpose of exploiting, harming or attempting to exploit or harm -minors in any way; -- To generate or disseminate verifiably false information and/or content -with the purpose of harming others; -- To generate or disseminate personal identifiable information that can -be used to harm an individual; -- To defame, disparage or otherwise harass others; -- For fully automated decision making that adversely impacts an -individual’s legal rights or otherwise creates or modifies a binding, -enforceable obligation; -- For any use intended to or which has the effect of discriminating -against or harming individuals or groups based on online or offline -social behavior or known or predicted personal or personality -characteristics; -- To exploit any of the vulnerabilities of a specific group of persons -based on their age, social, physical or mental characteristics, in order -to materially distort the behavior of a person pertaining to that group -in a manner that causes or is likely to cause that person or another -person physical or psychological harm; -- For any use intended to or which has the effect of discriminating -against individuals or groups based on legally protected characteristics -or categories; -- To provide medical advice and medical results interpretation; -- To generate or disseminate information for the purpose to be used for -administration of justice, law enforcement, immigration or asylum -processes, such as predicting an individual will commit fraud/crime -commitment (e.g. by text profiling, drawing causal relationships between -assertions made in documents, indiscriminate and arbitrarily-targeted -use). diff --git a/README.md b/README.md index eacb01d..465709e 100644 --- a/README.md +++ b/README.md @@ -6,50 +6,6 @@ Run Stable Diffusion on your machine with a nice UI without any hassle! Visit the wiki for [Setup](https://github.com/AbdBarho/stable-diffusion-webui-docker/wiki/Setup) and [Usage](https://github.com/AbdBarho/stable-diffusion-webui-docker/wiki/Usage) instructions, checkout the [FAQ](https://github.com/AbdBarho/stable-diffusion-webui-docker/wiki/FAQ) page if you face any problems, or create a new issue! -## Features - -This repository provides multiple UIs for you to play around with stable diffusion: - -### [AUTOMATIC1111](https://github.com/AUTOMATIC1111/stable-diffusion-webui) - -[Full feature list here](https://github.com/AUTOMATIC1111/stable-diffusion-webui-feature-showcase), Screenshots: - -| Text to image | Image to image | Extras | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| ![](https://user-images.githubusercontent.com/24505302/189541954-46afd772-d0c8-4005-874c-e2eca40c02f2.jpg) | ![](https://user-images.githubusercontent.com/24505302/189541956-5b528de7-1b5d-479f-a1db-d3f5a53afc59.jpg) | ![](https://user-images.githubusercontent.com/24505302/189541957-cf78b352-a071-486d-8889-f26952779a61.jpg) | - -### [InvokeAI (lstein)](https://github.com/invoke-ai/InvokeAI) - -[Full feature list here](https://github.com/invoke-ai/InvokeAI#features), Screenshots: - -| Text to image | Image to image | Extras | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| ![](https://user-images.githubusercontent.com/24505302/195158552-39f58cb6-cfcc-4141-9995-a626e3760752.jpg) | ![](https://user-images.githubusercontent.com/24505302/195158553-152a0ab8-c0fd-4087-b121-4823bcd8d6b5.jpg) | ![](https://user-images.githubusercontent.com/24505302/195158548-e118206e-c519-4915-85d6-4c248eb10fc0.jpg) | - -### [Sygil (sd-webui / hlky)](https://github.com/Sygil-Dev/sygil-webui) - -[Full feature list here](https://github.com/Sygil-Dev/sygil-webui/blob/master/README.md), Screenshots: - -| Text to image | Image to image | Image Lab | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| ![](https://user-images.githubusercontent.com/24505302/189541298-f902b021-a1eb-4e4b-b2eb-b6a696a8ec80.jpg) | ![](https://user-images.githubusercontent.com/24505302/189541295-7d7f2162-2189-4e0a-abbd-703f4779e1cd.jpg) | ![](https://user-images.githubusercontent.com/24505302/189541294-aa7f7735-a973-4e17-ada0-1fe3acbb1772.jpg) | - -## Contributing - -Contributions are welcome! **Create a discussion first of what the problem is and what you want to contribute (before you implement anything)** - -## Disclaimer - -The authors of this project are not responsible for any content generated using this interface. - -This license of this software forbids you from sharing any content that violates any laws, produce any harm to a person, disseminate any personal information that would be meant for harm, spread misinformation and target vulnerable groups. For the full list of restrictions please read [the license](./LICENSE). - ## Thanks -Special thanks to everyone behind these awesome projects, without them, none of this would have been possible: - -- [AUTOMATIC1111/stable-diffusion-webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui) -- [InvokeAI](https://github.com/invoke-ai/InvokeAI) -- [Sygil-webui](https://github.com/Sygil-Dev/sygil-webui) -- [CompVis/stable-diffusion](https://github.com/CompVis/stable-diffusion) -- and many many more. +Special thanks to everyone behind these awesome projects, without them, none of this would have been possible. \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index ffa2a49..01a79df 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,13 +5,6 @@ x-base_service: &base_service - &v1 ./data:/data - &v2 ./output0:/output0 - &v3 ./output1:/output1 - deploy: - resources: - reservations: - devices: - - driver: nvidia - device_ids: ['0,1'] - capabilities: [gpu] name: webui-docker-multi-gpu @@ -29,6 +22,13 @@ services: image: sd-auto-0:33 ports: - "7860:7860" + deploy: + resources: + reservations: + devices: + - driver: nvidia + device_ids: ['0'] + capabilities: [gpu] environment: - CLI_ARGS=--allow-code --xformers --enable-insecure-extension-access --api --device-id 0 --port 7860 @@ -39,5 +39,12 @@ services: image: sd-auto-1:33 ports: - "7861:7861" + deploy: + resources: + reservations: + devices: + - driver: nvidia + device_ids: ['1'] + capabilities: [gpu] environment: - CLI_ARGS=--allow-code --xformers --enable-insecure-extension-access --api --device-id 1 --port 7861 \ No newline at end of file diff --git a/services/AUTOMATIC_0/Dockerfile b/services/AUTOMATIC_0/Dockerfile index 44ed5f7..b595ff4 100644 --- a/services/AUTOMATIC_0/Dockerfile +++ b/services/AUTOMATIC_0/Dockerfile @@ -90,4 +90,4 @@ WORKDIR ${ROOT} ENV CLI_ARGS="" EXPOSE 7860 ENTRYPOINT ["/docker/entrypoint.sh"] -CMD python3 -u webui.py --listen --port 7860 ${CLI_ARGS} +CMD python3 -u webui.py --listen --port 7860 ${CLI_ARGS} \ No newline at end of file