Tensorflow 
    
  
    
    
    
      Pre-trained Model 
    
  
    
    
    
      Image to Image Transformer 
    
  
 
  
    
      
       
  
  
    
      
    
    
      
       
  
  Tensorflow.js POC 8: Super Resolution with waifu2x 
Overview 
Figure 1 Computer Vision in AI 
 
Git Repo 
Status 
Progress 
Comments 
 
 
tensorflow.js POC #8  
 
 
Overview 
Super Resolution of images are important for video quality. Common SR like bicubic or lanczos3, now embedded in GPU as default SR. But, in 4K display or larger display, common SR is not enough, SR with Deep learning provide significant improvements on differnt target images. 
Super resolution of images highly depends the properties of the image, like animation, line draw, or a full color complex nature images will have different results on different algorithms. Here we benchmark several traditional SR algorithm of bicubic, lanczos3, (Bell, and ....) from imageenlarger  and do a comparison with a DL SR on line draw or animation style image. 
Now we provide A/B Test on the different target images to verify the results of deep learning and normal images.
A/B test on waifu2x-NCNN vs. waifu2x vs. lanczos3 vs. bicubic vs. SRGAN 
1096x632_PPT_image 
1096x632_PPT_image is a 1096x632 size PNG with words and graph PPT. We use it to identify the clearance of the SR.
SRMD-NCNN = waifu2x-NCNN = waifu2x > lanczos3 > bicubic > Anime4K > SRGAN (bicubic is most GPU interpolation algorithm. So lanczos3 and waifu2x show better results to normal GPU). SRGAN, Anime4K: SR result is GG..
Quality comparison: bicubic < waifu2x 
Part II 
Check Part II 
Next step 
WenGL version of waifu2x.js 
Speedup of waifu2x 
 
References 
Jekyll image comparison slider 
In this page, twentytwenty image compare slider  is used to enable image comparison slider.
To enable it in your post, please add the following code into your markdown documents
{ %   slider2020   % } 
   ! [ lanczos3 ](.. / .. / assets / images / 1096 x632_PPT_image - lanczos3 . png ) 
   ! [ Waifu2x ](.. / .. / assets / images / 1096 x632_PPT_image_Waifu2x - NCNN - Vulkan . png ) 
{ %   endslider2020   % } 
After above, you can have first version of image compariosn slider. But, if you want to change the label of the images. you will need to find default_with_image_slider.html and modify the code as below in the beginning of the .md file
< body > 
     < script   src = "https://code.jquery.com/jquery-3.3.1.min.js"   integrity = "sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="   crossorigin = "anonymous" >< /script> 
     < script   src = "../../assets/plugins/jquery.event.move.js" >< /script> 
     < script   src = "../../assets/plugins/jquery.twentytwenty.js" >< /script> 
     < script > 
       $ ( function () 
       { 
         $ ( ".twentytwenty-container" ). eq ( 0 ). twentytwenty ({ default_offset_pct :   0.5 , before_label :   'lanczos3' , after_label :   'waifu2x-NCNN' , click_to_move :   true }); 
       }); 
     < /script> 
< /body> 
You also can check the code of this site in gitbucket  and search for all 'twentytwenty'
  
    
  
  
    
  
  
    
      
  
    
       
    2025-01-15 
   
    
    
      
  
    
       
    2024-08-14 
   
    
    
    
      
  
    
      
  
     
  GitHub