File size: 2,077 Bytes
f2a612b
8cdcbaa
f2a612b
5c58464
d81487d
43da152
 
 
 
 
 
1c49aca
43da152
1c49aca
43da152
dc59149
 
 
9cc1d9b
dc59149
9cc1d9b
43da152
 
 
782c8d3
5c58464
 
43da152
8cdcbaa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
license: mit
---

# TACDEC Pipeline
This is a simple model with weights and reproducible code for the results in TACDEC-paper.

What you can find in this repo is:
- The simple [model](https://huggingface.co/SimulaMet-HOST/TACDEC-model/resolve/main/model.py?download=true) used in the TACDEC-paper
- The [weights](https://huggingface.co/SimulaMet-HOST/TACDEC-model/resolve/main/simple_model_weights.pt?download=true) used in the proof-of-concept section in the TACDEC-paper
- A first notebook, [feature_extraction.ipynb](https://huggingface.co/SimulaMet-HOST/TACDEC-model/resolve/main/feature_extraction.ipynb?download=true), that contains a feature extraction process using DINOv2.
- A second notebook, [train_classifier.ipynb](https://huggingface.co/SimulaMet-HOST/TACDEC-model/resolve/main/train_classifier.ipynb?download=true), that uses the features that were either extracted using the first notebook, or downloaded directly from [TACDEC repo](https://huggingface.co/datasets/SimulaMet-HOST/TACDEC).

We highly recommend downloading the already extracted and concatenated (features)[https://huggingface.co/datasets/SimulaMet-HOST/TACDEC/resolve/main/sorted_cls_tokens_features.pt] and the concatenated (labels)[https://huggingface.co/datasets/SimulaMet-HOST/TACDEC/resolve/main/sorted_cls_tokens_labels.npy] if you wish to try the dataset/model. You would then just have to run the second notebook.

Prior to running the notebooks, make sure to have all the dependencies needed. See [requirements.txt](https://huggingface.co/SimulaMet-HOST/TACDEC-model/resolve/main/requirements.txt?download=true).
When downloaded, run:

```
pip install -r requirements.txt
```

If you hold more interest in DINOv2, the **feature_extraction.ipynb** could hold good value.

In both notebooks, there should be good enough documentation, but should you have any questions, see [TACDEC](https://huggingface.co/datasets/SimulaMet-HOST/TACDEC).

## More information
For any other information or information about the dataset: 
[TACDEC](https://huggingface.co/datasets/SimulaMet-HOST/TACDEC)