Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix reference to the audiocraft grids #47

Merged
merged 2 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/TRAINING.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ default:
global: your_slurm_partitions
team: your_slurm_partitions
reference_dir: /tmp
darwin: # if we detect we are on a Mac, then most likely we are doing unit testing etc.
darwin: # if we detect we are on a Mac, then most likely we are doing unit testing etc.
dora_dir: [YOUR PATH]
partitions:
global: your_slurm_partitions
Expand Down Expand Up @@ -114,7 +114,7 @@ result, message = detector(watermarked_audio, sr)

## Training the HF AudioSeal model

We also provide the hyperparameter and training config (in Dora term, a "grid") to reproduce our checkpoints for AudioSeal in HuggingFace (which is also the one used to produce the results ported in the ICML paper). To get this, check the AudioCraft's watermarking [grid](https://github.com/facebookresearch/audiocraft/blob/main/audiocraft/grids/watermarking/1315_kbits_seeds.py). To reproduce the result, run the `dora grid` command:
We also provide the hyperparameter and training config (in Dora term, a "grid") to reproduce our checkpoints for AudioSeal in HuggingFace (which is also the one used to produce the results ported in the ICML paper). To get this, check the AudioCraft's watermarking [grid](https://github.com/facebookresearch/audiocraft/blob/main/audiocraft/grids/watermarking/kbits.py). To reproduce the result, run the `dora grid` command:

```bash
AUDIOCRAFT_CONFIG=my_config.yaml AUDIOCRAFT_DSET=audio/voxpopuli dora grid watermarking.1315_kbits_seeds
Expand Down
2 changes: 1 addition & 1 deletion src/audioseal/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class AudioSealDetectorConfig:
def as_dict(obj: Any) -> Dict[str, Any]:
if isinstance(obj, dict):
return obj
if is_dataclass(obj):
if is_dataclass(obj) and not isinstance(obj, type):
return asdict(obj)
elif isinstance(obj, DictConfig):
return OmegaConf.to_container(obj) # type: ignore
Expand Down
Loading