File size: 321 Bytes
6559107
 
655ba4a
 
6559107
 
 
 
 
655ba4a
6559107
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import wandb

wandb.login()

run = wandb.init(
    project="barnacles", 
    job_type='upload-model'
    )

artifact = wandb.Artifact(name="sam_base", type="model")

artifact.add_file("./sam_vit_h_4b8939.pth")
artifact.add_file("./requirements.txt")
artifact.add_file("./app.py")

run.log_artifact(artifact)
run.finish()