Skip to main content

UniGaze: lightweight loader that pulls pretrained weights from Hugging Face

Project description

UniGaze Easy Loader

A tiny, dependency-light Python package to load UniGaze pretrained models from Hugging Face.

📦 Installation

Install a matching PyTorch first.

pip install torch==2.0.1 torchvision==0.15.2 --index-url https://download.pytorch.org/whl/cu118
pip install timm==0.3.2
pip install unigaze

🚀 Quick Start

import torch
model = unigaze.load("unigaze_h14_joint", device="cuda")   # downloads weights from HF on first use
# Input: normalized batch (B, 3, 224, 224)
image_normalized_batch = torch.ones((10, 3, 224, 224), device="cuda")
# Output: {'pred_gaze': (B, 2)} with (pitch, yaw)
pred_gaze = model(image_normalized_batch)['pred_gaze']
print(pred_gaze.shape)  # torch.Size([10, 2])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unigaze-0.1.3.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unigaze-0.1.3-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file unigaze-0.1.3.tar.gz.

File metadata

  • Download URL: unigaze-0.1.3.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for unigaze-0.1.3.tar.gz
Algorithm Hash digest
SHA256 886c1bcbed1f22bfa66a23761e218dab7c443e4fe31a3fa2b752e31bc29dc0db
MD5 9c1b2863adc7da2cecca90326a2273de
BLAKE2b-256 1747861770d6ac8628d96aae41f91cdce7380d1297efc9a4d90bbb426afb73cf

See more details on using hashes here.

File details

Details for the file unigaze-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: unigaze-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for unigaze-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a3f4101ac105d56f0e23e7ee9bd1981304c43b6677073231fd6140e184aefa7d
MD5 e242c4e550a3592b8362d9c017ae1d8e
BLAKE2b-256 dc453f18355876d7a6f1b14e01481657aa3921db3e703f19aaa290f6d92e99f0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page