Skip to content
This repository was archived by the owner on Nov 13, 2025. It is now read-only.

Commit 3981e13

Browse files
committed
Image classification experiments
1 parent da97171 commit 3981e13

File tree

18 files changed

+57
-2125
lines changed

18 files changed

+57
-2125
lines changed

README.md

Lines changed: 10 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,13 @@
1-
CP form of LoRA, evaluation on VTAB-1K dataset.
1+
# Canonical Decomposition and Approximation
2+
Perform finetuning using Canonical Polyadic Decomposition
23

3-
Inspirations:
4+
## Image Classification
5+
We use VisionTransformer-B/16 evaluated on VTAB-1k datasets.
6+
Please refer to ```image_classification``` folder for the experiments.
47

5-
1. FacT: [Code](https://github.com/JieShibo/PETL-ViT/tree/main/FacT)
6-
2. GLoRA: [Code](https://github.com/Arnav0400/ViT-Slim/tree/master/GLoRA)
7-
3. NOAH: [Code](https://github.com/ZhangYuanhan-AI/NOAH)
8+
## Commonsense Reasoning
9+
We use LLAMA-7B evaluated on eight commonsense reasoning tasks.
10+
Please refer to ```commonsense_reasoning``` folder for the experiments.
811

9-
10-
### Set up:
11-
Follow the steps as described over at `https://github.com/JieShibo/PETL-ViT/tree/main/FacT`.
12-
Additionally run
13-
``` bash
14-
pip install tqdm
15-
pip install tensorly
16-
```
17-
18-
### Running experiments
19-
To run an experiment type:
20-
21-
``` bash
22-
python fact_cp.py --dataset 'dataset_name'
23-
```
24-
25-
Choose a dataset name from i.e. '
26-
27-
``` bash
28-
caltech101
29-
clevr_dist
30-
dsprites_loc
31-
eurosat
32-
oxford_iiit_pet
33-
smallnorb_azi
34-
cifar
35-
diabetic_retinopathy
36-
dsprites_ori
37-
kitti
38-
patch_camelyon
39-
smallnorb_ele
40-
clevr_count
41-
dmlab
42-
dtd
43-
oxford_flowers102
44-
resisc45
45-
sun397
46-
svhn
47-
```
12+
## Image/Video-Text Understanding
13+
We plan use VL-BART evaluated on variety of datasets for Image and video text understanding.

cpora.sh

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)