关于Synology Photos 人脸识别的网上资料
一、打开群晖套件中心,已安装,找到Synology Photos,查看下图位置,先确认一下安装的套件版本是1.3.3-0330或者1.4.0-0458或者1.5.0-0489;
二、在电脑打开SSH软件,用root用户登录到群晖的SSH下,如果你的群晖没有启用root,,看到以root@开头的就表示已经处于root状态了;
三、Synology Photos套件是1.3.3-0330版本的,输入以下命令:
synopkgctl stop SynologyPhotos
cp -f /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so-bak
cp -f /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0 /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0-bak
wget https://ghproxy.com/https://github.com/jinlife/Synology_Photos_Face_Patch/releases/download/1.3.3-0330/libsynophoto-plugin-model.so
wget https://ghproxy.com/https://github.com/jinlife/Synology_Photos_Face_Patch/releases/download/1.3.3-0330/libsynophoto-plugin-model.so.1.0
cp -f libsynophoto-plugin-model.so /var/packages/SynologyPhotos/target/usr/lib/
cp -f libsynophoto-plugin-model.so.1.0 /var/packages/SynologyPhotos/target/usr/lib/
chmod +x /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so
chmod +x /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0
chown SynologyPhotos:SynologyPhotos /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so
chown SynologyPhotos:SynologyPhotos /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0
synopkgctl start SynologyPhotos
四、Synology Photos套件是1.4.0-0458版本的,输入以下命令:
synopkgctl stop SynologyPhotos
cp -f /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so-bak
cp -f /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0 /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0-bak
wget https://ghproxy.com/https://github.com/jinlife/Synology_Photos_Face_Patch/releases/download/1.4.0-0458/libsynophoto-plugin-model.so
wget https://ghproxy.com/https://github.com/jinlife/Synology_Photos_Face_Patch/releases/download/1.4.0-0458/libsynophoto-plugin-model.so.1.0
cp -f libsynophoto-plugin-model.so /var/packages/SynologyPhotos/target/usr/lib/
cp -f libsynophoto-plugin-model.so.1.0 /var/packages/SynologyPhotos/target/usr/lib/
chmod +x /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so
chmod +x /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0
chown SynologyPhotos:SynologyPhotos /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so
chown SynologyPhotos:SynologyPhotos /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0
synopkgctl start SynologyPhotos
五、Synology Photos套件是1.5.0-0489版本的,输入以下命令:
synopkgctl stop SynologyPhotos
cp -f /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so-bak
cp -f /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0 /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0-bak
wget https://ghproxy.com/https://github.com/jinlife/Synology_Photos_Face_Patch/releases/download/1.5.0-0489/libsynophoto-plugin-model.so
wget https://ghproxy.com/https://github.com/jinlife/Synology_Photos_Face_Patch/releases/download/1.5.0-0489/libsynophoto-plugin-model.so.1.0
cp -f libsynophoto-plugin-model.so /var/packages/SynologyPhotos/target/usr/lib/
cp -f libsynophoto-plugin-model.so.1.0 /var/packages/SynologyPhotos/target/usr/lib/
chmod +x /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so
chmod +x /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0
chown SynologyPhotos:SynologyPhotos /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so
chown SynologyPhotos:SynologyPhotos /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0
synopkgctl start SynologyPhotos
六、在浏览器打开Synonlogy Photos,在右上角设置菜单,点”重建索引“,耐心等待;
七、如果你的群晖系统重装系统、升级系统、重装Synlology Photos套件、升级Synlology Photos套件,那么该补丁都会失效,需要重新打上对应版本的补丁。
八、如果使用虚拟机安装群晖,至少要分四个CPU核心给群晖虚拟机,否则这个人脸识别有可能无法正常使用。
九、如果使用上述补丁后,想恢复系统默认的文件,需要输入以下命令:
synopkgctl stop SynologyPhotos
rm -f /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so
rm -f /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0
mv -f /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so-bak /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so
mv -f /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0-bak /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0
chmod +x /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so
chmod +x /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0
chown SynologyPhotos:SynologyPhotos /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so
chown SynologyPhotos:SynologyPhotos /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0
synopkgctl start SynologyPhotos
评论区