This repository contains the trained weights for an image captioning system consisting of a CNN Encoder and an RNN Decoder, fine-tuned on the CIFAR-10 dataset.
1from huggingface_hub import hf_hub_download
2import torch
3
4# Download weights
5encoder_path = hf_hub_download(repo_id="Sher1988/image-classifier-weights", filename="encoder")
6decoder_path = hf_hub_download(repo_id="Sher1988/image-classifier-weights", filename="decoder")
7
8# Load into your model classes
9# encoder.load_state_dict(torch.load(encoder_path, map_location='cpu'))
10# decoder.load_state_dict(torch.load(decoder_path, map_location='cpu'))