-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Colorize] Adding the service & some minor repo fixes.
- Loading branch information
1 parent
f53c2b7
commit f8a7b8a
Showing
38 changed files
with
942 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<meta name="description" content=""> | ||
<meta name="author" content=""> | ||
<link rel="shortcut icon" href="https://singularitynet.io/wp-content/uploads/2018/05/favicon.ico" /> | ||
|
||
<title>SingularityNET Service - siggraph-colorization</title> | ||
|
||
<!-- Bootstrap core CSS --> | ||
<link href="../css/bootstrap.min.css" rel="stylesheet"> | ||
|
||
<!-- Custom styles for this template --> | ||
<link href="../css/pricing.css" rel="stylesheet"> | ||
<link href="../css/style.css" rel="stylesheet"> | ||
</head> | ||
|
||
<body> | ||
|
||
<div class="d-flex flex-column flex-md-row align-items-center p-3 px-md-4 mb-3 bg-white border-bottom shadow-sm"> | ||
<h5 class="my-0 mr-md-auto font-weight-normal">SingularityNET</h5> | ||
<a class="btn btn-outline-primary" href="../index.html">User's Guide Hub</a> | ||
</div> | ||
|
||
<div class="pricing-header px-3 py-3 pt-md-5 pb-md-4 mx-auto text-center"> | ||
<h1 class="display-4">siggraph-colorization</h1> | ||
<p class="lead">Service User's Guide</p> | ||
</div> | ||
|
||
<div class="container"> | ||
<div id="preview"> </div> | ||
</div> | ||
|
||
<footer class="pt-4 my-md-5 pt-md-5 border-top"></footer> | ||
|
||
<!-- Bootstrap core JavaScript | ||
================================================== --> | ||
<!-- Placed at the end of the document so the pages load faster --> | ||
<script src="../js/jquery-slim.min.js"></script> | ||
<script src="../js/popper.min.js"></script> | ||
<script src="../js/bootstrap.min.js"></script> | ||
<script src="../js/holder.min.js"></script> | ||
<script> | ||
Holder.addTheme('thumb', { | ||
bg: '#55595c', | ||
fg: '#eceeef', | ||
text: 'Thumbnail' | ||
}); | ||
</script> | ||
<script type="text/javascript" src="../js/showdown.min.js"></script> | ||
<script> | ||
function Editor(preview) { | ||
this.update = function () { | ||
var rawFile = new XMLHttpRequest(); | ||
var allText = "# Fail!"; | ||
rawFile.open("GET", "siggraph-colorization.md", false); | ||
rawFile.onreadystatechange = function () | ||
{ | ||
if(rawFile.readyState === 4) | ||
{ | ||
if(rawFile.status === 200 || rawFile.status === 0) | ||
{ | ||
allText = rawFile.responseText; | ||
} | ||
} | ||
}; | ||
rawFile.send(null); | ||
let converter = new showdown.Converter({ tables: true }); | ||
let html = converter.makeHtml(allText); | ||
preview.innerHTML = converter.makeHtml(html); | ||
}; | ||
this.update(); | ||
} | ||
var $ = function (id) { return document.getElementById(id); }; | ||
new Editor($("preview")); | ||
</script> | ||
</body> | ||
<script src="../js/bootstrap.min.js"></script> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
[issue-template]: ../../../issues/new?template=BUG_REPORT.md | ||
[feature-template]: ../../../issues/new?template=FEATURE_REQUEST.md | ||
|
||
 | ||
|
||
# Let there be Color! | ||
|
||
This service uses [Let there be Color!](http://iizuka.cs.tsukuba.ac.jp/projects/colorization/en/) to perform colorization on grayscale images. | ||
|
||
It is part of our third party [DNN Model Services](https://github.com/singnet/dnn-model-services). | ||
|
||
### Welcome | ||
|
||
The service receives a grayscale image and uses it as an input for a pre-trained Torch model. | ||
|
||
The model was trained on the [Places dataset](http://places.csail.mit.edu/) and thus best performance is for natural outdoor images. | ||
|
||
### What’s the point? | ||
|
||
The service can colorize grayscale images. | ||
|
||
### How does it work? | ||
|
||
The user must provide the following input in order to start the service and get a response: | ||
|
||
Input: | ||
- `img_input`: A grayscale image URL. | ||
|
||
You can use this service from [SingularityNET DApp](http://beta.singularitynet.io/). | ||
|
||
You can also call the service from SingularityNET CLI (`snet`). | ||
|
||
Assuming that you have an open channel to this service: | ||
|
||
``` | ||
$ snet client call snet siggraph-colorization colorize '{"img_input": "https://snet-models.s3.amazonaws.com/bh/Colorize/carnaval.jpg"}' | ||
[Base64 Image] | ||
``` | ||
|
||
### What to expect from this service? | ||
|
||
Input Image: | ||
|
||
 | ||
|
||
|
||
Response: | ||
|
||
 | ||
|
||
|
||
Input Image: | ||
|
||
 | ||
|
||
|
||
Response: | ||
|
||
 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.