semvec/pypi-packages huggingface dataset:
rvit 1.0.3
Vision Transformer with Registers
Keywords: python, pytorch, vision transformer, register, registers


A simple augmentation of PyTorch's VisionTransform class from torchvision.models to include registers, as per: https://arxiv.org/abs/2309.16588



Introduces registers to the encoder that are appended as tokens to the 'patchified' sequence, and excluded in the output.

The tokens are learnable parameters and do not receive positional embeddings.



The API of the class is identical with VisionTransformer, except the additional init argument for 'num_registers', which specifies the number of register tokens.



## Installation

```

pip install rvit

```
obs-waykey 0.2.0
OBS global shortcuts workaround for wayland using websocket
Requires Python: <4.0,>=3.9

# OBS WayKey

Python script for setting up OBS global keybinds under wayland

## Requirements

- [OBS Studio](https://obsproject.com/)
- [OBS Websocket v5 Plugin](https://github.com/obsproject/obs-websocket/releases/tag/5.0.0)
  - ATTENTION: For OBS version 28 and above Websocket plugin is included by default. If you run an older version it must be installed manually.
- Python 3.9 or greater

# Install and Setup

## Install

I recommend installing via [pipx](https://github.com/pypa/pipx)

```
pipx install obs-waykey
```

If you want a specific version you can grab the `.vhl` from the [releases page](https://github.com/PolyCatDev/obs-waykey/releases) and install it with pipx

```
pipx install <file-name>
```

## Setup

1. Go to your Desktop settings (or WM config file)
2. Go to where you configure keybinds
3. Add a new custom keybind
4. Name it what you want
5. Use the command `obs-waykey -t <toggle> -w <your-password>`
6. Set your keybind

### Here's an example

![my keybind](https://github.com/PolyCatDev/obs-waykey/blob/main/.github/toggle-rec-config.png)

## Toggles

1. `toggle-record`
2. `toggle-record-pause`

# Build from source

ATTENTION: This project was built with [poetry](https://python-poetry.org/) in mind.

1. Clone the repo

```
git clone https://github.com/PolyCatDev/obs-waykey.git && \
cd obs-waykey
```

2. Setup enviroment

```
python3 -m venv .venv && \
source .venv/bin/activate
```

3. Install dependencies

```
pip install poetry && \
poetry install
```

4. Build the package

```
poetry build
```

# To do

- [ ] Add more toggles
- [x] Password Support
- [ ] Alternative IP support
- [ ] Alternative port support