INNER CODE UNIT · Python

print_expected_structure

runpod-workers/worker-comfyui · src/network_volume.py:132

def print_expected_structure():
    """Print the expected directory structure for the network volume."""
    print("\n    Expected directory structure:")
    print("    /runpod-volume/")
    print("    └── models/")
    print("        ├── checkpoints/    <- Put your .safetensors/.ckpt models here")
    print("        ├── loras/          <- Put your LoRA files here")
    print("        ├── vae/            <- Put your VAE files here")
    print("        ├── clip/           <- Put your CLIP models here")
    print("        ├── controlnet/     <- Put your ControlNet models here")
    print("        ├── embeddings/     <- Put your embedding files here")
    print("        └── upscale_models/ <- Put your upscale models here")


def format_size(size_bytes):
    """Format bytes into human-readable size."""
    for unit in ["B", "KB", "MB", "GB"]:
        if size_bytes < 1024:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…