Instructions to use originlab/lotus-game-depth with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use originlab/lotus-game-depth with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("originlab/lotus-game-depth", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("originlab/lotus-game-depth", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]Request access to OriginLab Lotus Game-Depth models
This repository is publicly accessible, but you have to accept the conditions to access its files and content.
By requesting access you agree to CC-BY-NC-4.0 plus a model-release requirement: non-commercial research use only, and any model you derive must be publicly released with open weights and a model card. Commercial use requires a separate agreement with OriginLab.
Log in or Sign Up to review the conditions and access this model content.
OriginLab Lotus Game-Depth (pretrained + NYU fine-tuned)
Website: originlab.ai
Two Lotus-recipe latent-diffusion depth checkpoints (SD2-base UNet, 8-channel conv_in, single-step x0 at t=999, trunc_disparity), in one repo:
pretrained/- trained from scratch on the OriginLab Game-Depth dataset (game-engine z-buffers), no real data. Zero-shot KITTI AbsRel 0.191 (Lotus 0.224, Marigold 0.244).nyu-ft/- the above fine-tuned on real NYU Depth V2. NYU AbsRel 0.116, on par with a fairly-tuned Lotus baseline (0.115) using 0% indoor pretraining data and ~4x fewer frames.
Dataset: https://huggingface.co/datasets/originlab/game-depth
Load
from diffusers import UNet2DConditionModel
# game-pretrained
unet = UNet2DConditionModel.from_pretrained("originlab/lotus-game-depth", subfolder="pretrained/unet")
# NYU fine-tuned
unet = UNet2DConditionModel.from_pretrained("originlab/lotus-game-depth", subfolder="nyu-ft/unet")
Each subfolder contains the full pipeline (unet, vae, text_encoder, scheduler, ...); run with the Lotus single-step depth pipeline.
License
Non-commercial research use with a model-release clause (see LICENSE).
- Downloads last month
- -
# Gated model: Login with a HF token with gated access permission hf auth login