hx173149 / C3D-tensorflow

C3D is a modified version of BVLC tensorflow to support 3D ConvNets.
MIT License
588 stars 262 forks source link

How to use trained meta&index&ckpt? #90

Open jianzhelin opened 6 years ago

jianzhelin commented 6 years ago

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

xmzhuxm commented 5 years ago

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!")

Malathi15 commented 5 years ago

@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

lrhjw commented 5 years ago

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 commented 5 years ago

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