-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Argoverse Monocular Depth Map extraction #306
Comments
Make sure that you installed the argoverse package from the README: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this repo.It is super helpful.I followed the steps written in readme and I cloned this repo.When I tried to make Depth Map Extraction found in this repo https://github.com/TilakD/Argoverse-Monocular_depth-dataset-creation/blob/main/argoverse_monocular_depth_map_tutorial.ipynb.
I had an error in line 3 stating "no module named argoverse".Thanks alot
This is the code:
import fnmatch
import glob
import os
from typing import Optional, Tuple
import cv2
from matplotlib import pyplot as plt
import numpy as np
from PIL import Image
from tqdm import tqdm
from argoverse.data_loading.argoverse_tracking_loader import ArgoverseTrackingLoader
from argoverse.utils.camera_stats import RING_CAMERA_LIST
class Lidar2Depth:
"""
Convert 360 degree LiDAR point cloud to depth map corresponding to each ring camera
for monocular depth estimation.
Modify paths here,
local_path_to_argoverse_splits = (
"/home/abdo/PycharmProjects/Monocular-Depth-Estimation-Argoverse/tracking_train1_v1.1/argoverse-tracking/train1")
output_save_path =(
"/home/abdo/PycharmProjects/Monocular-Depth-Estimation-Argoverse/tracking_train1_v1.1/argoverse-tracking/output"
)
def display_depthmap(img_name: str, log_id: str, data_path: str) -> None:
"""
For the provided image name, log_id and data_path (either train or val path)
visualize depth map from all the ring cameras
Modify if needed
img_name = "10.png"
log_id = "/home/abdo/PycharmProjects/Monocular-Depth-Estimation-Argoverse/tracking_train1_v1.1/argoverse-tracking/train1/3d20ae25-5b29-320d-8bae-f03e9dc177b9"
data_path = f"/home/abdo/PycharmProjects/Monocular-Depth-Estimation-Argoverse/tracking_train1_v1.1/argoverse-tracking/output"
display_depthmap(img_name, log_id, data_path)
The text was updated successfully, but these errors were encountered: