Open jiapei100 opened 5 years ago
I meet the same problem with yours,Could you please tell how did you solve it?
Can you tell me why the args.current_hash = subprocess.check_output(["git", "rev-parse", "HEAD"]).rstrip() will go wrong. FileNotFoundError: [WinError 2] 系统找不到指定的文件。
用Git commit 一下就好了
How to solve this problem??
Traceback (most recent call last):
File "main.py", line 212, in
python main.py --inference --model FlowNet2 --save_flow --save ./output --inference_dataset ImagesFromFolder --inference_dataset_root ./data/MPI-Sintel-testing/test/clean/wall --resume ./models/FlowNet2_checkpoint.pth.tar
Try this!
@leeeeeeo so what if i want to test my own video? Use the pre-trained model FlowNet2 directly.
@leeeeeeo so what if i want to test my own video? Use the pre-trained model FlowNet2 directly.
First of all, you git clone flownet-python and install it. Then import:
import sys sys.path.import('<path to flownet repo>') from models import FlowNet2
Initialize model:
`class Object(object): pass
args = Object() args.rgb_max = 255. args.fp16 = False
model = FlowNet2(args)`
Load state dict:
model.load_state_dict(torch.load('FlowNet2_checkpoint.pth.tar')['state_dict'])
Remember to get ['state_dict']
seems the MpiSintel class are not written correctly? this means .flo file and images are both needed, but during inference, why need flo files?
@leeeeeeo so what if i want to test my own video? Use the pre-trained model FlowNet2 directly.
Hi bro, do you know how to test my own video now? expect for your reply.
1) Where is checkpoints?
2) Fail to run training
Error message: