<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>Asia-PacificWorkshop on Mixed and
Augmented Reality, Dec.</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Transparent Ink-wash Style for Free-Viewpoint Video Generation</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Zhizheng Xiang</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Hidehiko Shishido</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Itaru Kitahara</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>University of Tsukuba</institution>
          ,
          <addr-line>1 Chome-1-1 Tennodai, Tsukuba, Ibaraki</addr-line>
          ,
          <country country="JP">Japan</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2022</year>
      </pub-date>
      <volume>0</volume>
      <fpage>2</fpage>
      <lpage>03</lpage>
      <abstract>
        <p>We propose a framework that combines free-viewpoint video generation based on Neural Radiance Field (NeRF) with 2D ink-wash style transfer. In this work, we focus on 1) tackling the inconsistency issue caused by image style transfer and 2) synthesizing novel as well as stylized views of arbitrary given objects using NeRF, and 3) adding the transparent effect to ensure generated video looks more vivid.</p>
      </abstract>
      <kwd-group>
        <kwd>1 novel view synthesis</kwd>
        <kwd>image style transfer</kwd>
        <kwd>ink wash painting</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>Deep learning-based artwork generation is a
current trend in the world of art and is gaining
popularity day by day. Compared to the traditional
pipeline which involves a tremendous amount of
time for a human expert, it requires little
understanding of professional image editing skills
and enables everyone to take part in the art
generation community. Lots of traditional image
editing company has also shifted to AI-generation
technology. Adobe, for example, has been
experimenting with generative AI for a long time
and incorporated it into the software which
empowers lots of creators.</p>
      <p>However, most of the artworks generated by
machine learning algorithms are limited to 2D
space and perform unsuccessfully when applied to
view-dependent image style transfer in 3D space
due to appearance inconsistency issues.
Extending style transfer techniques to dimensions
beyond the 2D image plane introduces serious
challenges and constraints. The core problem is
how to preserve style consistency across the view
to ensure high-quality view-consistent
freeviewpoint video generation.</p>
      <p>We propose an efficient style transfer pipeline
for conducting style transfer tasks in 3D space.
Our method can generate stylized ink wash
freeviewpoint videos from multiple photos taken from
different viewpoints. Our method can generate
high-quality and vivid ink-wash-style scenes by
adding a transparent effect, as shown in Figure 1.</p>
      <p>
        Our pipeline combines 2D image style transfer
and 3D novel view synthesis and has high
flexibility in choosing the style transfer and novel
view synthesis models (Figure 2). Firstly, we run
COLMAP [1] over a set of real-world images to
calculate the camera position since the results are
more accurate before stylization. Secondly, we
treat a set of images taken from different
viewpoints as a traditional style transfer task with
the addition of a novel view consistency
constraint, which aims to tackle the color
inconsistency issue led by the classic image style
transfer technique. Combining camera position
with stylized images, we finally input that
information into the Neural Radiance Field
(NeRF) to train a multi-layer perceptron (MLP)
and encode the stylized scene into the MLP for
free-viewpoint video generation.
the generated image, this method suffers from
intolerable low speed (single image per minute).
The later work proposed by Johnson et al. [
        <xref ref-type="bibr" rid="ref2">4</xref>
        ]
overcomes the problem by training a feed-forward
convolutional neural network to instantly
approximate solutions to the neural style transfer
problem.
      </p>
      <p>
        Except for the feature extractor-based style
transfer techniques we mentioned above, the
generative model-based [
        <xref ref-type="bibr" rid="ref3">5</xref>
        ] style transfer
techniques also appear to be attractive and
promising in recent years. Radford et al. introduce
Deep Convolutional GAN (DCGANs) [
        <xref ref-type="bibr" rid="ref4">6</xref>
        ] which
