ai-tube / src /app /api /utils /parseProjectionFromLoRA.ts
jbilcke-hf's picture
jbilcke-hf HF staff
working on some new features
3d4392e
raw
history blame
389 Bytes
import { MediaProjection } from "@/types/general"
export function parseProjectionFromLoRA(input?: any): MediaProjection {
const name = `${input || ""}`.trim().toLowerCase()
const isEquirectangular = (
name.includes("equirectangular") ||
name.includes("panorama") ||
name.includes("360")
)
return (
isEquirectangular
? "equirectangular"
: "cartesian"
)
}