PixWizard icon indicating copy to clipboard operation
PixWizard copied to clipboard

Questions about training data format "ratio"

Open oyly16 opened this issue 11 months ago • 1 comments

Thank you for the wonderful work.

I am trying to ft the model on my own data, and I find there is a field "ratio" in data format, e.g., ratio=1.502145922746781 in configs/data/training_example.json. What does this ratio mean? How are these numbers calculated?

Besides, there is another ratio in configs/data/image2image_s1.yaml scale: 1 ratio: 1.0. What is the difference between this scale ratio and ratio in training_example.json?

oyly16 avatar Feb 22 '25 07:02 oyly16

Hi! Sorry for the delayed reply. The value ​ratio=1.502145922746781 is calculated from w and h, representing the ​aspect ratio (width-to-height ratio). In the YAML file, however, ​ratio refers to ​data repetition count. For example, if ratio=2, the data will appear twice per epoch.

AFeng-x avatar Mar 27 '25 09:03 AFeng-x