Skip to content

How to load MobileViT for my project #69

@Sehaba95

Description

@Sehaba95

Hi!

I want to use MobileViT and train it using my own dataset (on Google Colab). I couldn't understand how can I use the code in this repository to instantiate just MobileViT model, and use it (I have a very specific data augmentation functions to use).

I am looking for a code to do something like this:

import cvnets.models.classification import MobileViT
import torch

model = MobileViT()
model.load_state_dict(torch.load(PATH))

# Train ...

How can I do that with the original implementation of MobileViT ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions