运行 WuJie1010/Facial-Expression-Recognition.Pytorch 的 代码

通过 idea 打开,这些依赖全部都用最新的,直接让idea 解决依赖就行了,py用的是3.7 是可以的。
然后就是要 在images文件夹里创建一个 results 文件夹,不然会报错

以下是安装依赖的过程,其实都是在走弯路,可以不看。

因为看到他用的是py2.7,我就在尝试装py2,装相应的pytorch,但是装不好,最后还是直接用py3.7,然后idea帮我pip install 就行了。能用3的原因,应该是之前有大佬pull了py3的代码吧。。
(base) C:\Users\Lenovo>conda create -n py2_7_pytorch_0_3_1 python=2.7

conda install pytorch-cpu=0.3.1 torchvision-cpu=0.3.1
https://blog.csdn.net/sinat_37916505/article/details/86128289

PackagesNotFoundError: The following packages are not available from current channels:

  • torchvision-cpu=0.3.1
  • pytorch-cpu=0.3.1

conda install pytorch-cpu torchvision-cpu
但是不指定版本的话 会怎么样

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/win-64/repodata.json
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
‘https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/win-64’

python visualize.py
python visualize_cpu.py -cpu

“D:\project\python_project\ALBERT\venv\Scripts\python.exe” visualize_cpu.py --cpu

pip install numpy

conda install -c peterjc123 pytorch-cpu

https://github.com/peterjc123/pytorch-scripts

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - pytorch-cpu -> python[version='2.6.*|2.7.*|3.5.*|3.6.*|3.6.12|3.6.12|>=3.8,<3.9.0a0|>=3.9,<3.10.0a0|3.7.9|3.6.9|3.6.9|3.6.9|>=2.7,<2.8.0a0|3.6.9|3.4.*|3.3.*',build='0_73_pypy|1_73_pypy|3_73_pypy|4_73_pypy|5_73_pypy|2_73_pypy']- pytorch-cpu -> python[version='>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0']

Your python: python=2.7

If python is on the left-most side of the chain, that’s the version you’ve asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

pip install pytorch

https://www.cnblogs.com/-wawcc/p/13972879.html

http://www.cocoachina.com/articles/69415
如果激活了您感兴趣的环境,则可以在环境变量中找到该答案.

https://blog.csdn.net/qq_36401512/article/details/86646035
liunx下pytorch(python2.7)先前几个版本的安装(由于官网点击先前版本进不去)

FileNotFoundError: [Errno 2] No such file or directory: ‘images/results/l.png’
所以要创建文件夹吧

E:\project\python_project\Facial-Expression-Recognition.Pytorch-master>“D:\project\python_project\ALBERT\venv\Scripts\python.exe” visualize_cpu.py --cpu
Namespace(cpu=True)
visualize_cpu.py:65: UserWarning: volatile was removed and now has no effect. Use with torch.no_grad(): instead.
inputs = Variable(inputs, volatile=True)
visualize_cpu.py:70: UserWarning: Implicit dimension choice for softmax has been deprecated. Change the call to include dim=X as an argument.
score = F.softmax(outputs_avg)
The Expression is Angry
可以运行了

