File size: 356 Bytes
1ea7ba6
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import urllib.request
import os

url  = "https://github.com/ChaoningZhang/MobileSAM/raw/master/weights/mobile_sam.pt"
dest = "/mnt/d/SpiceNet/mobile_sam.pt"

if os.path.exists(dest):
    print(f"Already exists: {dest}")
else:
    print("Downloading MobileSAM checkpoint (~38MB)...")
    urllib.request.urlretrieve(url, dest)
    print(f"Saved to: {dest}")