This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
find . -name '*.png' -type f -exec sh -c ' | |
for file do | |
touch -t $(echo "${file%.*}0900" | sed -E "s/-//g" | cut -c3-) ${file} | |
done' sh {} + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os.path | |
import modules.scripts as scripts | |
import gradio as gr | |
from modules import sd_samplers, shared | |
from modules.processing import Processed, process_images | |
class Script(scripts.Script): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Vars | |
ROOT=/workspace | |
SD_DIR=sd | |
MODEL_DIR=$ROOT/$SD_DIR/models/Stable-diffusion | |
VENV=env | |
GRADIO_AUTH=user:password123 | |
SD_REPO=https://github.com/AUTOMATIC1111/stable-diffusion-webui.git | |
# Install packages | |
apt update |