Configure wandb entity outside config
This commit is contained in:
parent
d4ea4f0ad1
commit
00fe4f4f18
|
@ -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
|
||||||
|
|
|
@ -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):
|
||||||
|
|
|
@ -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: ""
|
||||||
|
|
Loading…
Reference in New Issue