can learn the hierarchy of representations from
content image parts to style images. The main
problem is that the generator does not guarantee
that each input image has a meaningful pair of
outputs since the whole task is an unsupervised
learning task. Aiming to address this problem,
Zhu et al. propose CycleGANs [
        <xref ref-type="bibr" rid="ref5">7</xref>
        ] implemented
with cycle consistent loss. They first convert the
image from the content set using a pair of the
generative net and adversarial net and then revert
it to the style set with another pair of neural
networks. This method tends to train a more stable
generator. In the field of ink-wash painting style
transfer, He et al. [
        <xref ref-type="bibr" rid="ref6">8</xref>
        ] propose ChipGAN, a
generative adversarial network for stylizing
scenes in the Chinese ink-wash painting style.
While fast and promising, the generative
modelbased style transfer is highly unstable when
      </p>
    </sec>
    <sec id="sec-2">
      <title>2. Related works</title>
      <p>
        Image style transfer. Currently, few types of
models can fulfill image style transfer tasks at the
human expert level. Gatys et al. [2] capture the
style as well as content features by using a
pretrained convolutional neural network (VGG-16 or
VGG-19 [
        <xref ref-type="bibr" rid="ref1">3</xref>
        ]) and then compute the loss between
the content, style, and generated image to create
entertaining artwork. Despite the high quality of
This section describes our view-consistent
inkwash painting style transfer method in detail.
Given a set of real-world images taken from
different viewpoints, our approach transfers them
into a set of ink-wash paintings. We achieve this
by implementing the fast style transfer method [
        <xref ref-type="bibr" rid="ref2">4</xref>
        ]
(Sec. 3.1). We also introduce a novel view
consistency loss that maintains the corresponding
points’ color as the viewpoint changes (Sec. 3.2).
We add a transparent effect into the final results
to further enhance our visual quality (Sec. 3.3).
Above all, implicit representation is highly
suitable for reconstructing with a set of stylized
images since it uses a neural network to describe
scenes instead of explicit corresponding feature
points. For this reason, we adopt implicit
representation as our backbone for
freeviewpoints generation.
original content image  into our feed-forward
convolutional network   to generate the ink
wash painting  ̂. Noted that one can also use a
noise image with Gaussian distribution as the
initial image, but it will generally take more
training steps to converge. After stylizing, we
input  ̂ paired with content image   into a
pretrained VGG-16 network to compute the content
  (∗) = ∅(∗) ∗ ∅(∗)
(2)
where   is the inner product of the flattened
feature maps ∅(∗) and ∅(∗) .
      </p>
      <p>2
where   is the style image.</p>
      <sec id="sec-2-1">
        <title>Then we can define our style loss as:</title>
        <p>1
  ( ̂,   ) =
∑(  ( ̂)−   (  ))2
(3)
Finally, we train our feed-forward neural
Ink-wash painting is different from western
network to minimize the total loss function:


=    +   
(4)
where  ,  are the weighting factor for balancing
the content and style strength.
3.2.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>View consistent constraint</title>
      <p>
        We find that only performing vanilla style
transfer to a set of real-world image sets will result
in a noisy and unstable appearance even with little
rotation or movement of the camera position. The
main reason is that the feature extractor VGG-16
is trained on ImageNet [
        <xref ref-type="bibr" rid="ref9">11</xref>
        ] and all the images are
art because it is an expression of spiritual
contemplation. The content is more of abstract
and smooth than observed effects and concrete
natural details. Painters only use brush and ink to
create the ink-wash painting thus the color shade
becomes extremely important for an excellent
painting. In our research, we aim to bring this
effect into the AI art generation and make our
final results look more vivid. To implement the
transparent effect, we first convert our images file
from RGB to CMYK using:

= 1 − max⁡( ,  ,  )/255
(7)
RGB is the traditional file format to save the
restricted to a 2D image plane. 3D information
digital image while CMYK format is often used
such as time (in the case of a moving object), or
for printing. We can use ‘K’ values in the CMYK
3D geometric shape is ignored. As a result,
prefile to represent transparency degree since the
trained VGG-16 can hardly possess the ability to
generated images are mainly ink-wash style
realize the corresponding relationship of the same
paintings. Finally, we concatenate ‘K’ value as an
point if the viewpoint is changed.
      </p>
      <p>This limitation motivates us to invent a novel
