Skip to content

TF2 - Implement tf.saved_model.load #63

Open
@IamSierraCharlie

Description

@IamSierraCharlie

Hello, as per the subject, are there plans to implement TF2 functions?

For example:

   tf.saved_model.load 

This is part of the code I would like to implement in C# from python

   image_np = load_image_into_numpy_array(image_path)
   input_tensor = tf.convert_to_tensor(image_np)
   input_tensor = input_tensor[tf.newaxis, ...]
   detections = detect_fn(input_tensor)
   num_detections = int(detections.pop('num_detections'))
   detections = {key: value[0, :num_detections].numpy() for key, value in detections.items()}
   detections['num_detections'] = num_detections
   detections['detection_classes'] = detections['detection_classes'].astype(np.int64)

Some of this I can do, but now with TF2 being the standard (no frozen inference graph), it is difficult to proceed with building models in the old standard.

Just want to know if there are any plans as I cant find anything in the documentation that matches this use case from python.

Many thanks for your work so far.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions