wandb / client-ng

Experimental wandb CLI and Python API - See Experimental section below.
http://wandb.com
16 stars 7 forks source link

[Bugfix] Fixes media issues #118

Closed nbardy closed 4 years ago

nbardy commented 4 years ago

I split out the bugfixes from the test PR so they can be merged sooner.

  1. Fixes an issue where a wandb.Image object could not be reused in an image array. Our seq_to_json code relies on a pattern, but if the image is already logged in a different step, its path is set to something different than expected. Now bind_to_run when be called for an object every time it's logged.

    This has the downside of uploading a file multiple times even if it is the same file, but that downside was already there with the spriting approach in cli-original. Since we want to keep the filenames out of the metadata for performance reasons this is the best we can do for now.

    When we move media to artifacts, this problem will be solved for us in a graceful way.

  2. Fixes dataframes in wandb.Table

  3. Fixes image format always being set to png for seq_to_json

coveralls commented 4 years ago

Pull Request Test Coverage Report for Build 156ea232-df9a-4a00-93ac-3dd044a2e90f


Changes Missing Coverage Covered Lines Changed/Added Lines %
wandb/data_types.py 26 28 92.86%
<!-- Total: 26 28 92.86% -->
Files with Coverage Reduction New Missed Lines %
tests/utils/mock_server.py 1 88.73%
wandb/apis/internal_runqueue.py 1 24.81%
wandb/internal/internal_api.py 1 48.09%
wandb/internal/meta.py 1 72.59%
wandb/sdk/wandb_run.py 1 68.0%
wandb/util.py 1 64.24%
tests/test_datastore.py 2 97.83%
tests/test_util.py 2 97.44%
tests/utils/notebook_client.py 2 72.22%
wandb/cli/cli.py 2 61.54%
<!-- Total: 131 -->
Totals Coverage Status
Change from base Build beca34e7-b73b-4e3f-ae33-7735194a209f: 5.0%
Covered Lines: 11246
Relevant Lines: 17589

💛 - Coveralls
nbardy commented 4 years ago

@vanpelt The test is fixed.