Skip to content

Instantly share code, notes, and snippets.

View akehir's full-sized avatar

Raphael Ochsenbein akehir

View GitHub Profile
@akehir
akehir / Dockerfile
Created August 26, 2024 08:59
Stable Diffusion Webui Forge with FLUX on AMD Radeon RX 7900XTX with Docker
################################################################
# sudo docker build . --tag sd-webui-forge
# sudo docker run -it --network=host --device=/dev/kfd --device=/dev/dri --group-add=video --ipc=host --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v ./models:/SD/stable-diffusion-webui-forge/models/ -v ./repositories:/SD/stable-diffusion-webui-forge/repositories/ -v ./extensions:/SD/stable-diffusion-webui-forge/extensions/ -v ./outputs:/SD/stable-diffusion-webui-forge/outputs/ sd-webui-forge
################################################################
FROM rocm/pytorch:rocm6.2_ubuntu22.04_py3.10_pytorch_release_2.3.0
## Container
RUN mkdir /SD
## UBUNTU
FROM ubuntu:jammy
## Prerequisites
RUN apt update
RUN apt upgrade -y
RUN apt install -y git curl wget python3-pip python3-venv python3-dev libstdc++-12-dev libpng-dev libjpeg-dev
RUN python3 -m pip install --upgrade pip wheel
## Add amdgpu
import { EMPTY, from, fromEvent, bindCallback } from 'rxjs';
import { debounceTime, distinctUntilChanged, filter, map, mergeMap, tap } from 'rxjs/operators';
function mapsAutocompleteCallback() {
}
function callMapsAutocomplete(term) {
// todo map to observable?
// see example : https://stackoverflow.com/questions/40480855/how-do-you-use-observable-bindcallback
/* prod */
TRUNCATE TABLE [SIX_SOC_Calculator].[dbo].[Options];
DELETE FROM [SIX_SOC_Calculator].[dbo].[Settings]
DBCC CHECKIDENT ('SIX_SOC_Calculator.dbo.Products',RESEED, 0);
DELETE FROM [SIX_SOC_Calculator].[dbo].[Products]
DBCC CHECKIDENT ('SIX_SOC_Calculator.dbo.Settings',RESEED, 0);
/* dev */
{
"swagger": "2.0",
"info": {
"description": "_Api Documentation_ | Description",
"version": "1.0",
"title": "=Api Documentation= | Title",
"termsOfService": "urn:tos",
"contact": {},
"license": {
"name": "Apache 2.0",
<div class="pagesection__full-width">
<h2>Gratis Probetraining</h2>
<p>Probiere es einfach aus</p>
</div>
</div>