'Returns a map of variables to load from a foreign checkpoint.
Args:
from_detection_checkpoint: whether to restore from a full detection
checkpoint (with compatible variable names) or to restore from a
classification checkpoint for initialization prior to training.
Returns:
A dict mapping variable names to variables.'

def restore_map(self, from_detection_checkpoint=True):

    return {var.op.name: var for var in tf.global_variables()}
