Skip to content

Commit 52431e0

Browse files
fix: type hint (#79)
1 parent ae5e75b commit 52431e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

turbodiffusion/rcm/datasets/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
# limitations under the License.
1515

1616
# "width:height"
17-
IMAGE_RES_SIZE_INFO: dict[str, tuple[int, int]] = {
17+
IMAGE_RES_SIZE_INFO: dict[str, dict[str, tuple[int, int]]] = {
1818
"1024": {"1:1": (1024, 1024), "4:3": (1168, 880), "3:4": (880, 1168), "16:9": (1360, 768), "9:16": (768, 1360)},
1919
"720": {"1:1": (960, 960), "4:3": (960, 704), "3:4": (704, 960), "16:9": (1280, 704), "9:16": (704, 1280)},
2020
"512": {"1:1": (512, 512), "4:3": (640, 512), "3:4": (512, 640), "16:9": (640, 384), "9:16": (384, 640)},
2121
"480": {"1:1": (480, 480), "4:3": (640, 480), "3:4": (480, 640), "16:9": (768, 432), "9:16": (432, 768)},
2222
}
2323

2424
# "width:height"
25-
VIDEO_RES_SIZE_INFO: dict[str, tuple[int, int]] = {
25+
VIDEO_RES_SIZE_INFO: dict[str, dict[str, tuple[int, int]]] = {
2626
"720": {"1:1": (960, 960), "4:3": (960, 704), "3:4": (704, 960), "16:9": (1280, 704), "9:16": (704, 1280)},
2727
"512": {"1:1": (512, 512), "4:3": (640, 512), "3:4": (512, 640), "16:9": (640, 384), "9:16": (384, 640)},
2828
"480": {"1:1": (480, 480), "4:3": (640, 480), "3:4": (480, 640), "16:9": (768, 432), "9:16": (432, 768)},

0 commit comments

Comments
 (0)