我的环境列表:
pip从Anaconda安装tensorflow。 我的tensorflow版本是tensorflow-1.13.1
我已经使用Anaconda提示符命令行安装了keras和opencv-python (pip安装xxx)。
这是我的代码:
User
当我使用PyCharm编写一些Python代码时。我无法正确构建项目。 问题如下:
import os
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
from PIL import Image
import glob
import cv2
from sklearn.model_selection import train_test_split
from keras.layers import Dropout,Dense
from keras.models import Sequential,load_model
from keras.layers.normalization import BatchNormalization
from keras.applications import VGG16
from sklearn.metrics import accuracy_score,confusion_matrix
human_expression=glob.glob("E:/expression/sad/*");
print("number of images in sad emotion:"+str(len(human_expression)));