sunniesuhyoung / DST

Deformable Style Transfer (ECCV 2020)
https://sunniesuhyoung.github.io/DST-page/
261 stars 35 forks source link

Singularity happens sometimes in solve_interpolation #5

Open zwfcrazy opened 3 years ago

zwfcrazy commented 3 years ago

Sometimes singularity happens when calling solve_interpolation.

Traceback (most recent call last): File "main.py", line 115, in device=device) File "/root/DST/styletransfer.py", line 144, in DST new_im, content_im_warp, warp_field = apply_warp(new_im, [src_Kpts_aug], [dst_Kpts_aug], device, sharp=sharp_warp, im2=content_im_warp) File "/root/DST/warp.py", line 432, in apply_warp new_im, new_im2, warp_field = image_warp(new_im, dst, dst-src, device, sharp=sharp, img2=new_im2) File "/root/DST/warp.py", line 86, in image_warp w, v = solve_interpolation(dst_pts, flow_pts, device) File "/root/DST/warp.py", line 226, in solve_interpolation wv, = torch.solve(rhs, lhs) RuntimeError: solve_cuda: U(371,371) is zero, singular U.

I tested 10 image pairs, 2 of them got this error.

Update: this seems to be a random event. For the same pair of images, it may or may not happen.

FDU-WeiXiZhang commented 3 years ago

Same here.

RazvanRotaru commented 2 years ago

try deleting NBB and redownloading it. worked for me

VladimirYugayKaia commented 2 years ago

@FDU-WeiXiZhang did you manage to solve the problem? Always getting into the same issue

@RazvanRotaru tried your solution, didn't really work for me

jiangzuojifeng commented 2 years ago

Same problem

Bakko000 commented 1 year ago

Same problem.