view consistency loss that improves the visual
consistency of stylizing images taken from
different viewpoints. We first add Gaussian noise
into input images and then compare the
pixelwised loss to constrain our neural network to the
exact pixel values of the generated images despite
the invariant noise. By calculating the
viewconsistency loss item along with content and style
loss, we encourage the model to ignore the tiny
change led by the tiny movement of the camera
and thus improved the model’s robustness.</p>
      <p>We define our view-consistency loss as:
1
2


( ,   ) =
∑(  ( )−   (  ))2
(5)
where  ,   represents the input image and image
with Gaussian noise separately.   (∗) represents
the feed-forward neural network with parameters
 to be optimized.
written as:
3.3.</p>
    </sec>
    <sec id="sec-4">
      <title>Transparent effect</title>
      <p>In summary, the total loss function can be
 ( ) = ∫
 ( ) ( ( )) ( ( ),  )


=    +    +   
(6)
 ( ) = exp (− ∫  ( ( ))
)
alpha channel to original RGB channel.</p>
    </sec>
    <sec id="sec-5">
      <title>4. Free-viewpoint video generation</title>
      <p>
        NeRF [
        <xref ref-type="bibr" rid="ref7">9</xref>
        ] proposes a neural radiance field to
represent
and
reconstruct
complex
scenes
implicitly, achieving state-of-the-art results in
novel view synthesis. Following this work, we
choose a branch of NeRF named Instant-NGP
[
        <xref ref-type="bibr" rid="ref10">12</xref>
        ] for its fast training and rendering speed.
      </p>
      <p>In general, the radiance field can be regarded
as a continuous function that maps spatial location
( ,  ,  ) and viewing direction ( ,  ) to volume
density  and RGB color  :

( ,  ,  ,  ,  ) → (
)
(8)
is a</p>
      <p>multi-layer perceptron with
where 
learnable parameters.</p>
      <sec id="sec-5-1">
        <title>After that, we apply traditional volume rendering techniques [13] to integrate these RGB values computed along rays into a pixel value.</title>
        <p>The expected RGB values are computed by the
function:
update</p>
        <p>the
backpropagation.</p>
        <p>Finally, we compute the MSE loss between the
predicted color and ground truth color, and then
parameters
in</p>
        <p>MLP
by</p>
        <p>(9)
(10)</p>
        <p>Different from the original NeRF, our pipeline
moves beyond photo-realistic rendering and
combines ink-wash style with free-viewpoints
video generation.</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>5. Experiments</title>
      <p>In this section, we introduce the experiment
datasets (Sec. 5.1) and then explain the details of
our implementation of fast style transfer training
process (Sec. 5.2). In the end, we show stylization
results for various shapes of mountains (Sec. 5.3).
5.1.</p>
    </sec>
    <sec id="sec-7">
      <title>Mountain dataset</title>
      <p>Mountain landscapes are by far the most
prevalent topic in ink-wash painting. However,
there are few datasets available that contain
multiview images of mountain models. As a result, we
decide to buy some mountain models and create
the dataset suiting for ink-wash painting style
transfer task from scratch.</p>
      <p>We create 3 different shapes of mountain
models using iPhone 13 mini as our camera. The
focal length is 26mm and all of the images’
resolution is set to 1080×1080. Each dataset is
composed of 70 to 100 images with spare different
viewpoints and the camera pose is computed
using COLMAP before stylization. Then we use
the feed-forward neural network we trained
before to stylize all of the mountain images. This
process is extremely efficient and can be used for
real-time stylization because we get rid of the
computation of backpropagation. Lastly, we
concatenate RGB value with an additional alpha
channel which represents the transparency of a
pixel.
5.2.</p>
    </sec>
    <sec id="sec-8">
      <title>Fast style transfer</title>
      <p>
        We carefully follow Johnson et al. [
        <xref ref-type="bibr" rid="ref2">4</xref>
        ] work
