二 补充知识

2.1 np.int32

Int16 意思是16位整数(16bit integer),相当于short 占2个字节 -32768 ~ 32767

Int32 意思是32位整数(32bit integer), 相当于 int 占4个字节 -2147483648 ~ 2147483647

Int64 意思是64位整数(64bit interger), 相当于 long long 占8个字节 -9223372036854775808 ~ 9223372036854775807
参考链接

二 BUG调试

3.1 ModuleNotFoundError: No module named 'align.detect_face'

解决办法:参考链接

3.2 ValueError: Object arrays cannot be loaded when allow_pickle=False

链接

3.3 ImportError cannot import name show_config from numpy (unknown location)

链接

3.4 人脸检测和对齐(代码修改)

去掉\,并且改为绝对路径

python F:/graduate/Deep-Learning-21-Examples-master/Deep-Learning-21-Examples-master/chapter_6/src/align/align_dataset_mtcnn.py F:/graduate/Deep-Learning-21-Examples-master/Deep-Learning-21-Examples-master/chapter_6/datasets/lfw/raw F:/graduate/Deep-Learning-21-Examples-master/Deep-Learning-21-Examples-master/chapter_6/datasets/lfw/lfw_mtcnnpy_160 --image_size 160 --margin 32 --random_order
Logo

DAMO开发者矩阵,由阿里巴巴达摩院和中国互联网协会联合发起,致力于探讨最前沿的技术趋势与应用成果,搭建高质量的交流与分享平台,推动技术创新与产业应用链接,围绕“人工智能与新型计算”构建开放共享的开发者生态。

更多推荐