skip to main content
research-article
Open Access

Portrait shadow manipulation

Published:12 August 2020Publication History
Skip Abstract Section

Abstract

Casually-taken portrait photographs often suffer from unflattering lighting and shadowing because of suboptimal conditions in the environment. Aesthetic qualities such as the position and softness of shadows and the lighting ratio between the bright and dark parts of the face are frequently determined by the constraints of the environment rather than by the photographer. Professionals address this issue by adding light shaping tools such as scrims, bounce cards, and flashes. In this paper, we present a computational approach that gives casual photographers some of this control, thereby allowing poorly-lit portraits to be relit post-capture in a realistic and easily-controllable way. Our approach relies on a pair of neural networks---one to remove foreign shadows cast by external objects, and another to soften facial shadows cast by the features of the subject and to add a synthetic fill light to improve the lighting ratio. To train our first network we construct a dataset of real-world portraits wherein synthetic foreign shadows are rendered onto the face, and we show that our network learns to remove those unwanted shadows. To train our second network we use a dataset of Light Stage scans of human subjects to construct input/output pairs of input images harshly lit by a small light source, and variably softened and fill-lit output images of each face. We propose a way to explicitly encode facial symmetry and show that our dataset and training procedure enable the model to generalize to images taken in the wild. Together, these networks enable the realistic and aesthetically pleasing enhancement of shadows and lights in real-world portrait images.1

Skip Supplemental Material Section

Supplemental Material

a78-zhang.mp4

mp4

162.3 MB

3386569.3392390.mp4

Presentation video

mp4

168.2 MB

