mirror of
https://github.com/THUDM/CogVideo.git
synced 2026-05-08 07:58:10 +08:00
Wraps RESOLUTION_MAP lookup in try/except to handle local model paths or unrecognized model names. Provides helpful error message listing valid model names and falls back to default 480x720 resolution. Fixes KeyError when using local paths like ./local_models/CogVideoX-5B