Skip to content

Commit ab33b03

Browse files
committed
Convert Omegaconf containers to be jsonable
1 parent 4c3628b commit ab33b03

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/huggingface/upload_model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def main(cfg: DictConfig):
5151
spatial_resolution=dset_metadata.spatial_resolution,
5252
dim_in=n_input_fields,
5353
dim_out=n_output_fields,
54+
_convert_="all",
5455
)
5556
assert isinstance(model, torch.nn.Module) and isinstance(
5657
model, PyTorchModelHubMixin

0 commit comments

Comments
 (0)