Closed onefish51 closed 2 years ago
The error happens here: https://github.com/yuval-alaluf/stylegan3-editing/blob/e2a63fc7f072c4f8b8a7ba1dac8c7f87a8eb1647/inversion/video/inference_on_video.py#L69
I think you could try to replace the line with:
landmarks_transforms = np.array(list(results["landmarks_transforms"].cpu()))
I fixed it in function run_inference
by
results["landmarks_transforms"].append(image_landmarks_transform.cpu())
but in my opinion the issues are version issues.
Hi @onefish51 , I wasn't able to reproduce your error with the environment from the repo so I agree that it's probably a version issue. I tried adding your suggested fix but when I do so, the code falls at a later stage in the inference pipeline: https://github.com/yuval-alaluf/stylegan3-editing/blob/e2a63fc7f072c4f8b8a7ba1dac8c7f87a8eb1647/inversion/video/inference_on_video.py#L69
Since you are working in a different environment and were able to resolve the issue, I think I will close this issue for now. If the issue also occurs in more environments I will try to find a more robust solution to the current one.
when I run
a error occurred !
I run the code in a pytorch1.8.0_cuda11.1 docker image that I built myself . and