This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pydantic==2.10.6 | |
| fastapi==0.110.3 | |
| starlette==0.37.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fastapi==0.110.3 | |
| pydantic==2.10.6 | |
| torchaudio==2.5.1 | |
| starlette==0.37.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| torchaudio==2.9.0 | |
| pydantic==2.10.6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| protobuf>=4.19 | |
| gradio<5.20.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gradio<5.20.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def frame_diff_with_anchor(video_tensor, anchor_frame_index): | |
| """ | |
| Compute the frame difference for a video tensor using an anchor frame. | |
| video_tensor should have shape (batch_size, channels, frames, height, width) | |
| anchor_frame_index is the index of the anchor frame around which diffs are computed | |
| """ | |
| # Ensure that the anchor frame is within the correct range | |
| num_frames = video_tensor.shape[2] | |
| if not (0 <= anchor_frame_index < num_frames): | |
| raise ValueError("anchor_frame_index is out of range.") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pathlib import Path | |
| from animatediff.pipelines.pipeline_animation import AnimationPipeline | |
| import torch | |
| from diffusers import AutoencoderKL, DDIMScheduler, EulerAncestralDiscreteScheduler | |
| from tqdm.auto import tqdm | |
| from transformers import CLIPTextModel, CLIPTokenizer | |
| from animatediff.models.unet import UNet3DConditionModel | |
| from diffusers.utils.import_utils import is_xformers_available | |
| from safetensors import safe_open |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {-# LANGUAGE DataKinds #-} | |
| {-# LANGUAGE DeriveAnyClass #-} | |
| {-# LANGUAGE DeriveGeneric #-} | |
| {-# LANGUAGE DerivingStrategies #-} | |
| {-# LANGUAGE FlexibleContexts #-} | |
| {-# LANGUAGE GeneralizedNewtypeDeriving #-} | |
| {-# LANGUAGE LambdaCase #-} | |
| {-# LANGUAGE MultiParamTypeClasses #-} | |
| {-# LANGUAGE NoImplicitPrelude #-} | |
| {-# LANGUAGE OverloadedStrings #-} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| postgres=# explain (analyze, buffers) UPDATE payloads | |
| postgres-# SET state='dequeued' | |
| postgres-# WHERE id in | |
| postgres-# ( SELECT p1.id | |
| postgres(# FROM payloads AS p1 | |
| postgres(# WHERE p1.state='enqueued' | |
| postgres(# ORDER BY p1.modified_at ASC | |
| postgres(# FOR UPDATE SKIP LOCKED | |
| postgres(# LIMIT 1 | |
| postgres(# ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE OR REPLACE FUNCTION enqueue(count int8, x anyarray) RETURNS void AS $$ | |
| DECLARE | |
| startValue int8; | |
| lastValue int8; | |
| currentValue int8; | |
| partition_name text; | |
| doubleCount int8; | |
| BEGIN | |
| doubleCount := 2 * count; | |
| SELECT nextval('modified_index') INTO currentValue ; |
NewerOlder