sky24h commited on
Commit
30e21c7
1 Parent(s): ba32963
Files changed (3) hide show
  1. README.md +1 -1
  2. seg2art/inference_util.py +1 -1
  3. static/index.js +1 -1
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
  title: Controllable Multi-domain Semantic Artwork Synthesis
3
- emoji: 🚀
4
  colorFrom: gray
5
  colorTo: pink
6
  sdk: docker
 
1
  ---
2
  title: Controllable Multi-domain Semantic Artwork Synthesis
3
+ emoji: 🖼️
4
  colorFrom: gray
5
  colorTo: pink
6
  sdk: docker
seg2art/inference_util.py CHANGED
@@ -34,7 +34,7 @@ colors = np.array(colors)
34
 
35
  def remap_label(arr):
36
  # compare only last color channel to speed up
37
- arr_b = arr[:, :, 0]
38
 
39
  # remap color to label
40
  for i in range(len(colors)):
 
34
 
35
  def remap_label(arr):
36
  # compare only last color channel to speed up
37
+ arr_b = arr[:, :, 2]
38
 
39
  # remap color to label
40
  for i in range(len(colors)):
static/index.js CHANGED
@@ -52,7 +52,7 @@ cvsIn.addEventListener("mousemove", function (e) {
52
  ctxIn.lineTo(x, y);
53
  ctxIn.strokeStyle = ctxIn.color;
54
  ctxIn.stroke();
55
- if (((new Date).getTime() - current_time) >= 400) {
56
  move_range = domainSlider.value;
57
  onRecognition(move_range);
58
  current_time = (new Date).getTime();
 
52
  ctxIn.lineTo(x, y);
53
  ctxIn.strokeStyle = ctxIn.color;
54
  ctxIn.stroke();
55
+ if (((new Date).getTime() - current_time) >= 300) {
56
  move_range = domainSlider.value;
57
  onRecognition(move_range);
58
  current_time = (new Date).getTime();