Error when Adding an artifact to a finished run
See original GitHub issuewandb version: 10.0.9 Python version: 3.6.12 OS: Win10
I’m running some evaluation on the model after the run is finished and trying to upload the results as an artifact attached to this run.
I’m creating an artifact as described in the docs:
run = wandb.Api().run('maria_koristeleva/Test/<run_id>')
artifact = wandb.Artifact(name, type=type)
artifact.add_dir(path)
run.log_artifact(artifact)
But I’m getting an error:
wandb: Adding directory to artifact (D:\GK-Pattern-Data-Gen\nn_pred_data_1000_tee_200527-14-50-42_regen_200612-16-56-43201113-17-27-49)... Done. 2.1s
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\wandb\apis\normalize.py", line 24, in wrapper
return func(*args, **kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\wandb\apis\public.py", line 1264, in log_artifact
"Only existing artifacts are accepted by this api. "
ValueError: Only existing artifacts are accepted by this api. Manually create one with `wandb artifacts put`
Is this use-case supported?
Issue Analytics
- State:
- Created 3 years ago
- Comments:15 (5 by maintainers)
Top Results From Across the Web
Error when Adding an artifact to a finished run #1491 - GitHub
So I created a new run and logged and and used the model there, now I see 2 new model versions in the...
Read more >Error when deploying an artifact in Nexus - Stack Overflow
Im' getting an error when deploying an artifact in my own repository in a Nexus server: "Failed to deploy artifacts: Could not transfer...
Read more >in W-T 4-5 I get an error in "Add an API from Exchange to the ...
in W-T 4-5 I get an error in "Add an API from Exchange to the Anypoint Studio project" section. Clicking "Finish" in Add...
Read more >Job artifacts · Pipelines · Ci · Help · GitLab
Jobs can output an archive of files and directories. This output is known as a job artifact. You can download job artifacts by...
Read more >Release artifacts and artifact sources - Azure Pipelines
A release is a collection of artifacts in your DevOps CI/CD processes. An artifact is a deployable component of your application.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yep, agreed this is confusing. We want to do the work to make this case actually work. In the mean time how does this sound?
UPD: Looking at the discussion in issue #1371, I need to create a new run, upload an artifact, and then link the artifact to the old run. But may I request a better error message for this case?? It confusing, and leads me to the un-existing function…