mirror of
https://github.com/Anon-Planet/thgtoa.git
synced 2026-08-04 18:15:03 +02:00
chore(build): 02-sign.yml did not create the repo dir
Do a quick mkdir -p repo/export before copying files to the dir Signed-off-by: nopeitsnothing <no@anonymousplanet.net>
This commit is contained in:
@@ -118,7 +118,9 @@ jobs:
|
||||
path: repo
|
||||
|
||||
- name: 📂 Copy export files into repo
|
||||
run: cp -v export/* repo/export/
|
||||
run: |
|
||||
mkdir -p repo/export
|
||||
cp -v export/* repo/export/
|
||||
|
||||
- name: 🔏 Configure GPG commit signing
|
||||
env:
|
||||
|
||||
+4
-1
@@ -82,7 +82,10 @@ def apply_dark_theme(
|
||||
# Saturation (HSV model, vectorised)
|
||||
ch_min = np.min(norm, axis=2)
|
||||
ch_max = np.max(norm, axis=2)
|
||||
sat = np.where(ch_max > 0.001, (ch_max - ch_min) / ch_max, 0.0).astype(np.float32)
|
||||
# Suppress the numpy divide error, idc
|
||||
# division happens on all elements including the zero ones
|
||||
with np.errstate(divide='ignore', invalid='ignore'):
|
||||
sat = np.where(ch_max > 0.001, (ch_max - ch_min) / ch_max, 0.0).astype(np.float32)
|
||||
|
||||
# --- Masks ---
|
||||
# High-saturation = image/photo content — leave untouched
|
||||
|
||||
Reference in New Issue
Block a user