描述
在使用paddle.fluid导入EndStepEvent过程中
global step
if isinstance(event, fluid.EndStepEvent):
if event.step == 0:
plot_cost.append('Train Cost', step, event.metrics[0])
python3 server.py 127.0.0.1 8888
Traceback (most recent call last):
File “server.py”, line 83, in
main()
File “server.py”, line 76, in main
os.exit()
AttributeError
:
module
‘os’ has no
attribute
‘exit’
部分代码入下:
from socket import *
import sys,os
#实现登录
def do_login(s,user,name,addr):
for i in user:
>>> import
cv2
>>> seeds =
cv2
.
ximg
proc
.createSuperpixelSEEDS(img_sp.shape[1], img_sp.shape[0], img_sp.shape[2], num_superpixels, 15, 3, 5, True)
Traceback (most recent call last):
AttributeError
:
module
'
cv2
.
cv2
' has no
attribute
'
ximg
p