You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Separate the samples and assets and update the README (#10)
* Separate the samples and assets and update the README
* correct sentence in samples README
* small changes to the READMEs
* Add JPEG and TIFF test cases
* rewrite the tiff and jpeg test case
* fix test
# IBM Developer Model Asset Exchange: Image Resolution Enhancer
4
6
5
7
This repository contains code to instantiate and deploy an image resolution enhancer.
@@ -10,7 +12,7 @@ The GAN is based on [this GitHub repository](https://github.com/brade31919/SRGAN
10
12
The model was trained on 600,000 images of the [OpenImages V4](https://storage.googleapis.com/openimages/web/index.html) dataset, and the model files are hosted on
The code in this repository deploys the model as a web service in a Docker container. This repository was developed
13
-
as part of the [IBM Developer Model Asset Exchange](https://developer.ibm.com/exchanges/models/).
15
+
as part of the [IBM Developer Model Asset Exchange](https://developer.ibm.com/exchanges/models/) and the public API is powered by [IBM Cloud](https://ibm.biz/Bdz2XM).
14
16
15
17
## Model Metadata
16
18
| Domain | Application | Industry | Framework | Training Data | Input Data Format |
@@ -55,8 +57,8 @@ _NOTE: The SRGAN in the paper was trained on 350k ImageNet samples, whereas this
55
57
| This repository |[Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0)|[LICENSE](https://github.com/IBM/max-image-resolution-enhancer/blob/master/LICENSE)|
56
58
| Model Weights |[Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0)|[LICENSE](https://github.com/IBM/max-image-resolution-enhancer/blob/master/LICENSE)|
57
59
| Model Code (3rd party) |[MIT](https://opensource.org/licenses/MIT)|[LICENSE](https://github.com/brade31919/SRGAN-tensorflow/blob/master/LICENSE.txt)|
58
-
| Test assets|[CC BY 2.0](https://creativecommons.org/licenses/by/2.0/)|[Asset README](assets/README.md)|
The model will be available internally at port `5000`, but can also be accessed externally through the `NodePort`.
94
96
97
+
A more elaborate tutorial on how to deploy this MAX model to production on [IBM Cloud](https://ibm.biz/Bdz2XM) can be found [here](http://ibm.biz/max-to-ibm-cloud-tutorial).
The API server automatically generates an interactive Swagger documentation page. Go to `http://localhost:5000` to load it. From there you can explore the API and also create test requests.
138
142
139
-
Use the `model/predict` endpoint to load a test image (you can use one of the test images from the `assets/test_examples/low_resolution` folder) in order to get a high resolution output image returned.
143
+
Use the `model/predict` endpoint to load a test image (you can use one of the test images from the `samples/test_examples/low_resolution` folder) in order to get a high resolution output image returned.
140
144
141
145
The ideal input image is a PNG file with a resolution between 100x100 and 500x500, preferably without any post-capture processing and flashy colors. The model is able to generate details from a pixelated image (low DPI), but is not able to correct a 'blurred' image.
The above command will send the low resolution `woman.png` file to the model, and save the high resolution output image to the `woman_high_res.png` file in the root directory.
Copy file name to clipboardExpand all lines: assets/README.md
+1-31Lines changed: 1 addition & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,34 +4,4 @@
4
4
5
5
The final SRGAN model was trained on 600k images from the [OpenImages V4](https://storage.googleapis.com/openimages/web/index.html) dataset. The weights are released here under the [Apache2.0](https://www.apache.org/licenses/LICENSE-2.0) license found in the root of this repository.
6
6
7
-
_Note: the finetuned model files are hosted on [IBM Cloud Object Storage](http://max-assets.s3.us.cloud-object-storage.appdomain.cloud/max-image-resolution-enhancer/1.0/assets.tar.gz)._
8
-
9
-
## Test Examples (assets/testexamples)
10
-
11
-
This directory contains to subdirectories:
12
-
* low_resolution
13
-
* original
14
-
15
-
The low resolution images can be used as input for the model, and the resulting high resolution images can be compared with the 'original' images to measure performance.
_Note: the fine-tuned model files are hosted on [IBM Cloud Object Storage](http://max-assets.s3.us.cloud-object-storage.appdomain.cloud/max-image-resolution-enhancer/1.0/assets.tar.gz)._
The `samples/test_examples/` folder contains two subfolders:
6
+
* low_resolution
7
+
* original
8
+
9
+
The low resolution images can be used as input for the model, and the resulting high resolution images can be compared with the 'original' images to measure performance.
0 commit comments