and train our fast style transfer networks on the
Microsoft COCO dataset [
        <xref ref-type="bibr" rid="ref12">14</xref>
        ] with only two
epochs because COCO dataset encompasses over
300, 000 images, and even only a single epoch is
enough to learn the style mapping. We resize the
training images to 512×512 and set the batch size
to 4 because COCO dataset contains different
kinds of objects and we consider a small batch
size will guarantee the model learns the style
mapping more efficiently. We apply Adam [
        <xref ref-type="bibr" rid="ref13">15</xref>
        ]
optimizer with a learning rate of 1 × 10−3 and
without using an exponential decay factor. We use
relu2_2 to extract the content features and
relu1_2, relu2_2, relu3_3, and relu4_3 of the
pretrained VGG-16 to extract the style features. In
addition, we set the α, β, γ equal to 1 × 106 ,
1 × 1011, 1 × 102 respectively since we consider
this to be a decent combination based on
comparative experiments. We use PyTorch as our
deep learning framework and training process
takes roughly 6 hours on a single GTX 3080Ti
GPU. For the novel view synthesis, we apply
Instant-NGP [
        <xref ref-type="bibr" rid="ref10">12</xref>
        ] as our backbone since it can
render the whole complex scene within 20
seconds.
      </p>
      <p>Given a set of real-world images, our pipeline
will generate a high-resolution free-viewpoints
video within 1 minute if a pre-trained
feedforward style transfer neural network is used.
5.3.</p>
    </sec>
    <sec id="sec-9">
      <title>Results</title>
    </sec>
    <sec id="sec-10">
      <title>6. Conclusion</title>
      <p>We have introduced a highly efficient pipeline
to synthesize ink-wash painting style novel views
of mountain scenes using radiance fields. We
extend the traditional style transfer task to
dimensions beyond the 2D image plane,
facilitating the creation of artistic work in 3D
space. This research exhibits the promising
capability of combining 2D image style transfer
with implicit 3D representation.</p>
    </sec>
    <sec id="sec-11">
      <title>7. References</title>
      <p>[1] Schönberger, Johannes L., et al. "Pixelwise