运行 WuJie1010/Facial-Expression-Recognition.Pytorch 的 代码相关推荐

  1. Pyramid With Super Resolution for In-The-Wild Facial Expression Recognition

    论文翻译 摘要 一.介绍 Ⅱ.金字塔超分辨率(PSR)网络 A.STN块 B.缩放块 C.LOW AND HIGH-LEVEL FEATURE EXTRACTOR D. FULLY CONNECTED ...

  2. Joint Pose and Expression Modeling for Facial Expression Recognition 论文翻译

    Joint Pose and Expression Modeling for Facial Expression Recognition Abstract 面部表情识别是一项具有挑战性的任务,因为在任 ...

  3. 【菜鸡读论文】Former-DFER: Dynamic Facial Expression Recognition Transformer

    Former-DFER: Dynamic Facial Expression Recognition Transformer 哈喽,大家好呀!本菜鸡又来读论文啦!先来个酷炫小叮当作为我们的开场! 粉红 ...

  4. 表情识别:Facial Expression Recognition with Two-branch Disentangled Generative Adversarial Network

    论文:Facial Expression Recognition with Two-branch Disentangled Generative Adversarial Network 代码:TDGA ...

  5. 2020cvpr最佳人脸识别-Suppressing Uncertainties for Large-Scale Facial Expression Recognition

    原文链接 代码即将开源 Abstact 由于表情模糊.低质量的人脸图像以及注释者的主观性等因素的影响,对一个定性的大规模人脸表情数据集进行注释是非常困难的.这些不确定性导致了深度学习时代大规模人脸表情 ...

  6. [论文阅读] Facial Expression Recognition Using Residual Masking Network

    Facial Expression Recognition Using Residual Masking Network 论文链接:https://ieeexplore.ieee.org/docume ...

  7. [论文阅读] ICCV2015 Joint Fine-Tuning in Deep Neural Networks for Facial Expression Recognition

    Joint Fine-Tuning in Deep Neural Networks for Facial Expression Recognition 论文链接:https://ieeexplore. ...

  8. Deep Facial Expression Recognition: A Survey 笔记

    Deep Facial Expression Recognition: A Survey 论文笔记 ​ 首先是我读这篇论文的目的,我的研究方向是"基于面部表情的情感识别",是偏向于 ...

  9. 【菜鸡读论文】Face2Exp: Combating Data Biases for Facial Expression Recognition

    [菜鸡读论文]Face2Exp: Combating Data Biases for Facial Expression Recognition 最近上海开始降温了,而且常常下雨,天气开始变得好冷啊! ...

  10. 【论文阅读】面部表情识别综述(2018年)(Deep Facial Expression Recognition: A Survey)

    论文地址:https://ieeexplore.ieee.org/abstract/document/9039580 百度网盘地址:https://pan.baidu.com/s/1A8NKT_wz4 ...

最新文章

  1. Python和NLTK自然语言处理
  2. 汇智清华,医道生机 | 第四届清华校友三创大赛医疗健康行业论坛圆满召开
  3. TCP/IP详解--第十二章
  4. 有序数组中查找第一个比target大的数
  5. html免费天气预报代码,免费自我定制天气预报代码
  6. duty:用户名是手机号显示空格
  7. python 定义类 学习2
  8. Active Diretory 全攻略(六)--文件夹权限与共享(2)
  9. RVCT31编译问题
  10. 目标检测的性能上界讨论
  11. 神经网络与机器学习笔记
  12. 数学建模专栏 | 第十一篇:MATLAB CUMCM真题求解实例二:优化型
  13. 外地人排北京新能源指标需要什么条件?需要摇号吗?
  14. 不良事件总结怎么写_不良事件总结
  15. zabbix agent安装配置
  16. 计算机相关的迎新标语,以迎新为主题的标语
  17. 2020年8月腾讯云服务器收费标准(CPU/内存/带宽/磁盘价格表)
  18. 如何在抖音官网链接中一键复制微信号打开微信
  19. 计算机网络教研活动讨论,创新教研活动形式, 开展网络教研。是提高教师有效...
  20. Plants vs. Zombies【二分】

热门文章

  1. 关于Menu的根菜单项背景图片
  2. Recursion的介绍
  3. 【计算机图形学】期末考试课后习题重点复习(第1-2章)
  4. JSP中的page指令常用的属性
  5. 码头船只货柜管理系统(Java+SSH+MySQL)
  6. eNSP-小型网络拓扑(DNS、DHCP、网站服务器、无线路由器)
  7. 17家IT创业公司的血泪史(1)
  8. 【idea美化篇】3个插件让你的idea彻底变脸
  9. crsctl stat res -t
  10. 几步教会你用solidworks实现小汽车的运动动画