Skip to content

Commit

Permalink
Add torch module hub mixin back in (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sukh-P authored Aug 29, 2024
1 parent eaefc7b commit 28ed7d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pvnet/models/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import torch.nn.functional as F
import wandb
import yaml
from huggingface_hub import ModelCard, ModelCardData
from huggingface_hub import ModelCard, ModelCardData, PyTorchModelHubMixin
from huggingface_hub.constants import CONFIG_NAME, PYTORCH_WEIGHTS_NAME
from huggingface_hub.file_download import hf_hub_download
from huggingface_hub.hf_api import HfApi
Expand Down Expand Up @@ -140,7 +140,7 @@ def minimize_data_config(input_path, output_path, model):
yaml.dump(config, outfile, default_flow_style=False)


class PVNetModelHubMixin:
class PVNetModelHubMixin(PyTorchModelHubMixin):
"""
Implementation of [`PyTorchModelHubMixin`] to provide model Hub upload/download capabilities.
"""
Expand Down

0 comments on commit 28ed7d8

Please sign in to comment.