kohya-ss / kohya-ss/sd-scripts
Question about resample
- Dominant language
- Python
- Stars
- 7.2k
- Forks
- 1.2k
- Avg merge
- 11m
- Merged PRs (30d)
- 2
Description
Can we just change
https://github.com/kohya-ss/sd-scripts/blob/cd19df49cd512e13ac90db115c424d19c0e8868a/library/train_util.py#L2209
To
_cv2.INTER_LANCZOS4_
on this line in this file so that the lanczos4 algorithm is used to downscale the size of the training images?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the referenced line 2209 in library/train_util.py and inspect how cv2 resamples training images during downscaling. Check whether the proposed interpolation constant is appropriate for this path; done means the requested Lanczos4 behavior is either implemented there or the question is answered with evidence from the existing code.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- opencv, python
- Domain
- computer-vision, machine-learning
- Issue type
- Feature
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100