semvec/pypi-packages huggingface dataset:
chromasoul_style_transfer 1.0.2
StyleTransfer provides a suite of tools for style migration tasks.
Requires Python: >=3.12

# StyleTransfer

**English** | [中文](README_zh.md)

---

## Project Overview

StyleTransfer provides a suite of tools for style migration tasks.

## Installation

```bash
# from pypi
pip install chromasoul_style_transfer

# from release
pip install chromasoul_style_transfer-{version}-py3-none-any.whl

# from source code(without uv)
pip install -e .

# from source code(with uv)
uv sync
```

## Quick start

1. Use the cli tool.

```bash
style_transfer --input /path/to/input_image --reference /path/to/reference_image --output /path/to/output_image

# or shortcut
style_transfer -i /path/to/input_image -r /path/to/reference_image -o /path/to/output_image
```

2. Use the example code.

```python
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from style_transfer.libs import TransferFactory
from style_transfer.utils import ImageUtils


def main():
    # init image transfer
    transfer = TransferFactory.create("prism")

    # load the images
    img_ref = ImageUtils.load_img("path/to/input_image")
    img = ImageUtils.load_img("path/to/reference_image")

    # load the images
    transfer.extract(img_ref)
    img_tgt = transfer.transfer(img)

    # the target dir will be auto created
    ImageUtils.save_img(img_tgt, "path/to/output_image")


if __name__ == "__main__":
    main()

```

## Available Methods

- fast_photo_style (FastPhotoStyle-Style algorithm)

## License

This project is licensed under the AGPLv3 License. This means you are free to use, modify, and distribute the code, but any modifications or services based on this project must be open-sourced under the same license. For commercial closed-source integration, please contact us for a commercial license.

See the [LICENSE](LICENSE) file for details.

## Contact Me

- Project Homepage: [GitHub Repository](https://github.com/XIAODUOLU/ChromaSoul)
- Issue Reports: [Issues](https://github.com/XIAODUOLU/ChromaSoul/issues)
- Email: lxd0705@163.com

---

**ChromaSoul** - Let every color find its soul mate ✨
eegpp3-beta 2.0
EEG Phrase Predictor ver 3
Requires Python: >=3.10

# EEG Phase Predictor ver 2

**Note: This is beta version, use for training with default dataset and inference only

## Setup

- Requirements: python >= 3.10
- Installing:

```aiignore
  pip install eegpp3-beta
```

## Train with default dataset

```aiignore
    python -m eegpp3 --mode "train" --model_type <mode_type> --lr <learning_rate> --batch_size <batch_size> --n_epochs <num_epochs> --n_splits <num_folds> --resume_checkpoint <resume_from_checkpoint>
```

ex: `python -m eegpp3 --mode "train" --model_type "stftcnn1dnc" --n_epochs 20 --n_splits 10 --resume_checkpoint False`

## Inference

1. Old version (**Recommend**)

```aiignore
    python -m eegpp3 -p <path_to_infer_config.yml>
```

ex: `python -m eegpp3 -p "data_config_infer.yml"`

An example of the configuration file:
```
datasets:
  time_step: 4000 #milliseconds
  data_dir: "/home/user/data"
  tmp_dir: "/home/user/tmp"
  out_dir: "/home/user/out"
  seq_files: ["raw_K3_EEG3_11h.txt", "raw_RS2_EEG1_23 hr.txt"]
  template_files: [] # ["K3_EEG3_11h.txt", "RS2_EEG1_23 hr.txt", "S1_EEG1_23 hr.txt"] # if no template, set to : [ ] or remove this line
  out_seperator: "\t"
```
Change directory (dir) with the correct path
2. New version

```aiignore
  python -m eegpp3 --mode "infer" --data_path <path_to_data_file> --infer_path <path_to_saving_file> --model_type <model_type>
```

ex:
`python -m eegpp3 --mode "infer" --data_path "./dump_eeg_1.pkl" --infer_path './inference_result.txt" --model_type "stftcnn1dnc"`

## Model type

- stftcnn1dnc: Multi-channels STFT-CNN