메인 콘텐츠로 건너뛰기
아티팩트의 description, metadata, alias를 원하는 값으로 설정하십시오. save() 메서드를 호출하여 W&B 서버의 아티팩트를 업데이트합니다. 아티팩트는 W&B 실행 중이거나 실행 외부에서 모두 업데이트할 수 있습니다.
Artifact.save()와 wandb.Run.log_artifact()를 언제 사용할지
  • 새로운 실행을 생성하지 않고 기존 아티팩트를 업데이트하려면 Artifact.save()를 사용하십시오.
  • 새로운 아티팩트를 생성하고 특정 실행과 연결하려면 wandb.Run.log_artifact()를 사용하십시오.
실행 외부에서 아티팩트를 업데이트하려면 W&B Public API(wandb.Api)를 사용하십시오. 실행 중에 아티팩트를 업데이트하려면 Artifact API(wandb.Artifact)를 사용하십시오.
Model Registry의 모델에 연결된 아티팩트의 alias는 업데이트할 수 없습니다.
다음 코드 예제는 wandb.Artifact API를 사용하여 아티팩트의 description을 업데이트하는 방법을 보여줍니다:
import wandb

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