Skip to content

Commit

Permalink
Adapt to OSS DGP v1.0 (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuanleetri authored Dec 13, 2021
1 parent 6e3161f commit f59b1d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ RUN git clone https://github.com/TRI-ML/dgp.git
ENV PYTHONPATH="/workspace/dgp:$PYTHONPATH"

# Override DGP wandb with required version
RUN pip install wandb==0.8.21 pyquaternion
RUN pip install wandb==0.8.21 pyquaternion xarray diskcache tenacity pycocotools

# Expose Port for jupyter (8888)
EXPOSE 8888
Expand All @@ -141,4 +141,4 @@ WORKDIR /workspace/${PROJECT}
# Copy project source last (to avoid cache busting)
WORKDIR /workspace/${PROJECT}
COPY . /workspace/${PROJECT}
ENV PYTHONPATH="/workspace/${PROJECT}:$PYTHONPATH"
ENV PYTHONPATH="/workspace/${PROJECT}:$PYTHONPATH"
4 changes: 2 additions & 2 deletions packnet_sfm/datasets/dgp_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from dgp.datasets.synchronized_dataset import SynchronizedSceneDataset
from dgp.utils.camera import Camera, generate_depth_map
from dgp.utils.geometry import Pose
from dgp.utils.pose import Pose

from packnet_sfm.utils.misc import make_list
from packnet_sfm.utils.types import is_tensor, is_numpy, is_list
Expand Down Expand Up @@ -202,7 +202,7 @@ def get_filename(self, sample_idx, datum_idx):
Filename for the datum in that sample
"""
scene_idx, sample_idx_in_scene, datum_indices = self.dataset.dataset_item_index[sample_idx]
scene_dir = self.dataset.get_scene_directory(scene_idx)
scene_dir = self.dataset.dataset_metadata.directory
filename = self.dataset.get_datum(
scene_idx, sample_idx_in_scene, datum_indices[datum_idx]).datum.image.filename
return os.path.splitext(os.path.join(os.path.basename(scene_dir),
Expand Down

0 comments on commit f59b1d6

Please sign in to comment.