image_enhancement

command
v0.0.0-...-b09a792 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2022 License: NCSA Imports: 14 Imported by: 0

README

Image Super Resolution

The example uses SRGAN.

The input and output nodes of the model

Node Name Input/Output Shape Data Description
image_tensor Input [batch, height, width, 3] RGB pixel values as uint8 in a square format (Width, Height).
output_image Output [batch, output_height, output_width, 3] Pixel values of the utput enhanced image.

Usage

Download the frozen model by

wget https://s3.amazonaws.com/store.carml.org/models/tensorflow/models/srgan_1.2/frozen_model.pb

Or you can export the model youself using the code in freeze_model (You need TensorFlow and TensorLayer).

Run the inference by

go run main.go -dir=<model folder> -jpg=<input.jpg> [-out=<output.jpg>] [-labels=<labels.txt>]

References

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL