add that thing to zshrc
Browse files
.zshrc
CHANGED
@@ -192,6 +192,18 @@ display_git_help() {
|
|
192 |
}
|
193 |
display_git_help
|
194 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
195 |
# Function: re (Resize SDXL LoRA)
|
196 |
# Description:
|
197 |
# This function resizes an SDXL LoRA (Low-Rank Adaptation) model using the resize_lora.py script.
|
|
|
192 |
}
|
193 |
display_git_help
|
194 |
|
195 |
+
# This function copies the sample prompts file to each dataset directory.
|
196 |
+
# It iterates through all directories in ~/datasets that start with "by_"
|
197 |
+
# and copies the kade-sample-prompts.txt file from the toolkit directory
|
198 |
+
# to a new file named sample-prompts.txt in each dataset directory.
|
199 |
+
function copy_sample_prompts() {
|
200 |
+
for dir in ~/datasets/by_*; do
|
201 |
+
if [[ -d "$dir" ]]; then
|
202 |
+
cp ~/toolkit/kade-sample-prompts.txt "$dir/sample-prompts.txt"
|
203 |
+
fi
|
204 |
+
done
|
205 |
+
}
|
206 |
+
|
207 |
# Function: re (Resize SDXL LoRA)
|
208 |
# Description:
|
209 |
# This function resizes an SDXL LoRA (Low-Rank Adaptation) model using the resize_lora.py script.
|