References

  1. Eli Arbel and Hagit Hel-Or. 2010. Shadow removal using intensity surfaces and texture anchor points. IEEE TPAMI (2010).Google ScholarGoogle Scholar
  2. Masashi Baba and Naoki Asada. 2003. Shadow Removal from a Real Picture. In SIGGRAPH.Google ScholarGoogle Scholar
  3. Jonathan T. Barron and Jitendra Malik. 2015. Shape, Illumination, and Reflectance from Shading. TPAMI (2015).Google ScholarGoogle Scholar
  4. Qifeng Chen and Vladlen Koltun. 2017. Photographic image synthesis with cascaded refinement networks. In ICCV.Google ScholarGoogle Scholar
  5. Yu Chen, Ying Tai, Xiaoming Liu, Chunhua Shen, and Jian Yang. 2018. Fsrnet: End-to-end learning face super-resolution with facial priors. In CVPR.Google ScholarGoogle Scholar
  6. Xiaodong Cun, Chi-Man Pun, and Cheng Shi. 2020. Towards Ghost-free Shadow Removal via Dual Hierarchical Aggregation Network and Shadow Matting GAN. AAAI.Google ScholarGoogle Scholar
  7. Paul Debevec, Tim Hawkins, Chris Tchou, Haarm-Pieter Duiker, Westley Sarokin, and Mark Sagar. 2000. Acquiring the reflectance field of a human face. In Proceedings of the 27th annual conference on Computer graphics and interactive techniques. 145--156.Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Emily L Denton, Soumith Chintala, Rob Fergus, et al. 2015. Deep Generative Image Models Using a Laplacian Pyramid of Adversarial Networks. In NIPS.Google ScholarGoogle Scholar
  9. Bin Ding, Chengjiang Long, Ling Zhang, and Chunxia Xiao. 2019. ARGAN: Attentive Recurrent Generative Adversarial Network for Shadow Detection and Removal. In ICCV.Google ScholarGoogle Scholar
  10. Craig Donner and Henrik Wann Jensen. 2006. A Spectral BSSRDF for Shading Human Skin. (2006).Google ScholarGoogle Scholar
  11. Randima Fernando. 2004. GPU Gems: Programming Techniques, Tips and Tricks for Real-Time Graphics. Pearson Higher Education.Google ScholarGoogle Scholar
  12. Graham D Finlayson, Mark S Drew, and Cheng Lu. 2009. Entropy minimization for shadow removal. IJCV (2009).Google ScholarGoogle Scholar
  13. Graham D Finlayson, Steven D Hordley, and Mark S Drew. 2002. Removing Shadows from Images. In ECCV.Google ScholarGoogle Scholar
  14. Damien Fourure, Rémi Emonet, Elisa Fromont, Damien Muselet, Alain Tremeau, and Christian Wolf. 2017. Residual Conv-Deconv Grid Network for Semantic Segmentation. In BMVC.Google ScholarGoogle Scholar
  15. Michaël Gharbi, Jiawen Chen, Jonathan T. Barron, Samuel W Hasinoff, and Frédo Durand. 2017. Deep bilateral learning for real-time image enhancement. In SIGGRAPH.Google ScholarGoogle Scholar
  16. Christopher Grey. 2014. Master lighting guide for portrait photographers. Amherst Media.Google ScholarGoogle Scholar
  17. Roger Grosse, Micah K Johnson, Edward H Adelson, and William T Freeman. 2009. Ground Truth Dataset and Baseline Evaluations for Intrinsic Image Algorithms. In ICCV.Google ScholarGoogle Scholar
  18. Maciej Gryka, Michael Terry, and Gabriel J. Brostow. 2015. Learning to Remove Soft Shadows. ACM TOG (2015).Google ScholarGoogle Scholar
  19. Ruiqi Guo, Qieyun Dai, and Derek Hoiem. 2012. Paired regions for shadow detection and removal. TPAMI (2012).Google ScholarGoogle Scholar
  20. Pat Hanrahan and Wolfgang Krueger. 1993. Reflection from Layered Surfaces Due to Subsurface Scattering. In SIGGRAPH.Google ScholarGoogle Scholar
  21. Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. 2016. Deep Residual Learning for Image Recognition. In CVPR.Google ScholarGoogle Scholar
  22. Berthold K. P. Horn. 1974. Determining lightness from an image. Computer Graphics and Image Processing (1974).Google ScholarGoogle Scholar
  23. X Hu, CW Fu, L Zhu, J Qin, and PA Heng. 2019. Direction-aware Spatial Context Features for Shadow Detection and Removal. IEEE transactions on pattern analysis and machine intelligence (2019).Google ScholarGoogle ScholarCross RefCross Ref
  24. Xiaowei Hu, Lei Zhu, Chi-Wing Fu, Jing Qin, and Pheng-Ann Heng. 2018. Direction-Aware Spatial Context Features for Shadow Detection. In CVPR.Google ScholarGoogle Scholar
  25. Jinggang Huang, Ann B Lee, and David Mumford. 2000. Statistics of range images. In CVPR.Google ScholarGoogle Scholar
  26. Henrik Wann Jensen, Stephen R Marschner, Marc Levoy, and Pat Hanrahan. 2001. A Practical Model for Subsurface Light Transport. In SIGGRAPH.Google ScholarGoogle Scholar
  27. Yury Kartynnik, Artsiom Ablavatski, Ivan Grishchenko, and Matthias Grundmann. 2019. Real-time Facial Surface Geometry from Monocular Video on Mobile GPUs. (2019).Google ScholarGoogle Scholar
  28. Liad Kaufman, Dani Lischinski, and Michael Werman. 2012. Content-Aware Automatic Photo Enhancement. In Computer Graphics Forum, Vol. 31. 2528--2540.Google ScholarGoogle ScholarDigital LibraryDigital Library
  29. Salman H Khan, Mohammed Bennamoun, Ferdous Sohel, and Roberto Togneri. 2015. Automatic Shadow Detection and Removal from a Single Image. IEEE TPAMI (2015).Google ScholarGoogle Scholar
  30. Diederik P. Kingma and Jimmy Ba. 2015. Adam: A Method for Stochastic Optimization. In ICLR.Google ScholarGoogle Scholar
  31. Aravind Krishnaswamy and Gladimir VG Baranoski. 2004. A biophysically-based spectral model of light interaction with human skin. In Computer Graphics Forum.Google ScholarGoogle Scholar
  32. Vuong Le, Jonathan Brandt, Zhe Lin, Lubomir Bourdev, and Thomas S Huang. 2012. Interactive facial feature localization. In ECCV.Google ScholarGoogle Scholar
  33. Li-Qian Ma, Jue Wang, Eli Shechtman, Kalyan Sunkavalli, and Shi-Min Hu. 2016. Appearance harmonization for single image shadow removal. In Computer Graphics Forum.Google ScholarGoogle Scholar
  34. Simon Niklaus and Feng Liu. 2018. Context-aware synthesis for video frame interpolation. In CVPR.Google ScholarGoogle Scholar
  35. Simon Niklaus, Long Mai, Jimei Yang, and Feng Liu. 2019. 3D Ken Burns effect from a single image. ACM TOG (2019).Google ScholarGoogle Scholar
  36. Liangqiong Qu, Jiandong Tian, Shengfeng He, Yandong Tang, and Rynson W. H. Lau. 2017. DeshadowNet: A Multi-Context Embedding Deep Network for Shadow Removal. In CVPR.Google ScholarGoogle Scholar
  37. Ravi Ramamoorthi and Pat Hanrahan. 2001. A Signal-Processing Framework for Inverse Rendering. In SIGGRAPH.Google ScholarGoogle Scholar
  38. Ronald A Rensink and Patrick Cavanagh. 2004. The Influence of Cast Shadows on Visual Search. Perception (2004).Google ScholarGoogle Scholar
  39. Imari Sato, Yoichi Sato, and Katsushi Ikeuchi. 2003. Illumination from Shadows. IEEE TPAMI (2003).Google ScholarGoogle ScholarDigital LibraryDigital Library
  40. Soumyadip Sengupta, Angjoo Kanazawa, Carlos D. Castillo, and David W. Jacobs. 2018. SfSNet: Learning Shape, Refectance and Illuminance of Faces in the Wild. In CVPR.Google ScholarGoogle Scholar
  41. Amnon Shashua and Tammy Riklin-Raviv. 2001. The Quotient Image: Class-Based Re-Rendering and Recognition with Varying Illuminations. IEEE TPAMI (2001).Google ScholarGoogle Scholar
  42. YiChang Shih, Sylvain Paris, Connelly Barnes, William T. Freeman, and Frédo Durand. 2014. Style Transfer for Headshot Portraits. SIGGRAPH (2014).Google ScholarGoogle Scholar
  43. Yael Shor and Dani Lischinski. 2008. The shadow meets the mask: Pyramid-based shadow removal. In Computer Graphics Forum.Google ScholarGoogle Scholar
  44. Zhixin Shu, Sunil Hadap, Eli Shechtman, Kalyan Sunkavalli, Sylvain Paris, and Dimitris Samaras. 2017. Portrait lighting transfer using a mass transport approach. In SIGGRAPH.Google ScholarGoogle Scholar
  45. Tiancheng Sun, Jonathan T. Barron, Yun-Ta Tsai, Zexiang Xu, Xueming Yu, Graham Fyffe, Christoph Rhemann, Jay Busch, Paul E. Debevec, and Ravi Ramamoorthi. 2019. Single Image Portrait Relighting. SIGGRAPH (2019).Google ScholarGoogle Scholar
  46. Dmitry Ulyanov, Andrea Vedaldi, and Victor Lempitsky. 2018. Deep image prior. In CVPR.Google ScholarGoogle Scholar
  47. Jifeng Wang, Xiang Li, and Jian Yang. 2018. Stacked Conditional Generative Adversarial Networks for Jointly Learning Shadow Detection and Shadow Removal. In CVPR.Google ScholarGoogle Scholar
  48. Zhou Wang, Alan C. Bovik, Hamid R. Sheikh, and Eero P. Simoncelli. 2004. Image Quality Assessment: From Error Visibility to Structural Similarity. IEEE TIP (2004).Google ScholarGoogle Scholar
  49. Tai-Pang Wu, Chi-Keung Tang, Michael S Brown, and Heung-Yeung Shum. 2007. Natural shadow matting. ACM TOG (2007).Google ScholarGoogle Scholar
  50. Raymond A Yeh, Chen Chen, Teck Yian Lim, Alexander G Schwing, Mark Hasegawa-Johnson, and Minh N Do. 2017. Semantic image inpainting with deep generative models. In CVPR.Google ScholarGoogle Scholar
  51. Ling Zhang, Qingan Yan, Yao Zhu, Xiaolong Zhang, and Chunxia Xiao. 2019b. Effective Shadow Removal Via Multi-Scale Image Decomposition. The Visual Computer (2019).Google ScholarGoogle Scholar
  52. Richard Zhang, Phillip Isola, Alexei A. Efros, Eli Shechtman, and Oliver Wang. 2018a. The Unreasonable Effectiveness of Deep Features as a Perceptual Metric. In CVPR.Google ScholarGoogle Scholar
  53. Xuaner Zhang, Kevin Matzen, Vivien Nguyen, Dillon Yao, You Zhang, and Ren Ng. 2019a. Synthetic defocus and look-ahead autofocus for casual videography. ACM Transactions on Graphics (TOG) 38, 4 (2019), 1--16.Google ScholarGoogle ScholarDigital LibraryDigital Library
  54. Xuaner Zhang, Ren Ng, and Qifeng Chen. 2018b. Single Image Reflection Removal with Perceptual Losses. In CVPR.Google ScholarGoogle Scholar
  55. Quanlong Zheng, Xiaotian Qiao, Ying Cao, and Rynson WH Lau. 2019. Distraction-aware shadow detection. In CVPR. 5167--5176.Google ScholarGoogle Scholar
  56. Hao Zhou, Sunil Hadap, Kalyan Sunkavalli, and David W Jacobs. 2019. Deep Single-Image Portrait Relighting. In ICCV.Google ScholarGoogle Scholar
  57. Lei Zhu, Zijun Deng, Xiaowei Hu, Chi-Wing Fu, Xuemiao Xu, Jing Qin, and Pheng-Ann Heng. 2018. Bidirectional Feature Pyramid Network with Recurrent Attention Residual Modules for Shadow Detection. In ECCV.Google ScholarGoogle Scholar

Index Terms

  1. Portrait shadow manipulation

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in

    Full Access

    • Published in

      cover image ACM Transactions on Graphics
      ACM Transactions on Graphics  Volume 39, Issue 4
      August 2020
      1732 pages
      ISSN:0730-0301
      EISSN:1557-7368
      DOI:10.1145/3386569
      Issue’s Table of Contents

      Copyright © 2020 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 12 August 2020
      Published in tog Volume 39, Issue 4

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • research-article

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader