Skip to content

Instantly share code, notes, and snippets.

@tcapelle
Created October 5, 2023 09:20
Show Gist options
  • Save tcapelle/473f0a7d140a58e16e402eb04425fc7e to your computer and use it in GitHub Desktop.
Save tcapelle/473f0a7d140a58e16e402eb04425fc7e to your computer and use it in GitHub Desktop.
import wandb
from wandb import Api
api = Api()
ENTITY = "fastai"
PROJECT = "fine_tune_timm"
project = api.project(PROJECT, entity=ENTITY)
sweeps = project.sweeps()
sweep = sweeps[0]
sweep.id
def get_sweep_runs(sweep_id, project=PROJECT, entity=ENTITY):
sweep = api.sweep(f"{entity}/{project}/{sweep_id}")
for run in sweep.runs:
print(run.id)
get_sweep_runs(sweep.id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment