fairtalking-second-work / scripts /check_m_group_status.sh
huahua123313's picture
Add files using upload-large-folder tool
07001d0 verified
Raw
History Blame Contribute Delete
1.66 kB
#!/usr/bin/env bash
# Check completion status of M group ablation variants
set -euo pipefail
cd "$(dirname "$0")/.."
# All M group variants
ALL_M_VARIANTS="M1_video_only M2_audio_only M3_intra_modal M4_noise_target M5_shuffle_pair M6_drop_audio_infer M7_drop_video_infer"
echo "============================================================"
echo "[ablation-diffusion] M Group Completion Status Check"
echo "============================================================"
completed_count=0
remaining_count=0
echo ""
echo "Completed M group variants:"
for variant in $ALL_M_VARIANTS; do
# Check if diffusion version exists
if ls outputs/cta_ablation_diffusion_${variant}_* 1> /dev/null 2>&1; then
echo " ✅ $variant"
completed_count=$((completed_count + 1))
fi
done
echo ""
echo "Remaining M group variants:"
for variant in $ALL_M_VARIANTS; do
# Check if diffusion version does NOT exist
if ! ls outputs/cta_ablation_diffusion_${variant}_* 1> /dev/null 2>&1; then
echo " ❌ $variant"
remaining_count=$((remaining_count + 1))
fi
done
echo ""
echo "============================================================"
echo "Summary:"
echo " Total M variants: $(echo $ALL_M_VARIANTS | wc -w)"
echo " Completed: $completed_count"
echo " Remaining: $remaining_count"
echo ""
if [ $remaining_count -eq 0 ]; then
echo "🎉 All M group experiments are completed!"
echo "You can run: bash scripts/batch_test_cta_ablation_diffusion.sh"
else
echo "To run remaining experiments:"
echo " bash scripts/run_remaining_m_group.sh"
fi
echo "============================================================"