第一步:你需要用root权限进入你要开锁的那个文件的目录下
第二步:使用下面的命令:
ps:abc是你的用户名字
models是你的目标解锁文件名字
##若回车后没有报错就说明你解锁成功
(base) root@abc-ThinkCentre-M910s-N000:/home/abc/下载/Self-Attention-GAN-master#
sudo chown abc models
(base) root@abc-ThinkCentre-M910s-N000:/home/abc/下载/Self-Attention-GAN-master#
cd /home/abc/下载/Self-Attention-GAN-master/models
#同理,我又解锁了一个
(base) root@abc-ThinkCentre-M910s-N000:/home/abc/下载/Self-Attention-GAN-master/models# sudo chown abc sagan_celeb
(base) root@abc-ThinkCentre-M910s-N000:/home/abc/下载/Self-Attention-GAN-master/models#
不出意外的话,这样就成功了!good luck to you!