Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
File size: 389 Bytes
ac7030c c5b101c ac7030c c5b101c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
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"
)
} |