mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
chore: rename Stirling-Image to ashim across entire codebase
Complete rebrand from Stirling-Image to ashim following the project move to https://github.com/ashim-hq/ashim. Changes across 117 files: - Package scope: @stirling-image/* → @ashim/* - GitHub URLs: stirling-image/stirling-image → ashim-hq/ashim - Docker Hub: stirlingimage/stirling-image → ashimhq/ashim - GitHub Pages: stirling-image.github.io → ashim-hq.github.io - All branding text: "Stirling Image" → "ashim" - Docker service/volumes/user: stirling → ashim - Database: stirling.db → ashim.db - localStorage keys: stirling-token → ashim-token - Environment variables: STIRLING_GPU → ASHIM_GPU - Python cache dirs: .cache/stirling-image → .cache/ashim - SVG filter IDs, test prefixes, and all other references
This commit is contained in:
@@ -176,7 +176,7 @@ def enhance_with_codeformer(img_array, fidelity_weight):
|
||||
|
||||
# CodeFormer selects its device during module-level init and inside
|
||||
# inference_app(). It has no device= parameter, so to respect
|
||||
# STIRLING_GPU=false we temporarily override torch.cuda.is_available
|
||||
# ASHIM_GPU=false we temporarily override torch.cuda.is_available
|
||||
# so all internal device checks see False. When use_gpu is True
|
||||
# (the common path) no override happens.
|
||||
_orig_cuda_check = torch.cuda.is_available
|
||||
|
||||
@@ -7,7 +7,7 @@ import os
|
||||
def gpu_available():
|
||||
"""Return True if a usable CUDA GPU is present at runtime."""
|
||||
# Allow explicit disable via env var (set to "false" or "0")
|
||||
override = os.environ.get("STIRLING_GPU")
|
||||
override = os.environ.get("ASHIM_GPU")
|
||||
if override is not None and override.lower() in ("0", "false", "no"):
|
||||
return False
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ def emit_progress(percent, stage):
|
||||
# For local dev, check a user-writable cache dir.
|
||||
LAMA_MODEL_DIR = os.environ.get("LAMA_MODEL_DIR", "/opt/models/lama")
|
||||
LAMA_MODEL_PATH = os.path.join(LAMA_MODEL_DIR, "lama_fp32.onnx")
|
||||
LAMA_LOCAL_CACHE = os.path.join(os.path.expanduser("~"), ".cache", "stirling-image", "lama")
|
||||
LAMA_LOCAL_CACHE = os.path.join(os.path.expanduser("~"), ".cache", "ashim", "lama")
|
||||
LAMA_LOCAL_PATH = os.path.join(LAMA_LOCAL_CACHE, "lama_fp32.onnx")
|
||||
LAMA_HF_URL = "https://huggingface.co/Carve/LaMa-ONNX/resolve/main/lama_fp32.onnx"
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ NAFNET_MODEL_PATH = os.environ.get(
|
||||
)
|
||||
|
||||
# Local cache for dev installs
|
||||
_CACHE_DIR = os.path.join(os.path.expanduser("~"), ".cache", "stirling-image", "models")
|
||||
_CACHE_DIR = os.path.join(os.path.expanduser("~"), ".cache", "ashim", "models")
|
||||
|
||||
# GitHub release URLs for auto-download
|
||||
SCUNET_URL = "https://github.com/cszn/KAIR/releases/download/v1.0/scunet_color_real_psnr.pth"
|
||||
|
||||
@@ -24,13 +24,13 @@ def emit_progress(percent, stage):
|
||||
|
||||
LAMA_MODEL_DIR = os.environ.get("LAMA_MODEL_DIR", "/opt/models/lama")
|
||||
LAMA_MODEL_PATH = os.path.join(LAMA_MODEL_DIR, "lama_fp32.onnx")
|
||||
LAMA_LOCAL_CACHE = os.path.join(os.path.expanduser("~"), ".cache", "stirling-image", "lama")
|
||||
LAMA_LOCAL_CACHE = os.path.join(os.path.expanduser("~"), ".cache", "ashim", "lama")
|
||||
LAMA_LOCAL_PATH = os.path.join(LAMA_LOCAL_CACHE, "lama_fp32.onnx")
|
||||
|
||||
CODEFORMER_MODEL_DIR = os.environ.get("CODEFORMER_MODEL_DIR", "/opt/models/codeformer")
|
||||
CODEFORMER_MODEL_PATH = os.path.join(CODEFORMER_MODEL_DIR, "codeformer.onnx")
|
||||
CODEFORMER_LOCAL_CACHE = os.path.join(
|
||||
os.path.expanduser("~"), ".cache", "stirling-image", "codeformer"
|
||||
os.path.expanduser("~"), ".cache", "ashim", "codeformer"
|
||||
)
|
||||
CODEFORMER_LOCAL_PATH = os.path.join(CODEFORMER_LOCAL_CACHE, "codeformer.onnx")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user