view selection for unstructured multi-view
stereo." European conference on computer
vision. Springer, Cham, 2016.
[2] Gatys, Leon A., Alexander S. Ecker, and
Matthias Bethge. "Image style transfer using
convolutional neural networks." Proceedings
of the IEEE conference on computer vision
and pattern recognition. 2016.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Simonyan</surname>
            , Karen, and
            <given-names>Andrew</given-names>
          </string-name>
          <string-name>
            <surname>Zisserman</surname>
          </string-name>
          .
          <article-title>"Very deep convolutional networks for largescale image recognition</article-title>
          .
          <source>" arXiv preprint arXiv:1409.1556</source>
          (
          <year>2014</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Johnson</surname>
            , Justin,
            <given-names>Alexandre</given-names>
          </string-name>
          <string-name>
            <surname>Alahi</surname>
          </string-name>
          , and
          <article-title>Li FeiFei. "Perceptual losses for real-time style transfer and super-resolution."</article-title>
          <source>European conference on computer vision</source>
          . Springer, Cham,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Goodfellow</surname>
          </string-name>
          ,
          <string-name>
            <surname>Ian</surname>
          </string-name>
          , et al.
          <article-title>"Generative adversarial networks</article-title>
          .
          <source>" Communications of the ACM 63.11</source>
          (
          <year>2020</year>
          ):
          <fpage>139</fpage>
          -
          <lpage>144</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Radford</surname>
            , Alec,
            <given-names>Luke</given-names>
          </string-name>
          <string-name>
            <surname>Metz</surname>
            , and
            <given-names>Soumith</given-names>
          </string-name>
          <string-name>
            <surname>Chintala</surname>
          </string-name>
          .
          <article-title>"Unsupervised representation learning with deep convolutional generative adversarial networks</article-title>
          .
          <source>" arXiv preprint arXiv:1511.06434</source>
          (
          <year>2015</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Zhu</surname>
          </string-name>
          ,
          <string-name>
            <surname>Jun-Yan</surname>
          </string-name>
          , et al.
          <article-title>"Unpaired image-toimage translation using cycle-consistent adversarial networks</article-title>
          .
          <source>" Proceedings of the IEEE international conference on computer vision</source>
          .
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [8]
          <string-name>
            <surname>He</surname>
          </string-name>
          ,
          <string-name>
            <surname>Bin</surname>
          </string-name>
          , et al.
          <article-title>"Chipgan: A generative adversarial network for Chinese ink wash painting style transfer</article-title>
          .
          <source>" Proceedings of the 26th ACM international conference on Multimedia</source>
          .
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [9]
          <string-name>
            <surname>Mildenhall</surname>
          </string-name>
          ,
          <string-name>
            <surname>Ben</surname>
          </string-name>
          , et al.
          <article-title>"Nerf: Representing scenes as neural radiance fields for view synthesis</article-title>
          .
          <source>" Communications of the ACM 65.1</source>
          (
          <year>2021</year>
          ):
          <fpage>99</fpage>
          -
          <lpage>106</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Mahendran</surname>
            , Aravindh, and
            <given-names>Andrea</given-names>
          </string-name>
          <string-name>
            <surname>Vedaldi</surname>
          </string-name>
          .
          <article-title>"Understanding deep image representations by inverting them</article-title>
          .
          <source>" Proceedings of the IEEE conference on computer vision and pattern recognition</source>
          .
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [11]
          <string-name>
            <surname>Russakovsky</surname>
          </string-name>
          ,
          <string-name>
            <surname>Olga</surname>
          </string-name>
          , et al.
          <article-title>"Imagenet large scale visual recognition challenge."</article-title>
          <source>International journal of computer vision 115</source>
          .3 (
          <year>2015</year>
          ):
          <fpage>211</fpage>
          -
          <lpage>252</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [12]
          <string-name>
            <surname>Müller</surname>
          </string-name>
          ,
          <string-name>
            <surname>Thomas</surname>
          </string-name>
          , et al.
          <article-title>"Instant neural graphics primitives with a multiresolution hash encoding</article-title>
          .
          <source>" arXiv preprint arXiv:2201.05989</source>
          (
          <year>2022</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [13]
          <string-name>
            <surname>Kajiya</surname>
          </string-name>
          , James T., and
          <string-name>
            <surname>Brian P. Von Herzen</surname>
          </string-name>
          .
          <article-title>"Ray tracing volume densities."</article-title>
          <source>ACM SIGGRAPH computer graphics 18.3</source>
          (
          <year>1984</year>
          ):
          <fpage>165</fpage>
          -
          <lpage>174</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [14]
          <string-name>
            <surname>Lin</surname>
          </string-name>
          ,
          <string-name>
            <surname>Tsung-Yi</surname>
          </string-name>
          , et al.
          <article-title>"Microsoft coco: Common objects in context</article-title>
          .
          <source>" European conference on computer vision</source>
          . Springer, Cham,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [15]
          <string-name>
            <surname>Kingma</surname>
            ,
            <given-names>Diederik P.</given-names>
          </string-name>
          , and
          <string-name>
            <given-names>Jimmy</given-names>
            <surname>Ba</surname>
          </string-name>
          .
          <article-title>"Adam: A method for stochastic optimization</article-title>
          .
          <source>" arXiv preprint arXiv:1412.6980</source>
          (
          <year>2014</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>