Facing the same issue as above. The github issue has not yet been resolved so I have little hope for this working.
  

      github.com/tensorflow/models
  

  
    
  
	  
  

  
    
      '_UserObject' object has no attribute 'summary' 53
    

    
      
        opened 
        
          
        
        Jul 29, 2020
      
      


      
        
          
          nicholasguimaraes
        
      
    

    
        models:research:odapi
        type:support
    
  


  
    Hello, I'm trying to load a ssd_resnet50_v1_fpn_640x640_coco17_tpu-8 I just fine… tuned but I'm coming across this error:

'_UserObject' object has no attribute 'summary'

Here are the 4 lines of code I have;

import tensorflow as tf 

model_dir = 'C:/Users/Windows/Documents/Tensorflow_Obj_Det_API/models/research/object_detection/inference_graph/saved_model'

trained_model = tf.saved_model.load(model_dir) 

trained_model.summary()

I've tried including the save_model.pb on the path to the model but then I get this error:

SavedModel file does not exist at: C:\Users\Windows\Documents\Tensorflow_Obj_Det_API\models\research\object_detection\inference_graph\saved_model\saved_model.pb/{saved_model.pbtxt|saved_model.pb}

Anyone knows how to load a trained model to do inference?