File size: 6,849 Bytes
f3daba8
 
 
 
 
 
 
 
 
 
0cc889f
 
 
 
 
 
 
 
 
 
 
 
 
 
f3daba8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!DOCTYPE html>
<html>

<head>
  <link rel="stylesheet" href="https://cdn.rawgit.com/Chalarangelo/mini.css/v2.3.7/dist/mini-default.min.css">
  <link rel="stylesheet" href="./static/style.css">
  <meta charset="UTF-8">
  <title>Label to Art Demo_V_0.7 </title>
</head>

<h1 style="text-align: center; font-size: 40px; font-family: 'Times New Roman', Times, serif;">
  Controllable Multi-domain Semantic Artwork Synthesis
</h1>
<p style="text-align: center; font-size: 20px; font-family: 'Times New Roman', Times, serif;">
  <a href="https://sky24h.github.io/websites/cvmj2023_controllable-artwork-synthesis/" target="_blank">
      <b>Project Page</b>
  <!-- <br> -->
  </a>
      <a style="text-align: center; display:inline-block" href="https://huggingface.co/spaces/sky24h/Controllable_Multi-domain_Semantic_Artwork_Synthesis?duplicate=true">
      <img src="https://huggingface.co/datasets/huggingface/badges/raw/main/duplicate-this-space-sm.svg#center" alt="Duplicate Space">
      </a>
</p>
<hr class="solid">

<div class="common">

  <body>
    <div class="row">
      <div class="col-sm-12 col-md-10 col-md-offset-1">
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <div class="boxitem1">
          <label for='brushSlider' style='font-size: 1.7em; font-weight: bold'>Stroke Width </label>
          <input type="range" name="brushsize" min="0" max="100" id="brushSlider" step="1" value="30"
            onchange="this.setAttribute('value',this.value);">
        </div>

        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <div class="boxitem2">
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <label for="style" style='font-size: 1.7em; font-weight: bold'>Domain:</label>
          <select id="style">
            <option style='font-size: 1.7em; font-weight: bold' value="ink">Ink Wash</option>
            <option style='font-size: 1.7em; font-weight: bold' value="monet">Monet</option>
            <option style='font-size: 1.7em; font-weight: bold' value="vangogh">Van Gogh</option>
            <option style='font-size: 1.7em; font-weight: bold' value="water">WaterColor</option>
          </select>
        </div>

        <div class="row">
          <div class="col-sm-12 col-md-10 col-md-offset-1">
            <div class="boxitem1">
              <label for='domainSlider' style='font-size: 1.7em; font-weight: bold'> Style Strength </label>
              <input type="range" name="style range" min="1" max="5" id="domainSlider" step="0.2" value="3"
                onchange="this.setAttribute('value',this.value);">
            </div>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <div class="boxitem2">
              <button id="random_pick" class="primary"
                style="background-color:#003449; margin-right:0px; font-size: 1.9em; font-weight: bold; border-radius:15px;">
                Random </button>
            </div>
          </div>
          <br>

        </div>
        <div class="divider"></div>
        <div class="boxitem1">
          <canvas id="inputimg" width="512" height="512" style="border:5px solid #ffffff;"></canvas>
        </div>
        <div class="boxitem2">
          <canvas id="outputimg" width="512" height="512" style="border:5px solid #ffffff;"></canvas>
        </div>
      </div>
    </div>


    <div class="boxitem">
      <button id="color1" class="primary"
        style="background-color:#87ceeb; margin-right:0px; font-size: 1.9em; font-weight: bold; border-radius:15px;">
        Sky </button>
      <button id="color2" class="primary"
        style="background-color:#9b7653; margin-right:0px; font-size: 1.9em; font-weight: bold; border-radius:15px;">
        Dirt </button>
      <button id="color3" class="primary"
        style="background-color:#b0d49b; margin-right:0px; font-size: 1.9em; font-weight: bold; border-radius:15px;">
        Mountain </button>
      <button id="color4" class="primary"
        style="background-color:#5abcd8; margin-right:0px; font-size: 1.9em; font-weight: bold; border-radius:15px;">
        River </button>
      <button id="color5" class="primary"
        style="background-color:#C1BEBA; margin-right:0px; font-size: 1.9em; font-weight: bold; border-radius:15px;">
        Clouds </button>
      <button id="color6" class="primary"
        style="background-color:#5A4D41; margin-right:0px; font-size: 1.9em; font-weight: bold; border-radius:15px;">
        Rock </button>
      <button id="color7" class="primary"
        style="background-color:#567d46; margin-right:0px; font-size: 1.9em; font-weight: bold; border-radius:15px;">
        Grass </button>
      <button id="color8" class="primary"
        style="background-color:#42692f; margin-right:0px; font-size: 1.9em; font-weight: bold; border-radius:15px;">
        Tree </button>
    </div>
    <br>
    <div class="boxitem">
      <button id="color9" class="primary"
        style="background-color:#1577be; margin-right:0px; font-size: 1.9em; font-weight: bold; border-radius:15px;">
        Sea </button>
      <button id="color11" class="primary"
        style="background-color:#3a2e27; margin-right:0px; font-size: 1.9em; font-weight: bold; border-radius:15px;">
        Ground </button>
      <button id="color12" class="primary"
        style="background-color:#4D415A; margin-right:0px; font-size: 1.9em; font-weight: bold; border-radius:15px;">
        Hill </button>
      <button id="color14" class="primary"
        style="background-color:#FDDA16; margin-right:0px; font-size: 1.9em; font-weight: bold; border-radius:15px;">
        Road </button>
      <button id="color15" class="primary"
        style="background-color:#d0cccc; margin-right:0px; font-size: 1.9em; font-weight: bold; border-radius:15px;">
        Snow </button>
      <button id="clearbtn" class="primary"
        style="margin-right:0px; font-size: 1.9em; font-weight: bold; border-radius:15px;"> Clear </button>

    </div>

    <script src="./static/index.js"></script>
    <script src="//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
    <script src="//d3js.org/d3.v5.min.js"></script>
  </body>