Closed JunyaoHu closed 1 year ago
Solved. If download the model manually, we need to decompress the tar file, then it can run.
Hello, I was wondering if you use tensorflow 2.8.0 Does the following error not occur when tensorflow-hub 0.12.0? i3d_model = hub.Module(hub.resolve("./i3d-kinetics-tensorflow1-400-v1"), name=module_name) AttributeError: module 'tensorflow_hub' has no attribute 'Module'
Hello. When I try to use your provided code to calculate FVD, the terminal shows a wrong, and I cannot solve it.
tensorflow version is the same as you mentioned in your readme.
Because I am in China, I can't directly use the code to download the model due to network problems, I only modified the code here to read the model I downloaded manually
https://github.com/plai-group/flexible-video-diffusion-modeling/blob/4c3d78b07fd3cd5dd0019ed5fcac9579813f26ff/improved_diffusion/frechet_video_distance.py#L124-L129
I use your command
python scripts/video_fvd.py --eval_dir ./results/ema_0.9999_550000/adaptive-hierarchy-2_20_10_1000_36 --num_videos 100
, then thei3d-kinetics-400
model will be downloaded by a request for https://tfhub.dev/deepmind/i3d-kinetics-400/1?tf-hub-format=compressed. And then the wrong comes.I am not sure why comes
tfhub_module.pb; Not a directory
, it means I cannot download the model manually?