메인 콘텐츠로 건너뛰기
artifact의 description, metadata, alias를 업데이트하려면 원하는 값을 지정하세요. W&B Public API(wandb.Api)를 사용해 이전에 W&B에 로깅된 run을 업데이트하세요. artifact가 처음 초기화된 후 아직 활성 상태라면 wandb.Run.save()를 사용해 업데이트하세요.
Artifact.save() 또는 wandb.Run.log_artifact()를 사용해야 하는 경우
  • 새 run을 만들지 않고 기존 artifact를 업데이트하려면 Artifact.save()를 사용하세요.
  • 새 artifact를 만들고 특정 run에 연결하려면 wandb.Run.log_artifact()를 사용하세요.
artifact를 업데이트하려면 W&B Public API(wandb.Api)를 사용하세요. run이 활성 상태인 동안에는 wandb.Artifact(wandb.Artifact) Class를 사용하세요.
Model Registry의 모델에 연결된 artifact의 alias는 업데이트할 수 없습니다.
다음 코드 예제는 wandb.Artifact API를 사용해 artifact의 설명을 업데이트하는 방법을 보여줍니다:
import wandb

with wandb.init(project="<example>") as run:
    artifact = run.use_artifact("<artifact-name>:<alias>")
    artifact.description = "<description>"
    artifact.save()