ai-tube / src /app /api /parsers /parseProjectionFromLoRA.ts
jbilcke-hf's picture
jbilcke-hf HF staff
upgraded to @aitube/client 0.0.12
f24ad59
raw
history blame
No virus
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"
)
}