MoNCE icon indicating copy to clipboard operation
MoNCE copied to clipboard

questions about swd

Open haoren55555 opened this issue 2 years ago • 6 comments

Sorry to bother, I saw you used SWD (sliced wasserstein distance) in the paper, and I also want to use this score as a metric for some tests. Could you offer your code to calculate it? thanks!

haoren55555 avatar Dec 11 '22 12:12 haoren55555

please refer to Utils/SWD/cal_sliced_wasserstein.py.

fnzhan avatar Dec 11 '22 15:12 fnzhan

thanks!

haoren55555 avatar Dec 12 '22 06:12 haoren55555

well, i tested the code, and it seemed that the code somehow needs a "sliced_wasserstein.API", and could you tell me where to get it?

haoren55555 avatar Dec 12 '22 07:12 haoren55555

please refer to Utils/SWD/sliced_wasserstein.py

fnzhan avatar Dec 12 '22 12:12 fnzhan

I tested the code and it worked perfectly well. The last question I want to ask is that there are six scores "SWDx1e3_256 SWDx1e3_128 SWDx1e3_64 SWDx1e3_32 SWDx1e3_16 SWDx1e3_avg" there, and it seemed to use the last one, right? also the two image folders I should use is the fake_B(generated_zebra, for example) and real_B(real_zebra, for example), right?

haoren55555 avatar Dec 13 '22 03:12 haoren55555

yes, as you described.

fnzhan avatar Dec 13 '22 13:12 fnzhan