Run this model with HF Jobs
Run andrew-healey/sharpdepth on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/andrew-healey/sharpdepth. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/andrew-healey/sharpdepth on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use andrew-healey/sharpdepth with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use andrew-healey/sharpdepth with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("andrew-healey/sharpdepth", 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
Upload folder using huggingface_hub
Browse filesFiles changed (21)
- .gitattributes+2
- sharpdepth-checkpoints/sharpdepth.tar.gz.part-aaAdded+3
- sharpdepth-checkpoints/sharpdepth.tar.gz.part-abAdded+3
- sharpdepth-checkpoints/sharpdepth.tar.gz.part-acAdded+3
- sharpdepth-checkpoints/sharpdepth/.gitattributesAdded+36
- sharpdepth-checkpoints/sharpdepth/README.mdAdded+32
- sharpdepth-checkpoints/sharpdepth/assets/badges/teaser_1.jpgAdded
- sharpdepth-checkpoints/sharpdepth/assets/badges/teaser_2.jpgAdded
- sharpdepth-checkpoints/sharpdepth/feature_extractor/preprocessor_config.jsonAdded+44
- sharpdepth-checkpoints/sharpdepth/model_index.jsonAdded+38
- sharpdepth-checkpoints/sharpdepth/scheduler/scheduler_config.jsonAdded+20
- sharpdepth-checkpoints/sharpdepth/text_encoder/config.jsonAdded+25
- sharpdepth-checkpoints/sharpdepth/text_encoder/model.safetensorsAdded+3
- sharpdepth-checkpoints/sharpdepth/tokenizer/merges.txtAdded
- sharpdepth-checkpoints/sharpdepth/tokenizer/special_tokens_map.jsonAdded+30
- sharpdepth-checkpoints/sharpdepth/tokenizer/tokenizer_config.jsonAdded+38
- sharpdepth-checkpoints/sharpdepth/tokenizer/vocab.jsonAdded
- sharpdepth-checkpoints/sharpdepth/unet/config.jsonAdded+73
- sharpdepth-checkpoints/sharpdepth/unet/diffusion_pytorch_model.safetensorsAdded+3
- sharpdepth-checkpoints/sharpdepth/vae/config.jsonAdded+34
- sharpdepth-checkpoints/sharpdepth/vae/diffusion_pytorch_model.safetensorsAdded+3
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines333435363732 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textsharpdepth-checkpoints/sharpdepth/assets/badges/teaser_1.jpg filter=lfs diff=lfs merge=lfs -textsharpdepth-checkpoints/sharpdepth/assets/badges/teaser_2.jpg filter=lfs diff=lfs merge=lfs -text
123version https://git-lfs.github.com/spec/v1oid sha256:6c3f3fc81fc370e7656640f2053b91e0e4dcd29b87dfa5d796b48c212ee55032size 2097152000123version https://git-lfs.github.com/spec/v1oid sha256:d223496042d356e6350d9ffef57cfd0e1f02f6abb0da9362e5a97e0ea187c000size 2097152000123version https://git-lfs.github.com/spec/v1oid sha256:19726ee0034ad6b7f915908ef1e4492eb43e782ea10372d9cfe1684257c911e1size 26200837123456789101112131415161718192021222324252627282930313233343536*.7z filter=lfs diff=lfs merge=lfs -text*.arrow filter=lfs diff=lfs merge=lfs -text*.bin filter=lfs diff=lfs merge=lfs -text*.bz2 filter=lfs diff=lfs merge=lfs -text*.ckpt filter=lfs diff=lfs merge=lfs -text*.ftz filter=lfs diff=lfs merge=lfs -text*.gz filter=lfs diff=lfs merge=lfs -text*.h5 filter=lfs diff=lfs merge=lfs -text*.joblib filter=lfs diff=lfs merge=lfs -text*.lfs.* filter=lfs diff=lfs merge=lfs -text*.mlmodel filter=lfs diff=lfs merge=lfs -text*.model filter=lfs diff=lfs merge=lfs -text*.msgpack filter=lfs diff=lfs merge=lfs -text*.npy filter=lfs diff=lfs merge=lfs -text*.npz filter=lfs diff=lfs merge=lfs -text*.onnx filter=lfs diff=lfs merge=lfs -text*.ot filter=lfs diff=lfs merge=lfs -text*.parquet filter=lfs diff=lfs merge=lfs -text*.pb filter=lfs diff=lfs merge=lfs -text*.pickle filter=lfs diff=lfs merge=lfs -text*.pkl filter=lfs diff=lfs merge=lfs -text*.pt filter=lfs diff=lfs merge=lfs -text*.pth filter=lfs diff=lfs merge=lfs -text*.rar filter=lfs diff=lfs merge=lfs -text*.safetensors filter=lfs diff=lfs merge=lfs -textsaved_model/**/* filter=lfs diff=lfs merge=lfs -text*.tar.* filter=lfs diff=lfs merge=lfs -text*.tar filter=lfs diff=lfs merge=lfs -text*.tflite filter=lfs diff=lfs merge=lfs -text*.tgz filter=lfs diff=lfs merge=lfs -text*.wasm filter=lfs diff=lfs merge=lfs -text*.xz filter=lfs diff=lfs merge=lfs -text*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textassets/badges/teaser_1.jpg filter=lfs diff=lfs merge=lfs -text1234567891011121314151617181920212223242526272829303132---library_name: diffuserslicense: apache-2.0pipeline_tag: depth-estimation---
# Lotus: Diffusion-based Visual Foundation Model for High-quality Dense Prediction
<!-- Provide a quick summary of what the model is/does. -->This model belongs to the family of official Lotus models.
[](https://lotus3d.github.io/)[](https://arxiv.org/abs/2409.18124)[](https://huggingface.co/spaces/haodongli/Lotus)[](https://github.com/EnVision-Research/Lotus)
Developed by: [Jing He](https://scholar.google.com/citations?hl=en&user=RsLS11MAAAAJ)<span style="color:red;">✱</span>,[Haodong Li](https://haodong-li.com/)<span style="color:red;">✱</span>,[Wei Yin](https://yvanyin.net/),[Yixun Liang](https://yixunliang.github.io/),[Leheng Li](https://len-li.github.io/),[Kaiqiang Zhou](),[Hongbo Zhang](),[Bingbing Liu](https://scholar.google.com/citations?user=-rCulKwAAAAJ&hl=en),[Ying-Cong Chen](https://www.yingcong.me/)✉

## UsagePlease refer to this [page](https://github.com/EnVision-Research/Lotus). 1234567891011121314151617181920212223242526272829303132333435363738394041424344{ "_valid_processor_keys": [ "images", "do_resize", "size", "resample", "do_center_crop", "crop_size", "do_rescale", "rescale_factor", "do_normalize", "image_mean", "image_std", "do_convert_rgb", "return_tensors", "data_format", "input_data_format" ], "crop_size": { "height": 224, "width": 224 }, "do_center_crop": true, "do_convert_rgb": true, "do_normalize": true, "do_rescale": true, "do_resize": true, "image_mean": [ 0.48145466, 0.4578275, 0.40821073 ], "image_processor_type": "CLIPImageProcessor", "image_std": [ 0.26862954, 0.26130258, 0.27577711 ], "resample": 3, "rescale_factor": 0.00392156862745098, "size": { "shortest_edge": 224 }}1234567891011121314151617181920212223242526272829303132333435363738{ "_class_name": "LotusGPipeline", "_diffusers_version": "0.28.0.dev0", "_name_or_path": "../Lotus/checkpoints/lotus-depth-g-v1-0", "feature_extractor": [ "transformers", "CLIPImageProcessor" ], "image_encoder": [ null, null ], "requires_safety_checker": false, "safety_checker": [ null, null ], "scheduler": [ "diffusers", "DDIMScheduler" ], "text_encoder": [ "transformers", "CLIPTextModel" ], "tokenizer": [ "transformers", "CLIPTokenizer" ], "unet": [ "diffusers", "UNet2DConditionModel" ], "vae": [ "diffusers", "AutoencoderKL" ]}1234567891011121314151617181920{ "_class_name": "DDIMScheduler", "_diffusers_version": "0.28.0.dev0", "beta_end": 0.012, "beta_schedule": "scaled_linear", "beta_start": 0.00085, "clip_sample": false, "clip_sample_range": 1.0, "dynamic_thresholding_ratio": 0.995, "num_train_timesteps": 1000, "prediction_type": "sample", "rescale_betas_zero_snr": false, "sample_max_value": 1.0, "set_alpha_to_one": false, "skip_prk_steps": true, "steps_offset": 1, "thresholding": false, "timestep_spacing": "leading", "trained_betas": null}12345678910111213141516171819202122232425{ "_name_or_path": "../Lotus/checkpoints/lotus-depth-g-v1-0/text_encoder", "architectures": [ "CLIPTextModel" ], "attention_dropout": 0.0, "bos_token_id": 0, "dropout": 0.0, "eos_token_id": 2, "hidden_act": "gelu", "hidden_size": 1024, "initializer_factor": 1.0, "initializer_range": 0.02, "intermediate_size": 4096, "layer_norm_eps": 1e-05, "max_position_embeddings": 77, "model_type": "clip_text_model", "num_attention_heads": 16, "num_hidden_layers": 23, "pad_token_id": 1, "projection_dim": 512, "torch_dtype": "float32", "transformers_version": "4.40.1", "vocab_size": 49408}123version https://git-lfs.github.com/spec/v1oid sha256:8a0859e9385019944df829693ffdef5bbde394950ff561cbfdd61fbb3ea76fb5size 1361596304123456789101112131415161718192021222324252627282930{ "bos_token": { "content": "<|startoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "eos_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "pad_token": { "content": "!", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "unk_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }}1234567891011121314151617181920212223242526272829303132333435363738{ "add_prefix_space": false, "added_tokens_decoder": { "0": { "content": "!", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "49406": { "content": "<|startoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": true }, "49407": { "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": true } }, "bos_token": "<|startoftext|>", "clean_up_tokenization_spaces": true, "do_lower_case": true, "eos_token": "<|endoftext|>", "errors": "replace", "model_max_length": 77, "pad_token": "!", "tokenizer_class": "CLIPTokenizer", "unk_token": "<|endoftext|>"}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273{ "_class_name": "UNet2DConditionModel", "_diffusers_version": "0.30.3", "_name_or_path": "jingheya/lotus-depth-g-v1-0", "act_fn": "silu", "addition_embed_type": null, "addition_embed_type_num_heads": 64, "addition_time_embed_dim": null, "attention_head_dim": [ 5, 10, 20, 20 ], "attention_type": "default", "block_out_channels": [ 320, 640, 1280, 1280 ], "center_input_sample": false, "class_embed_type": "projection", "class_embeddings_concat": false, "conv_in_kernel": 3, "conv_out_kernel": 3, "cross_attention_dim": 1024, "cross_attention_norm": null, "down_block_types": [ "CrossAttnDownBlock2D", "CrossAttnDownBlock2D", "CrossAttnDownBlock2D", "DownBlock2D" ], "downsample_padding": 1, "dropout": 0.0, "dual_cross_attention": false, "encoder_hid_dim": null, "encoder_hid_dim_type": null, "flip_sin_to_cos": true, "freq_shift": 0, "in_channels": 8, "layers_per_block": 2, "mid_block_only_cross_attention": null, "mid_block_scale_factor": 1, "mid_block_type": "UNetMidBlock2DCrossAttn", "norm_eps": 1e-05, "norm_num_groups": 32, "num_attention_heads": null, "num_class_embeds": null, "only_cross_attention": false, "out_channels": 4, "projection_class_embeddings_input_dim": 4, "resnet_out_scale_factor": 1.0, "resnet_skip_time_act": false, "resnet_time_scale_shift": "default", "reverse_transformer_layers_per_block": null, "sample_size": 64, "time_cond_proj_dim": null, "time_embedding_act_fn": null, "time_embedding_dim": null, "time_embedding_type": "positional", "timestep_post_act": null, "transformer_layers_per_block": 1, "up_block_types": [ "UpBlock2D", "CrossAttnUpBlock2D", "CrossAttnUpBlock2D", "CrossAttnUpBlock2D" ], "upcast_attention": false, "use_linear_projection": true}123version https://git-lfs.github.com/spec/v1oid sha256:f0dc2074198a5f19e5dabb653cc7e115aafe4584dd30f5efae6a9107ec422ddesize 347035735212345678910111213141516171819202122232425262728293031323334{ "_class_name": "AutoencoderKL", "_diffusers_version": "0.28.0.dev0", "_name_or_path": "../Lotus/checkpoints/lotus-depth-g-v1-0/vae", "act_fn": "silu", "block_out_channels": [ 128, 256, 512, 512 ], "down_block_types": [ "DownEncoderBlock2D", "DownEncoderBlock2D", "DownEncoderBlock2D", "DownEncoderBlock2D" ], "force_upcast": true, "in_channels": 3, "latent_channels": 4, "latents_mean": null, "latents_std": null, "layers_per_block": 2, "norm_num_groups": 32, "out_channels": 3, "sample_size": 512, "scaling_factor": 0.18215, "up_block_types": [ "UpDecoderBlock2D", "UpDecoderBlock2D", "UpDecoderBlock2D", "UpDecoderBlock2D" ]}123version https://git-lfs.github.com/spec/v1oid sha256:fc436097e5cbb105c44df4403ae84acf7e81de1f64acfedc334888e9a8eea223size 334643268.gitattributes+2
sharpdepth-checkpoints/sharpdepth.tar.gz.part-aaAdded+3
sharpdepth-checkpoints/sharpdepth.tar.gz.part-abAdded+3
sharpdepth-checkpoints/sharpdepth.tar.gz.part-acAdded+3
sharpdepth-checkpoints/sharpdepth/.gitattributesAdded+36
sharpdepth-checkpoints/sharpdepth/README.mdAdded+32
sharpdepth-checkpoints/sharpdepth/assets/badges/teaser_1.jpgAdded

Large File Pointer Details
- SHA256: 6a1d43efb57eb353b9297d1b28bea492773cece14e3ae7fab3e64bea83398b9c
- Pointer size: 132 Bytes
- Size of remote file: 1.12 MB
sharpdepth-checkpoints/sharpdepth/assets/badges/teaser_2.jpgAdded

Large File Pointer Details
- SHA256: 5687ee4721ea71e3ac8616cb93022dee1e44ffc05d1baacb0c7bd241162492e4
- Pointer size: 131 Bytes
- Size of remote file: 229 kB
sharpdepth-checkpoints/sharpdepth/feature_extractor/preprocessor_config.jsonAdded+44
sharpdepth-checkpoints/sharpdepth/model_index.jsonAdded+38
sharpdepth-checkpoints/sharpdepth/scheduler/scheduler_config.jsonAdded+20
sharpdepth-checkpoints/sharpdepth/text_encoder/config.jsonAdded+25
sharpdepth-checkpoints/sharpdepth/text_encoder/model.safetensorsAdded+3
sharpdepth-checkpoints/sharpdepth/tokenizer/merges.txtAdded
sharpdepth-checkpoints/sharpdepth/tokenizer/special_tokens_map.jsonAdded+30
sharpdepth-checkpoints/sharpdepth/tokenizer/tokenizer_config.jsonAdded+38
sharpdepth-checkpoints/sharpdepth/tokenizer/vocab.jsonAdded
sharpdepth-checkpoints/sharpdepth/unet/config.jsonAdded+73
sharpdepth-checkpoints/sharpdepth/unet/diffusion_pytorch_model.safetensorsAdded+3
sharpdepth-checkpoints/sharpdepth/vae/config.jsonAdded+34
sharpdepth-checkpoints/sharpdepth/vae/diffusion_pytorch_model.safetensorsAdded+3