Skip to content

Train报错 #19

@GuanxiongLiu

Description

@GuanxiongLiu

运行cnn_full的训练时出错,我目前在debug,如果作者有遇到过,请告诉我,谢谢🙏

python train.py -n cnn -t False -e 200 -b 4 -lr 1e-4 -d False --anchor_path ./model_data/yolo_
anchors.txt
File "train.py", line 182
exec('map_with_iou{} = tf.placeholder(tf.float32)'.format(int(iou * 100)))
SyntaxError: unqualified exec is not allowed in function 'train' because it contains a nested
function with free variables

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions