Skip to content

Commit

Permalink
Try to fix open3D error
Browse files Browse the repository at this point in the history
  • Loading branch information
travisdriver committed Oct 15, 2024
1 parent c02b9a3 commit c9fd7b1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion environment_linux_cpuonly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ dependencies:
# testing
- parameterized
- pip:
- open3d
- open3d==0.17.0
- opencv-python>=4.5.4.58
- pydegensac
- colour
Expand Down
24 changes: 13 additions & 11 deletions gtsfm/utils/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,27 @@
from typing import Any, Dict, List, Optional, Tuple, Union

import gtsam
import h5py
import numpy as np
import open3d
import simplejson as json
from gtsam import Cal3Bundler, Point3, Pose3, Rot3, SfmTrack
from PIL import Image as PILImage
from PIL.ExifTags import GPSTAGS, TAGS

import gtsfm.utils.images as image_utils
import gtsfm.utils.logger as logger_utils
import gtsfm.utils.reprojection as reproj_utils
import gtsfm.visualization.open3d_vis_utils as open3d_vis_utils
import h5py
import numpy as np
import open3d
import simplejson as json
import thirdparty.colmap.scripts.python.read_write_model as colmap_io
from gtsam import Cal3Bundler, Point3, Pose3, Rot3, SfmTrack
from gtsfm.common.gtsfm_data import GtsfmData
from gtsfm.common.image import Image
from gtsfm.common.sfm_track import SfmTrack2d
from thirdparty.colmap.scripts.python.read_write_model import Camera as ColmapCamera
from thirdparty.colmap.scripts.python.read_write_model import Image as ColmapImage
from thirdparty.colmap.scripts.python.read_write_model import Point3D as ColmapPoint3D
from PIL import Image as PILImage
from PIL.ExifTags import GPSTAGS, TAGS
from thirdparty.colmap.scripts.python.read_write_model import \
Camera as ColmapCamera
from thirdparty.colmap.scripts.python.read_write_model import \
Image as ColmapImage
from thirdparty.colmap.scripts.python.read_write_model import \
Point3D as ColmapPoint3D

logger = logger_utils.get_logger()

Expand Down

0 comments on commit c9fd7b1

Please sign in to comment.