当前位置: 代码迷 >> 综合 >> join() argument must be str or bytes, not ‘type‘
  详细解决方案

join() argument must be str or bytes, not ‘type‘

热度:17   发布时间:2023-11-11 10:08:57.0

今天跑程序,发现这个报错,

name =our_model
######修改后######
name= 'our_model'save_filename = 'net_%s.pth'% epoch_label
save_path = os.path.join('./model',name,save_filename)

错误原因:name 那点应该是个字符串,不然报错,修改后就好了

  相关解决方案