wusonghe / TMFI-Net

12 stars 1 forks source link

A question about the test code #3

Closed MinglangQiao closed 1 year ago

MinglangQiao commented 1 year ago

Hi, thanks for sharing your nice work! It seems that there is a small issue in the test code. In line51 of here, list_frames.sort() will not arrange the frames by numbers like "0.png, 1.png, 2.png, 3.png, .... ". Instead, list_frames.sort() results in "0.png, 1.png, 10.png, 100.png, ... ". It may have some negative impact on the result, could you please check this?

wusonghe commented 1 year ago

Hello, thank you for your interest in this paper. Regarding the problem you mentioned, you can run the following code. The picture names of the DHF1K dataset are all four digits, so they can be sorted normally.

words = ['1', '2', '10'] # 字符串长度不同时 words.sort() print(words)

['1', '10', '2']

words = ['001', '002', '010'] # 字符串长度相同时 words.sort() print(words)

['001', '002', '010']

MinglangQiao commented 1 year ago

I get it, thanks for your reply!