Merge pull request #782 from wbh1129/usrbinenv

Use proper shebangs in cli scripts
This commit is contained in:
Vladimir Mandic
2023-05-06 08:51:23 -04:00
committed by GitHub
29 changed files with 29 additions and 29 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python
# pylint: disable=no-member
"""generate batches of images from prompts and upscale them
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python
"""
sd api txt2img benchmark
"""
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python
"""
Create image grid
"""
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python
import os
import io
import pathlib
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python
import os
import gc
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python
"""
use clip to interrogate image(s)
"""
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python
"""
Extract approximating LoRA by SVD from two SD models
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python
import os
import sys
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python
# based on <https://huggingface.co/JosephusCheung/ASimilarityCalculatior>
import safetensors
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python
# based on <https://towardsdatascience.com/image-color-extraction-with-python-in-4-steps-8d9370d9216e>
import os
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python
"""
create preview images from embeddings
"""
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python
import os
import sys
import json
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python
"""
process people images
- check image resolution
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python
"""
generate prompt ideas
model from: <https://huggingface.co/FredZhang7/distilgpt2-stable-diffusion-v2>
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python
"""
use microsoft promptist to beautify prompt
- <https://huggingface.co/spaces/microsoft/Promptist>
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python
"""
helper methods that creates HTTP session with managed connection pool
provides async HTTP get/post methods and several helper methods
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python
import io
import os
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python
"""
auto-generate learn-rate
"""
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python
"""
generic helper methods
"""
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python
"""
use ffmpeg for animation processing
"""
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python
"""
Detect model type
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python
"""
Test Torch Dynamo functionality and backends
"""
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python
"""
print module versions
"""
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python
"""
Extract approximating LoRA by SVD from two SD models
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python
# pylint: disable=no-member
"""
simple implementation of training api: `/sdapi/v1/train`
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python
import os
import sys
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python
# system imports
import os
Regular → Executable
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python
import os
import transformers
+1 -1
View File
@@ -1,4 +1,4 @@
#/bin/env bash
#!/usr/bin/env bash
echo "Installing xformers"
NVCC_FLAGS="--use_fast_math"