hellochick / PWCNet-tf2

TensorFlow-based implementation of "PWC-Net: CNNs for Optical Flow Using Pyramid, Warping, and Cost Volume".
MIT License
27 stars 8 forks source link

Unable to run inference.py #2

Open mpslxz opened 3 years ago

mpslxz commented 3 years ago

I get the following error when running inference.py:

tensorflow/core/framework/op_kernel.cc:1763] OP_REQUIRES failed at save_restore_v2_ops.cc:205 : Out of range: Read less bytes than requested Seems to be something wrong with the checkpoint files?

Ajaz-Ahmad commented 3 years ago

Hi,

I am seeing the same issue. Were you able to solve it. If yes, please provide steps. Thank you.

mpslxz commented 3 years ago

No, didn’t work for me.

On Mar 19, 2021, at 4:10 AM, Ajaz Ahmad @.***> wrote:

 Hi,

I am seeing the same issue. Were you able to solve it. If yes, please provide steps. Thank you.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

smehdia commented 3 years ago

For me the issues is solved by downloading the weights separately from the checkpoints directory. When I downloaded the checkpoints with downloading the whole project, the checkpoint were not downloaded correctly. Maybe because the checkpoints are stored in GitLFS.

wenxiaojie commented 2 years ago

Hi @smehdia, could you teach me how to download the weights separately from the checkpoints directory? I got the message that says the repository is over its data quota, Account for LFS bandwidth should purchase more data packs to restore access.

Thanks in advance!

smehdia commented 2 years ago

@wenxiaojie I have re-uploaded the weights in here: PWCNet-tf2-weights

wenxiaojie commented 2 years ago

It works now. Thank you very much! @smehdia

ilinii commented 2 years ago

Do u know if there is a way to run the inference in real time on a webcam ?