You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from tools import generate_detections as gdet
...
encoder = gdet.create_box_encoder("model_data/mars-small128.pb", batch_size=1)
...
features = encoder(frame, boxes)
...
if one looks in the appropriate source: tools/generate_detections .py, there one finds
import tensorflow as tf
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
and exactly this spoils in the main code everything which has to deal with tensorflow 2. In fact, it is needed only inside class ImageEncoder(object)
Would someone hint how to work out this encoder in tf2 (best), or how to limit the use of tf1 to the encoder module only, or at least explain - what is the purpose of encoder?
Fail to convert tiny version, any help for it? thanks
The text was updated successfully, but these errors were encountered: