Configure wandb entity outside config

This commit is contained in:
Simon Alibert 2024-03-11 13:09:46 +01:00
parent d4ea4f0ad1
commit 00fe4f4f18
3 changed files with 10 additions and 2 deletions

View File

@ -24,6 +24,12 @@ mkdir ~/tmp
export TMPDIR='~/tmp' export TMPDIR='~/tmp'
``` ```
To use [Weights and Biases](https://docs.wandb.ai/quickstart) for experiments tracking, login with
```
wandb login
```
## Usage ## Usage
@ -111,6 +117,7 @@ pre-commit run -a
**Tests** **Tests**
Install [git lfs](https://git-lfs.com/) to retrieve test artifacts (if you don't have it already). Install [git lfs](https://git-lfs.com/) to retrieve test artifacts (if you don't have it already).
On Mac: On Mac:
``` ```
brew install git-lfs brew install git-lfs

View File

@ -38,7 +38,7 @@ class Logger:
project = cfg.get("wandb", {}).get("project") project = cfg.get("wandb", {}).get("project")
entity = cfg.get("wandb", {}).get("entity") entity = cfg.get("wandb", {}).get("entity")
enable_wandb = cfg.get("wandb", {}).get("enable", False) enable_wandb = cfg.get("wandb", {}).get("enable", False)
run_offline = not enable_wandb or not project or not entity run_offline = not enable_wandb or not project
if run_offline: if run_offline:
logging.info(colored("Logs will be saved locally.", "yellow", attrs=["bold"])) logging.info(colored("Logs will be saved locally.", "yellow", attrs=["bold"]))
self._wandb = None self._wandb = None
@ -63,6 +63,7 @@ class Logger:
resume=None, resume=None,
) )
print(colored("Logs will be synced with wandb.", "blue", attrs=["bold"])) print(colored("Logs will be synced with wandb.", "blue", attrs=["bold"]))
logging.info(f"Track this run --> {colored(wandb.run.get_url(), 'yellow', attrs=['bold'])}")
self._wandb = wandb self._wandb = wandb
def save_model(self, policy, identifier): def save_model(self, policy, identifier):

View File

@ -31,5 +31,5 @@ policy: ???
wandb: wandb:
enable: true enable: true
project: lerobot project: lerobot
entity: rcadene # insert your own # entity: rcadene # insert your own
notes: "" notes: ""