Skip to content

Commit

Permalink
Updated to PaintsChainer commit 357a810
Browse files Browse the repository at this point in the history
  • Loading branch information
liamjones committed Feb 11, 2017
1 parent eaba763 commit 7985098
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ RUN mkdir --parents /opt/conda/var/lib/dbus/ & \
pip --no-cache-dir install chainer

ENV PAINTSCHAINER_REPO=https://github.com/pfnet/PaintsChainer.git \
PAINTSCHAINER_COMMIT=ab02ff0
PAINTSCHAINER_COMMIT=357a810

RUN git clone $PAINTSCHAINER_REPO && \
mkdir /PaintsChainer/cgi-bin/paint_x2_unet/models/ && \
Expand Down
26 changes: 23 additions & 3 deletions remove-image-upload-limit.patch
Original file line number Diff line number Diff line change
@@ -1,15 +1,35 @@
diff --git a/paints_chainer.js b/paints_chainer.js
index 3157619..c0196b5 100644
index 62f04d4..f5489b2 100644
--- a/paints_chainer.js
+++ b/paints_chainer.js
@@ -131,10 +131,6 @@ $(function () {
@@ -75,7 +75,7 @@ $(function () {
}

function post(data) {
-
+
$.ajax({
type: 'POST',
url: origin + '/post',
@@ -107,8 +107,8 @@ $(function () {

function paint(id) {
var ajaxData = new FormData();
- ajaxData.append('id', image_id)
-
+ ajaxData.append('id', image_id)
+
$.ajax({
type: 'POST',
url: origin + '/paint',
@@ -164,10 +164,6 @@ $(function () {
}
blobUrlToBlob($('#background').attr('src'), function (line_blob) {
ajaxData.append('line', line_blob);
- if (line_blob.size > 1000000) {
- alert('Image too large to colorize');
- return;
- }
paint(ajaxData);
post(ajaxData);
});
});

0 comments on commit 7985098

Please sign in to comment.