Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/captain-pool/hydra-example
https://github.com/captain-pool/hydra-example
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/captain-pool/hydra-example
- Owner: captain-pool
- License: mit
- Created: 2022-01-28T13:27:57.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-04T15:45:39.000Z (over 2 years ago)
- Last Synced: 2024-07-03T23:45:45.051Z (4 months ago)
- Language: Python
- Size: 31.3 KB
- Stars: 19
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Using Hydra with Weights and Biases
Hydra is a widely used configuaration and experiment management tool developed by Facebook Research. In this repository, we make a minimal implementation of integrating Hydra with [Weights and Biases](wandb.com)
In this repository, we demonstrate how hydra can be used to configure a ML project. Here we reimplement the notebook of the [Group Normalization Report](https://wandb.ai/wandb_fc/GroupNorm/reports/Group-Normalization-in-Pytorch-With-Examples---VmlldzoxMzU0MzMy)
and demonstrate how Hydra can be used to configure the codebase.## Usage
**NOTE**: This repo relies on a submodule [`normalizations`](https://gist.github.com/captain-pool/5029e7a6e431bc04135de662326ea682)
To properly use the repository clone the repository recursively.
```bash
$ git clone --recursive https://github.com/captain-pool/hydra-example
```
To pull the submodule after cloning:
```bash
$ git submodule update --init
```### Runing Experiments
For single run (with default architecture):
```bash
$ python3 main.py dataset=mnist
```For running Hydra-Multirun over different dataset([`dataset/`](configs/dataset)) and architectures ([`experiments/`](configs/experiments))
```bash
$ python3 main.py dataset=cifar10,mnist experiments=group,batch,instance
```NOTE: Running the codebase creates a project called: `hydra-example` on your W&B account by default. You can configure where to send the runs by editing the [`wandb/defaults.yaml`](configs/wandb/defaults.yaml) configuration file.