semvec/pypi-packages huggingface dataset:
PyConfigMaker 1.4
Generates a config and an argument parser from a yaml file

# PyConfigMaker

![PyPI](https://img.shields.io/pypi/v/pyconfigmaker?label=PyConfigMaker&link=https://pypi.org/project/PyConfigMaker/)

A tiny package which automatically builds config objects and an argument parser from yaml script

[PyPi](https://pypi.org/project/PyConfigMaker/)
[Github](https://github.com/cvoelcker/PyConfigMaker)


A short usage example:

```
from sys import argv
from config_parser import config_parser

parser = config_parser.ConfigGenerator('sample_data/example.yml')
parsed = parser(argv[1:])
print(parsed)
print(parsed.PATHS.model_save_path)
parser.dump_config('test/test.yml')
```
LinearRecolor 1.0.0
基于线性映射模板的色彩转移(Based on Image recoloring using linear template mapping)
Requires Python: >=3.6

#Image recoloring using linear template mapping 基于线性映射模板的色彩转移

>based on 《Image recoloring using linear template mapping》
>

### Install

### Usage
    _root_dir = os.path.dirname(__file__)
    reuslt = linear_recolor(_root_dir + '/image/apple/manifest.png',
                  _root_dir + '/image/apple/source.png',
                   reverse_map=True)

    cv2.imwrite('./test2.png', reuslt)

    reverse_map:参数指明 线性映射的方向，可选值：False || True 

### Advance Usage
manifest.png could be created by this program [Grayscale](https://github.com/freedomofme/Grayscale).

    som = SOMGraySclae()
    manifest = som.get_1d_manifold(one_souce_image)

#### 原图(source.png)：
![](https://raw.githubusercontent.com/freedomofme/SampleRecolor/master/image/apple/source.png)

#### 模板(manifest.png)（基于Data-driven Color Manifolds 生成）[参见get_1d_manifold](https://github.com/freedomofme/Grayscale)
![](https://raw.githubusercontent.com/freedomofme/SampleRecolor/master/image/apple/manifest.png)

#### 效果图
![](https://raw.githubusercontent.com/freedomofme/SampleRecolor/master/image/apple/result.png)
==
![](https://raw.githubusercontent.com/freedomofme/SampleRecolor/master/image/apple/result_reverse.png)