wandb 0.19.2__py3-none-macosx_11_0_x86_64.whl → 0.19.4rc1__py3-none-macosx_11_0_x86_64.whl
Sign up to get free protection for your applications and to get access to all the features.
- wandb/__init__.py +1 -1
- wandb/__init__.pyi +13 -3
- wandb/bin/wandb-core +0 -0
- wandb/integration/metaflow/metaflow.py +7 -9
- wandb/sdk/interface/interface.py +2 -8
- wandb/sdk/internal/tb_watcher.py +3 -1
- wandb/sdk/wandb_init.py +395 -238
- wandb/sdk/wandb_run.py +11 -19
- wandb/sdk/wandb_settings.py +2 -27
- {wandb-0.19.2.dist-info → wandb-0.19.4rc1.dist-info}/METADATA +1 -1
- {wandb-0.19.2.dist-info → wandb-0.19.4rc1.dist-info}/RECORD +14 -14
- {wandb-0.19.2.dist-info → wandb-0.19.4rc1.dist-info}/WHEEL +0 -0
- {wandb-0.19.2.dist-info → wandb-0.19.4rc1.dist-info}/entry_points.txt +0 -0
- {wandb-0.19.2.dist-info → wandb-0.19.4rc1.dist-info}/licenses/LICENSE +0 -0
wandb/__init__.py
CHANGED
wandb/__init__.pyi
CHANGED
@@ -103,7 +103,7 @@ if TYPE_CHECKING:
|
|
103
103
|
import wandb
|
104
104
|
from wandb.plot import CustomChart
|
105
105
|
|
106
|
-
__version__: str = "0.19.
|
106
|
+
__version__: str = "0.19.4rc1"
|
107
107
|
|
108
108
|
run: Run | None
|
109
109
|
config: wandb_config.Config
|
@@ -651,7 +651,12 @@ def log(
|
|
651
651
|
run = wandb.init()
|
652
652
|
examples = []
|
653
653
|
for i in range(3):
|
654
|
-
pixels = np.random.randint(
|
654
|
+
pixels = np.random.randint(
|
655
|
+
low=0,
|
656
|
+
high=256,
|
657
|
+
size=(100, 100, 3),
|
658
|
+
dtype=np.uint8,
|
659
|
+
)
|
655
660
|
pil_image = PILImage.fromarray(pixels, mode="RGB")
|
656
661
|
image = wandb.Image(pil_image, caption=f"random field {i}")
|
657
662
|
examples.append(image)
|
@@ -666,7 +671,12 @@ def log(
|
|
666
671
|
|
667
672
|
run = wandb.init()
|
668
673
|
# axes are (time, channel, height, width)
|
669
|
-
frames = np.random.randint(
|
674
|
+
frames = np.random.randint(
|
675
|
+
low=0,
|
676
|
+
high=256,
|
677
|
+
size=(10, 3, 100, 100),
|
678
|
+
dtype=np.uint8,
|
679
|
+
)
|
670
680
|
run.log({"video": wandb.Video(frames, fps=4)})
|
671
681
|
```
|
672
682
|
|
wandb/bin/wandb-core
CHANGED
Binary file
|
@@ -328,15 +328,13 @@ def wandb_log(
|
|
328
328
|
if not isinstance(settings, wandb.sdk.wandb_settings.Settings):
|
329
329
|
settings = wandb.Settings()
|
330
330
|
|
331
|
-
settings.
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
run_job_type=coalesce(settings.run_job_type, current.step_name),
|
339
|
-
source=wandb.sdk.wandb_settings.Source.INIT,
|
331
|
+
settings.update_from_dict(
|
332
|
+
{
|
333
|
+
"run_group": coalesce(
|
334
|
+
settings.run_group, f"{current.flow_name}/{current.run_id}"
|
335
|
+
),
|
336
|
+
"run_job_type": coalesce(settings.run_job_type, current.step_name),
|
337
|
+
}
|
340
338
|
)
|
341
339
|
|
342
340
|
with wandb.init(settings=settings) as run:
|
wandb/sdk/interface/interface.py
CHANGED
@@ -10,7 +10,6 @@ InterfaceRelay: Responses are routed to a relay queue (not matching uuids)
|
|
10
10
|
|
11
11
|
import gzip
|
12
12
|
import logging
|
13
|
-
import os
|
14
13
|
import time
|
15
14
|
from abc import abstractmethod
|
16
15
|
from pathlib import Path
|
@@ -100,8 +99,6 @@ class InterfaceBase:
|
|
100
99
|
|
101
100
|
def _hack_set_run(self, run: "Run") -> None:
|
102
101
|
self._run = run
|
103
|
-
current_pid = os.getpid()
|
104
|
-
self._run._set_iface_pid(current_pid)
|
105
102
|
|
106
103
|
def publish_header(self) -> None:
|
107
104
|
header = pb.HeaderRecord()
|
@@ -653,15 +650,13 @@ class InterfaceBase:
|
|
653
650
|
|
654
651
|
def publish_partial_history(
|
655
652
|
self,
|
653
|
+
run: "Run",
|
656
654
|
data: dict,
|
657
655
|
user_step: int,
|
658
656
|
step: Optional[int] = None,
|
659
657
|
flush: Optional[bool] = None,
|
660
658
|
publish_step: bool = True,
|
661
|
-
run: Optional["Run"] = None,
|
662
659
|
) -> None:
|
663
|
-
run = run or self._run
|
664
|
-
|
665
660
|
data = history_dict_to_json(run, data, step=user_step, ignore_copy_err=True)
|
666
661
|
data.pop("_step", None)
|
667
662
|
|
@@ -688,12 +683,11 @@ class InterfaceBase:
|
|
688
683
|
|
689
684
|
def publish_history(
|
690
685
|
self,
|
686
|
+
run: "Run",
|
691
687
|
data: dict,
|
692
688
|
step: Optional[int] = None,
|
693
|
-
run: Optional["Run"] = None,
|
694
689
|
publish_step: bool = True,
|
695
690
|
) -> None:
|
696
|
-
run = run or self._run
|
697
691
|
data = history_dict_to_json(run, data, step=step)
|
698
692
|
history = pb.HistoryRecord()
|
699
693
|
if publish_step:
|
wandb/sdk/internal/tb_watcher.py
CHANGED