File tree 3 files changed +8
-8
lines changed
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
- [ ![ Build Status] ( https://travis-ci.com/IBM/MAX-Image-Resolution-Enhancer.svg?branch=master )] ( https://travis-ci.com/IBM/MAX-Image-Resolution-Enhancer )
1
+ [ ![ Build Status] ( https://travis-ci.com/IBM/MAX-Image-Resolution-Enhancer.svg?branch=master )] ( https://travis-ci.com/IBM/MAX-Image-Resolution-Enhancer ) [ ![ API demo ] ( https://img.shields.io/website/http/max-image-resolution-enhancer.max.us-south.containers.appdomain.cloud/swagger.json.svg?label=API%20demo&down_message=down&up_message=up )] ( http://max-image-resolution-enhancer.max.us-south.containers.appdomain.cloud/ )
2
2
3
3
# IBM Developer Model Asset Exchange: Image Resolution Enhancer
4
4
Original file line number Diff line number Diff line change 7
7
8
8
# API metadata
9
9
API_TITLE = 'MAX Image Resolution Enhancer'
10
- API_DESC = 'Upscale low-resolution images by a factor of 4x . This model was trained on the OpenImagesV4 dataset.'
11
- API_VERSION = '0.1 '
10
+ API_DESC = 'Upscale low-resolution images by a factor of 4 . This model was trained on the OpenImagesV4 dataset.'
11
+ API_VERSION = '1.0.0 '
12
12
13
13
# default model
14
14
MODEL_NAME = 'SRGAN'
15
15
DEFAULT_MODEL_PATH = 'assets/SRGAN/model'
16
16
17
17
MODEL_META_DATA = {
18
- 'id' : '{}_tensorflow' . format ( MODEL_NAME . lower ()) ,
18
+ 'id' : 'max-image-resolution-enhancer' ,
19
19
'name' : 'Super-Resolution Generative Adversarial Network (SRGAN)' ,
20
20
'description' : 'SRGAN trained on the OpenImagesV4 dataset.' ,
21
21
'type' : 'Image-To-Image Translation Or Transformation' ,
22
- 'source' : 'https://developer.ibm.com/exchanges/models' ,
23
- 'license' : 'ApacheV2 '
22
+ 'source' : 'https://developer.ibm.com/exchanges/models/all/max-image-resolution-enhancer/ ' ,
23
+ 'license' : 'Apache V2 '
24
24
}
Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ def test_metadata():
27
27
assert r .status_code == 200
28
28
29
29
metadata = r .json ()
30
- assert metadata ['id' ] == 'srgan_tensorflow '
30
+ assert metadata ['id' ] == 'max-image-resolution-enhancer '
31
31
assert metadata ['name' ] == 'Super-Resolution Generative Adversarial Network (SRGAN)'
32
32
assert metadata ['description' ] == 'SRGAN trained on the OpenImagesV4 dataset.'
33
- assert metadata ['license' ] == 'ApacheV2 '
33
+ assert metadata ['license' ] == 'Apache V2 '
34
34
35
35
36
36
def call_model (file_path ):
You can’t perform that action at this time.
0 commit comments