phase 4
This commit is contained in:
@@ -58,7 +58,7 @@ def extract_frames_ffmpeg(video_path: str, fps: float, max_frames: int):
|
||||
import numpy as np
|
||||
from PIL import Image
|
||||
|
||||
from detect.models import Frame
|
||||
from core.detect.models import Frame
|
||||
|
||||
tmpdir = tempfile.mkdtemp(prefix="scenario_")
|
||||
pattern = os.path.join(tmpdir, "frame_%04d.jpg")
|
||||
@@ -111,7 +111,7 @@ def main():
|
||||
logger.info("Extracted %d frames", len(frames))
|
||||
|
||||
# Create timeline + branch + checkpoint
|
||||
from detect.checkpoint.storage import create_timeline, save_stage_output
|
||||
from core.detect.checkpoint.storage import create_timeline, save_stage_output
|
||||
|
||||
timeline_id, branch_id = create_timeline(
|
||||
source_video=video_path,
|
||||
|
||||
Reference in New Issue
Block a user