This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Tool to get DinoV3 features from videos, and save them in a compressed manner | |
# Compression is done with PCA and IncrementalPCA for larger inputs | |
import os, sys | |
from pathlib import Path | |
import numpy as np | |
from PIL import Image | |
import torch |