fix the tf assign error of copy the trained variable from black to white
This commit is contained in:
parent
c2775df8e6
commit
f425085e0a
@ -122,7 +122,7 @@ class ResNet(object):
|
|||||||
print('Successfully loaded')
|
print('Successfully loaded')
|
||||||
else:
|
else:
|
||||||
raise ValueError("No model in path {}".format(white_checkpoint_path))
|
raise ValueError("No model in path {}".format(white_checkpoint_path))
|
||||||
self.update = [tf.assign(black_params, white_params) for black_params, white_params in
|
self.update = [tf.assign(white_params, black_params) for black_params, white_params in
|
||||||
zip(self.black_var_list, self.white_var_list)]
|
zip(self.black_var_list, self.white_var_list)]
|
||||||
|
|
||||||
# training hyper-parameters:
|
# training hyper-parameters:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user