Color Spray
STEM images colorization using Deep Convolutional Neural Networks.
Installing
A. Install and update using pip:
pip3 install color-spray
Or
git checkout https://github.com/fengwang/color_spray.git
cd color_spray
python3 -m pip install -e .
B. Dowload pretrained model files from https://drive.google.com/drive/folders/1dl-iNgROmSv71EpzNalh97zksKIBc90u?usp=sharing, place them in your home folder, under path .color_spray/model.
Usage
Command line:
color_spray INPUT_GRAY_IMAGE_PATH OUTPUT_RGB_IMAGE_PATH
Using Python API:
# uncomment the follow three lines if you have a Nvidia GPU but you do not want to enable it.
#import os
#os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
#os.environ["CUDA_VISIBLE_DEVICES"]=''
from color_spray import color_spray
rgb_image = color_spray( './a_gray_image.png', './an_rgb_image.png' )
Details
- The training images are downloaded from PEXEL.
License
- BSD
Metadata
Release files for color-spray 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| color_spray-0.1.0.tar.gz | 816.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| color_spray-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 822.0 kB
Release files / color_spray-0.1.0.tar.gz
| Download URL | color_spray-0.1.0.tar.gz |
|---|---|
| Size | 816.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52ae5c616e30403386d5e096fb767ab59646b13eb08fdcc3853fa2d0877d0c54
|
|
BLAKE2b-256 checksum How to use checksums |
570f49e0e53692cfda1878ccb1ec58c27e957b3e9670acf433467723ac754129
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Release files / color_spray-0.1.0-py3-none-any.whl
| Download URL | color_spray-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
90aa6c15f65950e7ac289265fad6fd7a7a29ddb0d1a7e37197efc3e71b01143f
|
|
BLAKE2b-256 checksum How to use checksums |
ea9d0e599d8f4a7b43ab417a8eb6edb4533ffbf0ee8086421f5fc70261ec5f57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Security for color-spray 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.