Comments (3)
indicates that the os.popen('stty size', 'r').read().split() line is not returning the expected output. This is likely because the stty size command did not return the expected result.The stty size command is used to get the size of the terminal window in rows and columns. It should return something like 24 80 to represent a terminal with 24 rows and 80 columns. However, if your terminal or environment does not support the stty size command, it will return an empty string or something different, leading to the error you encountered.
To fix the problem, you can handle cases where the stty size command does not return the expected output. You can do this by using a try-except block to catch the error and provide a default value for term_width and term_height. Here's an example of how to do it:
**
import os
try:
term_height, term_width = os.popen('stty size', 'r').read().split()
except ValueError:
# Handle the case where 'stty size' did not return the expected result
term_height = 24 # Provide a default value
term_width = 80 # Provide a default value
**
from facial-expression-recognition.pytorch.
Thank you very much,I have fixed the issue
from facial-expression-recognition.pytorch.
非常感谢,我已经解决了这个问题
请问怎么解决的呀 我也是有这个问题
from facial-expression-recognition.pytorch.
Related Issues (20)
- about image size
- os.popen HOT 1
- The code doesn't include validate function, is it? HOT 2
- 关于输入
- 运行无效果
- > > > 我也是这个问题,有什么办法不回退到python2.7来解决这个问题么 HOT 2
- 关于CK+数据集的识别率问题 HOT 1
- 有resnet的预训练模型吗? HOT 2
- 'str' object is not callable
- How to use in Rasberry pi 3 B+ HOT 1
- A problem about k_fold_number HOT 3
- Average accuracy on ck+ dataset
- 混淆矩阵的运行 HOT 1
- ValueError: cannot reshape array of size 0 into shape (28709,48,48) HOT 1
- AttributeError: module 'utils' has no attribute 'clip_gradient' HOT 11
- About build model
- 2024-1-10,用当前的维护版本已经实现
- 萌新提问 HOT 1
- Having Trouble when try to run the visualize.py to test the pretrained module
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from facial-expression-recognition.pytorch.