dailenson / SDT

This repository is the official implementation of Disentangling Writer and Character Styles for Handwriting Generation (CVPR 2023)
MIT License
968 stars 82 forks source link

程式碼問題回報 #28

Closed leeyu891222 closed 9 months ago

leeyu891222 commented 9 months ago

我注意到loader.py程式碼中對於中文以外的數據集,有對超過150 points的資料進行過濾。 但ScriptDataset.self.indexes並沒有在getitem()中被使用到,導致於英日資料集上只會採用前len(self.indexes)筆資料。

dailenson commented 9 months ago

self.indexes表示数据集的长度,并不是用在__getitem__()中,而是用在__len__()