Skip to content

arsenyinfo/EnlightenGAN-inference

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EnlightenGAN-inference

Very minimalistic wrapper for EnlightenGAN inference. It uses carefully converted pretrained weights (+ baked in preprocessing) from the original repo and only requires onnxruntime as inference engine.

Installation

pip install git+https://github.com/arsenyinfo/EnlightenGAN-inference

Usage

from enlighten_inference import EnlightenOnnxModel
import cv2

img = cv2.imread('/path/to/image.jpg')

# by default, CUDAExecutionProvider is used
model = EnlightenOnnxModel()
# however, one can choose the providers priority, e.g.: 
model = EnlightenOnnxModel(providers = ["CPUExecutionProvider"])

processed = model.predict(img)

About

ONNX Inference library for EnlightenGAN

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages