#!/bin/bash
# Download Boogu-Image-0.1-Base fp8 from ModelScope with checksum
M="https://modelscope.cn/models/Comfy-Org/Boogu-Image/resolve/master"
cd /home/zyw/ComfyUI/models || exit 1
LOG=/home/zyw/boogu_base_dl.log
: > $LOG
aria2c -x 4 -s 4 -k 1M --allow-overwrite=true --auto-file-renaming=false \
  --console-log-level=notice --summary-interval=20 \
  --checksum=sha-256=8171b1b591e294ee2898572145e65789bb51d4fbda826ad75f9d1590b43900fe \
  -d diffusion_models -o boogu_image_base_fp8_scaled.safetensors \
  "$M/diffusion_models/boogu_image_base_fp8_scaled.safetensors" >> $LOG 2>&1
echo "BASE_DL_DONE rc=$?"
