Skip to content

Commit

Permalink
Pyre Configurationless migration for] [batch:85/112] [shard:6/N]
Browse files Browse the repository at this point in the history
Reviewed By: inseokhwang

Differential Revision: D54438157

fbshipit-source-id: a6acfe146ed29fff82123b5e458906d4b4cee6a2
  • Loading branch information
connernilsen authored and facebook-github-bot committed Mar 5, 2024
1 parent 3da7703 commit a27755d
Show file tree
Hide file tree
Showing 205 changed files with 410 additions and 0 deletions.
2 changes: 2 additions & 0 deletions projects/implicitron_trainer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe
2 changes: 2 additions & 0 deletions projects/implicitron_trainer/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

""""
This file is the entry point for launching experiments with Implicitron.
Expand Down
2 changes: 2 additions & 0 deletions projects/implicitron_trainer/impl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe
2 changes: 2 additions & 0 deletions projects/implicitron_trainer/impl/model_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import logging
import os
from typing import Optional
Expand Down
2 changes: 2 additions & 0 deletions projects/implicitron_trainer/impl/optimizer_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import inspect
import logging
import os
Expand Down
2 changes: 2 additions & 0 deletions projects/implicitron_trainer/impl/training_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import logging
import os
import time
Expand Down
2 changes: 2 additions & 0 deletions projects/implicitron_trainer/impl/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe


import random

Expand Down
2 changes: 2 additions & 0 deletions projects/implicitron_trainer/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe
2 changes: 2 additions & 0 deletions projects/implicitron_trainer/tests/test_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import os
import tempfile
import unittest
Expand Down
2 changes: 2 additions & 0 deletions projects/implicitron_trainer/tests/test_optimizer_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import logging
import os
import unittest
Expand Down
2 changes: 2 additions & 0 deletions projects/implicitron_trainer/tests/test_visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import os
import unittest

Expand Down
2 changes: 2 additions & 0 deletions projects/implicitron_trainer/tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import contextlib
import logging
import os
Expand Down
2 changes: 2 additions & 0 deletions projects/implicitron_trainer/visualize_reconstruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

"""
Script to visualize a previously trained model. Example call:
Expand Down
2 changes: 2 additions & 0 deletions pytorch3d/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

__version__ = "0.7.6"
2 changes: 2 additions & 0 deletions pytorch3d/common/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from .datatypes import Device, get_device, make_device


Expand Down
2 changes: 2 additions & 0 deletions pytorch3d/common/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from typing import Sequence, Tuple, Union

import torch
Expand Down
2 changes: 2 additions & 0 deletions pytorch3d/common/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from typing import Optional, Union

import torch
Expand Down
2 changes: 2 additions & 0 deletions pytorch3d/common/linear_with_repeat.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import math
from typing import Tuple

Expand Down
2 changes: 2 additions & 0 deletions pytorch3d/common/workaround/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from .symeig3x3 import symeig3x3
from .utils import _safe_det_3x3
2 changes: 2 additions & 0 deletions pytorch3d/common/workaround/symeig3x3.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import math
from typing import Optional, Tuple

Expand Down
2 changes: 2 additions & 0 deletions pytorch3d/common/workaround/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe


import torch

Expand Down
2 changes: 2 additions & 0 deletions pytorch3d/datasets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from .r2n2 import BlenderCamera, collate_batched_R2N2, R2N2, render_cubified_voxels
from .shapenet import ShapeNetCore
from .utils import collate_batched_meshes
Expand Down
2 changes: 2 additions & 0 deletions pytorch3d/datasets/r2n2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from .r2n2 import R2N2
from .utils import BlenderCamera, collate_batched_R2N2, render_cubified_voxels

Expand Down
2 changes: 2 additions & 0 deletions pytorch3d/datasets/r2n2/r2n2.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import json
import warnings
from os import path
Expand Down
2 changes: 2 additions & 0 deletions pytorch3d/datasets/r2n2/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import math
from typing import Dict, List

Expand Down
2 changes: 2 additions & 0 deletions pytorch3d/datasets/shapenet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from .shapenet_core import ShapeNetCore


Expand Down
2 changes: 2 additions & 0 deletions pytorch3d/datasets/shapenet/shapenet_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import json
import os
import warnings
Expand Down
2 changes: 2 additions & 0 deletions pytorch3d/datasets/shapenet_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import warnings
from typing import Dict, List, Optional, Tuple

Expand Down
2 changes: 2 additions & 0 deletions pytorch3d/datasets/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from typing import Dict, List

from pytorch3d.renderer.mesh import TexturesAtlas
Expand Down
2 changes: 2 additions & 0 deletions pytorch3d/implicitron/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe
2 changes: 2 additions & 0 deletions pytorch3d/implicitron/dataset/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe
2 changes: 2 additions & 0 deletions pytorch3d/implicitron/dataset/blender_dataset_map_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe


import torch
from pytorch3d.implicitron.tools.config import registry
Expand Down
2 changes: 2 additions & 0 deletions pytorch3d/implicitron/dataset/data_loader_map_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from dataclasses import dataclass
from enum import Enum
from typing import Iterator, List, Optional, Tuple
Expand Down
2 changes: 2 additions & 0 deletions pytorch3d/implicitron/dataset/data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from typing import Optional, Tuple

from pytorch3d.implicitron.tools.config import (
Expand Down
2 changes: 2 additions & 0 deletions pytorch3d/implicitron/dataset/dataset_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from collections import defaultdict
from dataclasses import dataclass
from typing import (
Expand Down
2 changes: 2 additions & 0 deletions pytorch3d/implicitron/dataset/dataset_map_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import logging
import os
from dataclasses import dataclass
Expand Down
2 changes: 2 additions & 0 deletions pytorch3d/implicitron/dataset/frame_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import os
from abc import ABC, abstractmethod
from collections import defaultdict
Expand Down
2 changes: 2 additions & 0 deletions pytorch3d/implicitron/dataset/json_index_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import copy
import functools
import gzip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe


import json
import os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe


import copy
import json
Expand Down
2 changes: 2 additions & 0 deletions pytorch3d/implicitron/dataset/llff_dataset_map_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe


import numpy as np
import torch
Expand Down
2 changes: 2 additions & 0 deletions pytorch3d/implicitron/dataset/load_blender.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# @lint-ignore-every LICENSELINT
# Adapted from https://github.com/bmild/nerf/blob/master/load_blender.py
# Copyright (c) 2020 bmild

# pyre-unsafe
import json
import os

Expand Down
2 changes: 2 additions & 0 deletions pytorch3d/implicitron/dataset/load_llff.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# @lint-ignore-every LICENSELINT
# Adapted from https://github.com/bmild/nerf/blob/master/load_llff.py
# Copyright (c) 2020 bmild

# pyre-unsafe
import logging
import os
import warnings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from os.path import dirname, join, realpath
from typing import Optional, Tuple

Expand Down
2 changes: 2 additions & 0 deletions pytorch3d/implicitron/dataset/scene_batch_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe


import warnings
from collections import Counter
Expand Down
2 changes: 2 additions & 0 deletions pytorch3d/implicitron/dataset/single_sequence_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe


# This file defines a base class for dataset map providers which
# provide data for a single scene.
Expand Down

0 comments on commit a27755d

Please sign in to comment.