Skip to content

Commit

Permalink
Pyre Configurationless migration for] [batch:26/112] [shard:6/N] (#1041)
Browse files Browse the repository at this point in the history
Summary:
X-link: facebookincubator/metalos#5

X-link: facebookresearch/fbpcp#527

Pull Request resolved: #1041

Reviewed By: connernilsen

Differential Revision: D54440273

fbshipit-source-id: 0742c4b76bbef07c68a729f65bc27f1a176b919f
  • Loading branch information
generatedunixname89002005287564 authored and facebook-github-bot committed Mar 2, 2024
1 parent 8f618a2 commit 7ad7339
Show file tree
Hide file tree
Showing 134 changed files with 142 additions and 0 deletions.
1 change: 1 addition & 0 deletions annotation_gui_gcp/lib/GUI.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import os
import random
import subprocess
Expand Down
1 change: 1 addition & 0 deletions annotation_gui_gcp/lib/gcp_manager.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import json
import os
import typing as t
Expand Down
1 change: 1 addition & 0 deletions annotation_gui_gcp/lib/geometry.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from opensfm import dataset
from numpy import ndarray
from typing import Dict, Tuple
Expand Down
1 change: 1 addition & 0 deletions annotation_gui_gcp/lib/image_manager.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import typing as t
from io import BytesIO

Expand Down
1 change: 1 addition & 0 deletions annotation_gui_gcp/lib/views/cad_view.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import json
import logging
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions annotation_gui_gcp/lib/views/cp_finder_view.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import typing as t

from annotation_gui_gcp.lib.views.image_view import ImageView
Expand Down
1 change: 1 addition & 0 deletions annotation_gui_gcp/lib/views/image_view.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from typing import Dict, Any

from annotation_gui_gcp.lib.views.web_view import WebView, distinct_colors
Expand Down
1 change: 1 addition & 0 deletions annotation_gui_gcp/lib/views/tools_view.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from typing import Dict, Any

from annotation_gui_gcp.lib.views.web_view import WebView
Expand Down
1 change: 1 addition & 0 deletions annotation_gui_gcp/lib/views/web_view.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import abc
import json
import time
Expand Down
1 change: 1 addition & 0 deletions annotation_gui_gcp/main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import argparse
import json
import typing as t
Expand Down
1 change: 1 addition & 0 deletions annotation_gui_gcp/run_ba.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import argparse
import json
import logging
Expand Down
2 changes: 2 additions & 0 deletions bin/import_colmap.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env python3

# pyre-unsafe

# Snippets to read from the colmap database taken from:
# https://github.com/colmap/colmap/blob/ad7bd93f1a27af7533121aa043a167fe1490688c /
# scripts/python/export_to_bundler.py
Expand Down
1 change: 1 addition & 0 deletions bin/opensfm_main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import sys
from os.path import abspath, dirname, join

Expand Down
2 changes: 2 additions & 0 deletions bin/plot_matches.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env python3

# pyre-unsafe

import argparse
import os.path
from itertools import combinations
Expand Down
1 change: 1 addition & 0 deletions opensfm/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from opensfm import pybundle
from opensfm import pydense
from opensfm import pyfeatures
Expand Down
1 change: 1 addition & 0 deletions opensfm/actions/align_submodels.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from opensfm.large import metadataset
from opensfm.large import tools
from opensfm.dataset import DataSet
Expand Down
1 change: 1 addition & 0 deletions opensfm/actions/bundle.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import opensfm.reconstruction as orec
from opensfm.dataset_base import DataSetBase
from typing import Optional
Expand Down
1 change: 1 addition & 0 deletions opensfm/actions/compute_depthmaps.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import os

from opensfm import dataset
Expand Down
1 change: 1 addition & 0 deletions opensfm/actions/compute_statistics.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import logging
import os

Expand Down
1 change: 1 addition & 0 deletions opensfm/actions/create_rig.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import logging

from opensfm import pymap, rig, reconstruction_helpers as helpers, types
Expand Down
1 change: 1 addition & 0 deletions opensfm/actions/create_submodels.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import logging
from collections import defaultdict

Expand Down
1 change: 1 addition & 0 deletions opensfm/actions/create_tracks.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from timeit import default_timer as timer

from opensfm import io
Expand Down
1 change: 1 addition & 0 deletions opensfm/actions/detect_features.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import logging
from timeit import default_timer as timer

Expand Down
1 change: 1 addition & 0 deletions opensfm/actions/export_bundler.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import os

import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions opensfm/actions/export_colmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
#
# Author: Johannes L. Schoenberger (jsch at inf.ethz.ch)

# pyre-unsafe

# This script is based on an original implementation by True Price.

import math
Expand Down
1 change: 1 addition & 0 deletions opensfm/actions/export_geocoords.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import logging
import os
from opensfm import types
Expand Down
1 change: 1 addition & 0 deletions opensfm/actions/export_openmvs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import os

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions opensfm/actions/export_ply.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import os

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions opensfm/actions/export_pmvs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import logging
import os

Expand Down
1 change: 1 addition & 0 deletions opensfm/actions/export_report.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from opensfm import report
from opensfm.dataset import DataSet

Expand Down
1 change: 1 addition & 0 deletions opensfm/actions/export_visualsfm.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import logging
import os
import sys
Expand Down
1 change: 1 addition & 0 deletions opensfm/actions/extend_reconstruction.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from opensfm import io, reconstruction
from opensfm.dataset_base import DataSetBase
from typing import Optional
Expand Down
1 change: 1 addition & 0 deletions opensfm/actions/extract_metadata.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import copy
import logging
from functools import partial
Expand Down
1 change: 1 addition & 0 deletions opensfm/actions/match_features.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from timeit import default_timer as timer

from opensfm import io
Expand Down
1 change: 1 addition & 0 deletions opensfm/actions/mesh.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from opensfm import mesh
from opensfm.dataset_base import DataSetBase

Expand Down
1 change: 1 addition & 0 deletions opensfm/actions/reconstruct.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from opensfm import io
from opensfm import reconstruction
from opensfm.dataset_base import DataSetBase
Expand Down
1 change: 1 addition & 0 deletions opensfm/actions/reconstruct_from_prior.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from opensfm import io
from opensfm import reconstruction
from opensfm.dataset_base import DataSetBase
Expand Down
1 change: 1 addition & 0 deletions opensfm/actions/undistort.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import os
from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions opensfm/align.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
"""Tools to align a reconstruction to GPS and GCP data."""

import logging
Expand Down
1 change: 1 addition & 0 deletions opensfm/bow.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import os.path

import cv2
Expand Down
1 change: 1 addition & 0 deletions opensfm/commands/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from . import (
align_submodels,
bundle,
Expand Down
1 change: 1 addition & 0 deletions opensfm/commands/align_submodels.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from opensfm.actions import align_submodels

from . import command
Expand Down
1 change: 1 addition & 0 deletions opensfm/commands/bundle.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from opensfm.actions import bundle

from . import command
Expand Down
1 change: 1 addition & 0 deletions opensfm/commands/command.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from timeit import default_timer as timer
import argparse
from opensfm.dataset import DataSet
Expand Down
1 change: 1 addition & 0 deletions opensfm/commands/command_runner.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from typing import Any, Callable, List
import argparse

Expand Down
1 change: 1 addition & 0 deletions opensfm/commands/compute_depthmaps.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from opensfm.actions import compute_depthmaps

from . import command
Expand Down
1 change: 1 addition & 0 deletions opensfm/commands/compute_statistics.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from . import command
import argparse
from opensfm.dataset import DataSet
Expand Down
1 change: 1 addition & 0 deletions opensfm/commands/create_rig.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import json

from opensfm.actions import create_rig
Expand Down
1 change: 1 addition & 0 deletions opensfm/commands/create_submodels.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from opensfm.actions import create_submodels

from . import command
Expand Down
1 change: 1 addition & 0 deletions opensfm/commands/create_tracks.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from opensfm.actions import create_tracks

from . import command
Expand Down
1 change: 1 addition & 0 deletions opensfm/commands/detect_features.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from opensfm.actions import detect_features

from . import command
Expand Down
1 change: 1 addition & 0 deletions opensfm/commands/export_bundler.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from opensfm.actions import export_bundler

from . import command
Expand Down
1 change: 1 addition & 0 deletions opensfm/commands/export_colmap.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from opensfm.actions import export_colmap

from . import command
Expand Down
1 change: 1 addition & 0 deletions opensfm/commands/export_geocoords.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from opensfm.actions import export_geocoords

from . import command
Expand Down
1 change: 1 addition & 0 deletions opensfm/commands/export_openmvs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from opensfm.actions import export_openmvs

from . import command
Expand Down
1 change: 1 addition & 0 deletions opensfm/commands/export_ply.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from opensfm.actions import export_ply

from . import command
Expand Down
1 change: 1 addition & 0 deletions opensfm/commands/export_pmvs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from opensfm.actions import export_pmvs

from . import command
Expand Down
1 change: 1 addition & 0 deletions opensfm/commands/export_report.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from . import command
import argparse
from opensfm.dataset import DataSet
Expand Down
1 change: 1 addition & 0 deletions opensfm/commands/export_visualsfm.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from opensfm.actions import export_visualsfm

from . import command
Expand Down
1 change: 1 addition & 0 deletions opensfm/commands/extend_reconstruction.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from opensfm.actions import extend_reconstruction

from . import command
Expand Down
1 change: 1 addition & 0 deletions opensfm/commands/extract_metadata.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from opensfm.actions import extract_metadata

from . import command
Expand Down
1 change: 1 addition & 0 deletions opensfm/commands/match_features.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from opensfm.actions import match_features

from . import command
Expand Down
1 change: 1 addition & 0 deletions opensfm/commands/mesh.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from opensfm.actions import mesh

from . import command
Expand Down
1 change: 1 addition & 0 deletions opensfm/commands/reconstruct.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from opensfm import reconstruction
from opensfm.actions import reconstruct

Expand Down
1 change: 1 addition & 0 deletions opensfm/commands/reconstruct_from_prior.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from opensfm.actions import reconstruct_from_prior

from . import command
Expand Down
1 change: 1 addition & 0 deletions opensfm/commands/undistort.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from opensfm.actions import undistort

from . import command
Expand Down
1 change: 1 addition & 0 deletions opensfm/config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import os
from dataclasses import dataclass, asdict
from typing import Any, Dict, IO, Union
Expand Down
1 change: 1 addition & 0 deletions opensfm/context.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import logging
import os

Expand Down
1 change: 1 addition & 0 deletions opensfm/dataset.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import gzip
import json
import logging
Expand Down
1 change: 1 addition & 0 deletions opensfm/dataset_base.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import logging
from abc import ABC, abstractmethod
from typing import Dict, List, Tuple, Optional, IO, Any
Expand Down
1 change: 1 addition & 0 deletions opensfm/dense.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import logging
import typing as t

Expand Down
1 change: 1 addition & 0 deletions opensfm/exif.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import datetime
import logging
from codecs import encode, decode
Expand Down
1 change: 1 addition & 0 deletions opensfm/feature_loader.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from opensfm import feature_loading


Expand Down
1 change: 1 addition & 0 deletions opensfm/feature_loading.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import logging
from functools import lru_cache
from typing import Optional, Tuple, Any
Expand Down
1 change: 1 addition & 0 deletions opensfm/features.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
"""Tools to extract features."""

import logging
Expand Down
1 change: 1 addition & 0 deletions opensfm/features_processing.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import itertools
import logging
import math
Expand Down
1 change: 1 addition & 0 deletions opensfm/geo.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import numpy as np
from numpy import ndarray
from typing import Tuple
Expand Down
1 change: 1 addition & 0 deletions opensfm/geometry.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
from typing import Tuple

import cv2
Expand Down
Loading

0 comments on commit 7ad7339

Please sign in to comment.