Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

wjldragon
/
AdaOcc

PyTorch
DepthAnythingV2
occupancy-prediction
semantic-occupancy
embodied-ai
occscannet
adaocc
radio
Model card Files Files and versions
xet
Community

Instructions to use wjldragon/AdaOcc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • DepthAnythingV2

    How to use wjldragon/AdaOcc with DepthAnythingV2:

    # Install from https://github.com/DepthAnything/Depth-Anything-V2
    
    # Load the model and infer depth from an image
    import cv2
    import torch
    
    from depth_anything_v2.dpt import DepthAnythingV2
    
    # instantiate the model
    model = DepthAnythingV2(encoder="<ENCODER>", features=<NUMBER_OF_FEATURES>, out_channels=<OUT_CHANNELS>)
    
    # load the weights
    filepath = hf_hub_download(repo_id="wjldragon/AdaOcc", filename="depth_anything_v2_<ENCODER>.pth", repo_type="model")
    state_dict = torch.load(filepath, map_location="cpu")
    model.load_state_dict(state_dict).eval()
    
    raw_img = cv2.imread("your/image/path")
    depth = model.infer_image(raw_img) # HxW raw depth map in numpy
        
  • Notebooks
  • Google Colab
  • Kaggle

You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

Gated model
You can list files but not access them

Preview of files found in this repository
  • checkpoints
    Upload AdaOcc OccScanNet-mini epoch-200 checkpoint 6 days ago
  • configs
    Upload AdaOcc reproduction metadata and slim fusion pretrain 6 days ago
  • logs
    Upload AdaOcc reproduction metadata and slim fusion pretrain 6 days ago
  • pretrain
    Upload AdaOcc reproduction metadata and slim fusion pretrain 6 days ago
  • .gitattributes
    1.52 kB
    initial commit 6 days ago
  • README.md
    2.4 kB
    Keep Hugging Face card checkpoint-focused 4 days ago
  • SHA256SUMS
    458 Bytes
    Upload AdaOcc reproduction metadata and slim fusion pretrain 6 days ago
  • upload_to_hf.sh
    214 Bytes
    Upload AdaOcc reproduction metadata and slim fusion pretrain 6 days ago