Let Synology Photos Face Recognition Works Without GPU Support, Forces With CPU in DS918+


Recommended Posts

https://blog.jinlife.com/index.php/archives/49/

https://github.com/jinlife/Synology_Photos_Face_Patch/releases

 

Original work credits to Chinese developer @jinlife

"Seems Synology Photos uses OpenCV's DNN to make face recognition works. The library which Synology uses can call different NN model according to different Synology models, and uses GPU to speed up. If hardware doesn't match with library, then it won't work.

So the main problem that Face Recognition doesn't work is GPU problem, not if the S/N is valid or not."

 

Developer has wrote how this patch works in his website.

 

For fix, follow these instructions:

  1. backup original library:
    cp /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so /to/anywherwe/you/want

     

  2. download patch from developer's github (check your version before download it)
  3. copy patch to library:
    sudo cp /from/where/you/saved/patch /var/packages/SynologyPhotos/target/usr/lib/
  4. Restart your device, or just disable synology photos then reenable again.
  5. Do re-index from Synology Photos' setting.
  6. Take a break. It will work after a few minutes.

image.thumb.png.df87ea4dc8327fb2183fc8a7da35fe0f.png

image.thumb.png.48277495f5b2f8f962e3b6d69f702a91.pngimage.thumb.png.72e0447cec28064fc9cd6274abce04f2.png

 

Only DS918+ need this fix, since DS3615xs doesn't support GPU acceleration.

 

Edited by nk950357
Link to post
Share on other sites
  • 2 weeks later...
On 11/19/2021 at 5:04 PM, T-REX-XP said:

Thank you for the solution. Is it possible to use google coral ai stick for HW acceleration? 

The embedded intel core GPU is not so good for AI HW acceleration. For example: The i7-10xxx and its UHD630.  CPU and GPU might be similar speed. 

Unless you are using some Nvidia GPU card like 1080Ti, then the AI calculation is much more faster than the CPU.

 

For the google coral AI stick, it seems not compatible with OpenCV and its DNN. You may not able to use it in Synology.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.