Spaces:
Running
Running
File size: 576 Bytes
bed938d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
#!/bin/bash
echo "🚀 Downloading brain tumor segmentation models..."
# Create models directory
mkdir -p models
# Option 1: MONAI BraTS model (recommended)
curl -L -o models/monai_brats_model.pth \
"https://catalog.ngc.nvidia.com/api/v1/models/nvidia/monaitoolkit/monai_brats_mri_segmentation/files/models/model.ts"
# Option 2: Attention U-Net from HuggingFace
curl -L -o models/attention_unet.atommic \
"https://huggingface.co/wdika/SEG_UNet3D_BraTS2023AdultGlioma/resolve/main/SEG_UNet3D_BraTS2023AdultGlioma.atommic"
echo "✅ Models downloaded successfully!"
|