diff --git a/artifact_comfyui_download.sh b/artifact_comfyui_download.sh index 401d3f2..a1fa8e6 100755 --- a/artifact_comfyui_download.sh +++ b/artifact_comfyui_download.sh @@ -407,7 +407,6 @@ link_model() { local model_type="$2" local filename_filter="$3" - echo "DEBUG: link_model called for $repo_id (type: $model_type, filter: $filename_filter)" >&2 print_detail "Linking to: ${CYAN}${COMFYUI_DIR}/${model_type}/${RESET}" # Create ComfyUI subdirectory if it doesn't exist @@ -418,10 +417,8 @@ link_model() { fi # Find model files in cache - echo "DEBUG: Calling find_model_files..." >&2 local model_files model_files=$(find_model_files "$repo_id" "$filename_filter") - echo "DEBUG: find_model_files returned: $(echo \"$model_files\" | wc -l) files" >&2 if [[ -z "$model_files" ]]; then print_warning "No model files found in cache for ${repo_id}" @@ -463,42 +460,33 @@ process_category() { local category="$1" local category_display="$2" - echo "DEBUG: process_category called for: $category" >&2 print_section "${category_display}" # Get models for this category - echo "DEBUG: Calling parse_yaml for category: $category" >&2 local models_data models_data=$(parse_yaml "$CONFIG_FILE" "$category") - echo "DEBUG: parse_yaml returned, models_data length: ${#models_data}" >&2 if [[ -z "$models_data" ]]; then print_warning "No models found in category: ${category}" return 0 fi - echo "DEBUG: Counting models..." >&2 local total_models total_models=$(echo "$models_data" | wc -l) - echo "DEBUG: Total models: $total_models" >&2 local current=0 local succeeded=0 local failed=0 - echo "DEBUG: About to enter while loop, models_data first line: $(echo \"$models_data\" | head -n1)" >&2 while IFS='|' read -r repo_id description size_gb essential model_type filename; do - echo "DEBUG: Entered while loop iteration" >&2 current=$((current+1)) - echo "" >&2 - echo "DEBUG: Processing model $current/$total_models: $repo_id (type: $model_type)" >&2 + echo "" print_step "$current" "$total_models" "${BOLD_MAGENTA}${description}${RESET}" local success=true # Download if command is 'download' or 'both' if [[ "$COMMAND" == "download" ]] || [[ "$COMMAND" == "both" ]]; then - echo "DEBUG: Downloading $repo_id" >&2 if ! download_model "$repo_id" "$description" "$size_gb"; then success=false fi @@ -507,7 +495,6 @@ process_category() { # Link if command is 'link' or 'both' if [[ "$COMMAND" == "link" ]] || [[ "$COMMAND" == "both" ]]; then if $success; then - echo "DEBUG: Linking $repo_id to $model_type" >&2 if ! link_model "$repo_id" "$model_type" "$filename"; then success=false fi