-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Description
在cnnModel.py中:
问题1:
line 143:
keep_prop=tf.Variable(initial_value=0.5,name="keep_prop")
line 144:
self.fc_result=create_CNN(input_data=self.data_tensor,num_classes=gConfig['num_dataset_classes'],keep_prop=gConfig['keeps']
keep_prop变量并没有被用到,且在144行,参数keep_prop=gConfig['keeps']不能这样写,因为后面要根据forward_only的值,传不同的参数给keep_prop变量。
我认为应该讲keep_prop定义为place_holder,以下为参考:
self.keep_prop=tf.placeholder(tf.float32,name="keep_prop") self.fc_result=create_CNN(input_data=self.data_tensor,num_classes=gConfig['num_dataset_classes'],keep_prop=self.keep_prop)、
问题2:
line 200:
accuracy = correct.size/(self.percent*gConfig['dataset_size']/100)
这里求accuracy的分母,要改为shuffled_data.shape[0]
问题3:
cnnModel:
step函数中,if forward_only:这一部分应该也需要更改或者重写,请核实
Metadata
Metadata
Assignees
Labels
No labels