semvec/pypi-packages huggingface dataset:
sprite-pipeline 0.3.1
A pipeline for converting images into stylized game sprites and sprite sheet generation.
Requires Python: >=3.8

### **`pip install sprite-pipeline`**

You download images to a folder

![image](https://github.com/user-attachments/assets/c9571d74-167c-444a-85c0-de09c9c78eb6)

⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️

`sp_group --style painting.png -H 100 downloaded/`

![image](https://github.com/user-attachments/assets/f78390a6-6737-4d33-bf24-3554721d5bdd)

⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️

You open output.psd, resize layers, fix perspective, patch.

⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️

`sp_pack`

![image](https://github.com/user-attachments/assets/8f7ed3f2-b918-4268-a123-a919f21e2485)
![image](https://github.com/user-attachments/assets/8a650d62-fa07-426c-a2fa-600af78e0420)

Congrats! You get packed spritesheet and UV coordinates in .txt

## Features

- Foreground extraction
- Light correction
- Style transfer
- PSD building
- Spritesheet packing

## CLI args

#### sp_group

`sp_group folder_name/ --style STYLE_IMAGE -W MAX_WIDTH -H MAX_HEIGHT -f STYLE_FORCE -o OUTPUT_PSD`

Creates PSD file containing group `folder_name` where each layer is a processed image with the specified maximum dimensions.

#### sp_pack

`sp_pack psd_file.psd -o OUTPUT_DIR --format SPRITESHEET_IMAGE_FORMAT`

For each group in PSD creates packed spritesheet image and UV coordinates file named group_name.fmt and group_name_uvs.txt.

## Details

1. [BiRefNet](https://huggingface.co/ZhengPeng7/BiRefNet) to extract foreground
2. [RetinexNet](https://github.com/weichen582/RetinexNet) to fix lights
3. [nst_vgg19](https://github.com/alexanderbrodko/nst_vgg19) for Neural Style Transfer
4. [RealESRGAN_MtG](https://huggingface.co/rullaf/RealESRGAN_MtG) to improve quality
5. OpenCV to other filters and algorithms


![output](https://github.com/user-attachments/assets/e10aedcc-0cd9-47e3-ac60-e1d426b30cc0)
fabric-demos 0.0.1
A library to install Microsoft Fabric demos with one line.
Requires Python: <3.13,>=3.10

# fabric-demos

[![PyPi version](https://badgen.net/pypi/v/fabric-demos/)](https://pypi.org/project/fabric-demos)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

fab-demos is a toolkit to easily install demos on Microsoft Fabric.

## Installation
Install fab-demos

```
%pip install fab-demos
```

## Usage within Fabric

Within a Python notebook, browse all demos:

```
import fabric_demos as fabdemos
fabdemos.browse()
```

Install a demo:

```
fabdemos.install(name="<demo_name>")
```

## Usage from CLI

Browse all demos:

```bash
$ fabdemos browse
```

Install a demo:

```bash
$ fabdemos install -n <demo_name> -ws <workspace_name>
```