Added support for Runway Aleph 2#305
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. To trigger a review, include ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches✨ Simplify code
Comment |
There was a problem hiding this comment.
Pull request overview
This PR extends the video input typing and preprocessing to better support Runway Aleph 2-style inputs by allowing richer frame metadata and ensuring inputs.video is normalized the same way as frame-image inputs.
Changes:
- Added
IInputFrame.timestamp: Optional[float]for time-based frame selection. - Broadened
IVideoInputs.frameImagesaccepted input shapes and added__post_init__normalization fromdict→IInputFrame. - Updated
_requestVideoto preprocessinputs.videovia_process_media(mirroringinputs.frameImagesbehavior).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
runware/types.py |
Adds timestamp to IInputFrame and expands/normalizes IVideoInputs.frameImages input types. |
runware/base.py |
Ensures inputs.video is passed through _process_media during video inference request preparation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Added
IInputFrame.timestampOptional[float] = NoneChanged
_requestVideonow preprocessesinputs.videothe same way asinputs.frameImages