ai-tube / src /app /server /actions /utils /parseProjectionFromLoRA.ts
jbilcke-hf's picture
jbilcke-hf HF staff
add experimental support for 360° videos
c5b101c
raw
history blame
381 Bytes
import { VideoProjection } from "@/types"
export function parseProjectionFromLoRA(input?: any): VideoProjection {
const name = `${input || ""}`.trim().toLowerCase()
const isEquirectangular = (
name.includes("equirectangular") ||
name.includes("panorama") ||
name.includes("360")
)
return (
isEquirectangular
? "equirectangular"
: "cartesian"
)
}