Upload ProDiff/run_ddim.sh with huggingface_hub
Browse files- ProDiff/run_ddim.sh +24 -0
ProDiff/run_ddim.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
# Script to run training with periodic validation (DDIM-style configuration)
|
| 4 |
+
|
| 5 |
+
# --- Configuration ---
|
| 6 |
+
DEVICE_ID=7
|
| 7 |
+
EXP_NAME_BASE="tky_ddim_exp" # Base name for the experiment
|
| 8 |
+
SAMPLING_TYPE="ddim" # Influences periodic validation (if DDIM is chosen) and experiment naming
|
| 9 |
+
|
| 10 |
+
# DDIM Specific Sampling Parameters for Periodic Validation
|
| 11 |
+
DDIM_STEPS=50
|
| 12 |
+
DDIM_ETA=0.2
|
| 13 |
+
|
| 14 |
+
# --- Training with Periodic Validation ---
|
| 15 |
+
echo "Starting DDIM-Mode Training with Periodic Validation..."
|
| 16 |
+
python main.py \
|
| 17 |
+
--sampling_type ${SAMPLING_TYPE} \
|
| 18 |
+
--exp_name ${EXP_NAME_BASE} \
|
| 19 |
+
--device_id ${DEVICE_ID} \
|
| 20 |
+
--ddim_steps ${DDIM_STEPS} \
|
| 21 |
+
--ddim_eta ${DDIM_ETA}
|
| 22 |
+
# Add other training parameters as needed
|
| 23 |
+
|
| 24 |
+
echo "Training finished."
|