Skip to content

python3 train_model.py报错 #104

@Jamin2018

Description

@Jamin2018

如下
(base) MBP:cnn_captcha-master jamin$ python3 train_model.py
Traceback (most recent call last):
File "train_model.py", line 275, in
main()
File "train_model.py", line 269, in main
image_suffix, train_batch_size, test_batch_size, verify=False)
File "train_model.py", line 60, in init
super(TrainModel, self).init(image_height, image_width, len(label), char_set, model_save_dir)
File "/Users/jamin/PycharmProjects/finance/cnn_captcha-master/cnnlib/network.py", line 22, in init
self.X = tf.placeholder(tf.float32, [None, self.image_height * self.image_width]) # 特征向量
AttributeError: module 'tensorflow' has no attribute 'placeholder'

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