Skip to content

Conversation

@qingqing01
Copy link
Collaborator

No description provided.

batch_size,
num_passes,
model_save_dir='model',
init_model_path=None):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好像没有地方用到这个选项?

gt_label,
gt_box,
difficult,
21,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'class_num' should be defined as a variable to avoid magic number.

staircase=True),
regularization=fluid.regularizer.L2Decay(0.0005), )

opts = optimizer.minimize(loss)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that 'opts' is not necessary.

fetch_list=[accum_map])
print("Test {0}, map {1}".format(pass_id, test_map[0]))

#print fluid.default_main_program()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this comments?



# From Paddle V1
def load_paddlev1_vars(place):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

load_paddlev1_vars load_and_set_vars load_vars这三个方法的名称和关系有待优化一下。

@qingqing01
Copy link
Collaborator Author

@wanghaoshuang Thanks! I will fix them in next PR.

@qingqing01 qingqing01 merged commit d07fd10 into PaddlePaddle:develop Mar 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants