C3D-tensorflow icon indicating copy to clipboard operation
C3D-tensorflow copied to clipboard

How to use trained meta&index&ckpt?

Open jianzhelin opened this issue 6 years ago • 4 comments

I have trained the model by training part, but how to use this trained model in prediction part?

jianzhelin avatar Sep 26 '18 19:09 jianzhelin

ckpt = tf.train. get_checkpoint_state('./models') if ckpt and ckpt.model_checkpoint_path: saver.restore(sess, ckpt.model_checkpoint_path) print("Model Loading Done!")

xmzhuxm avatar Dec 12 '18 09:12 xmzhuxm

@malege when I tried to run the code you gave I got this error

Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
NameError: name 'saver' is not defined

can you help me to solve this? Thanks

Malathi15 avatar Apr 04 '19 09:04 Malathi15

I have trained the model by training part, but how to use this trained model in prediction part?

have you finished this problem? i meet the same problem

lrhjw avatar Sep 02 '19 08:09 lrhjw

i solve this problem,when you use the predict_c3d_ucf101.py ,you can use .data.... as model

lrhjw avatar Sep 02 '19 08:09 lrhjw