Pyre Configurationless migration for] [batch:85/112] [shard:6/N]

Reviewed By: inseokhwang

Differential Revision: D54438157

fbshipit-source-id: a6acfe146ed29fff82123b5e458906d4b4cee6a2
This commit is contained in:
Conner Nilsen 2024-03-04 18:30:37 -08:00 committed by Facebook GitHub Bot
parent 3da7703c5a
commit a27755db41
205 changed files with 410 additions and 0 deletions

View File

@ -3,3 +3,5 @@
# #
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe

View File

@ -5,6 +5,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
"""" """"
This file is the entry point for launching experiments with Implicitron. This file is the entry point for launching experiments with Implicitron.

View File

@ -3,3 +3,5 @@
# #
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import logging import logging
import os import os
from typing import Optional from typing import Optional

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import inspect import inspect
import logging import logging
import os import os

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import logging import logging
import os import os
import time import time

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import random import random

View File

@ -3,3 +3,5 @@
# #
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import os import os
import tempfile import tempfile
import unittest import unittest

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import logging import logging
import os import os
import unittest import unittest

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import os import os
import unittest import unittest

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import contextlib import contextlib
import logging import logging
import os import os

View File

@ -5,6 +5,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
""" """
Script to visualize a previously trained model. Example call: Script to visualize a previously trained model. Example call:

View File

@ -4,4 +4,6 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
__version__ = "0.7.6" __version__ = "0.7.6"

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from .datatypes import Device, get_device, make_device from .datatypes import Device, get_device, make_device

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from typing import Sequence, Tuple, Union from typing import Sequence, Tuple, Union
import torch import torch

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from typing import Optional, Union from typing import Optional, Union
import torch import torch

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import math import math
from typing import Tuple from typing import Tuple

View File

@ -4,5 +4,7 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from .symeig3x3 import symeig3x3 from .symeig3x3 import symeig3x3
from .utils import _safe_det_3x3 from .utils import _safe_det_3x3

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import math import math
from typing import Optional, Tuple from typing import Optional, Tuple

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import torch import torch

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from .r2n2 import BlenderCamera, collate_batched_R2N2, R2N2, render_cubified_voxels from .r2n2 import BlenderCamera, collate_batched_R2N2, R2N2, render_cubified_voxels
from .shapenet import ShapeNetCore from .shapenet import ShapeNetCore
from .utils import collate_batched_meshes from .utils import collate_batched_meshes

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from .r2n2 import R2N2 from .r2n2 import R2N2
from .utils import BlenderCamera, collate_batched_R2N2, render_cubified_voxels from .utils import BlenderCamera, collate_batched_R2N2, render_cubified_voxels

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import json import json
import warnings import warnings
from os import path from os import path

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import math import math
from typing import Dict, List from typing import Dict, List

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from .shapenet_core import ShapeNetCore from .shapenet_core import ShapeNetCore

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import json import json
import os import os
import warnings import warnings

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import warnings import warnings
from typing import Dict, List, Optional, Tuple from typing import Dict, List, Optional, Tuple

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from typing import Dict, List from typing import Dict, List
from pytorch3d.renderer.mesh import TexturesAtlas from pytorch3d.renderer.mesh import TexturesAtlas

View File

@ -3,3 +3,5 @@
# #
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe

View File

@ -3,3 +3,5 @@
# #
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import torch import torch
from pytorch3d.implicitron.tools.config import registry from pytorch3d.implicitron.tools.config import registry

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from dataclasses import dataclass from dataclasses import dataclass
from enum import Enum from enum import Enum
from typing import Iterator, List, Optional, Tuple from typing import Iterator, List, Optional, Tuple

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from typing import Optional, Tuple from typing import Optional, Tuple
from pytorch3d.implicitron.tools.config import ( from pytorch3d.implicitron.tools.config import (

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from collections import defaultdict from collections import defaultdict
from dataclasses import dataclass from dataclasses import dataclass
from typing import ( from typing import (

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import logging import logging
import os import os
from dataclasses import dataclass from dataclasses import dataclass

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import os import os
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
from collections import defaultdict from collections import defaultdict

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import copy import copy
import functools import functools
import gzip import gzip

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import json import json
import os import os

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import copy import copy
import json import json

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import numpy as np import numpy as np
import torch import torch

View File

@ -1,6 +1,8 @@
# @lint-ignore-every LICENSELINT # @lint-ignore-every LICENSELINT
# Adapted from https://github.com/bmild/nerf/blob/master/load_blender.py # Adapted from https://github.com/bmild/nerf/blob/master/load_blender.py
# Copyright (c) 2020 bmild # Copyright (c) 2020 bmild
# pyre-unsafe
import json import json
import os import os

View File

@ -1,6 +1,8 @@
# @lint-ignore-every LICENSELINT # @lint-ignore-every LICENSELINT
# Adapted from https://github.com/bmild/nerf/blob/master/load_llff.py # Adapted from https://github.com/bmild/nerf/blob/master/load_llff.py
# Copyright (c) 2020 bmild # Copyright (c) 2020 bmild
# pyre-unsafe
import logging import logging
import os import os
import warnings import warnings

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from os.path import dirname, join, realpath from os.path import dirname, join, realpath
from typing import Optional, Tuple from typing import Optional, Tuple

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import warnings import warnings
from collections import Counter from collections import Counter

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
# This file defines a base class for dataset map providers which # This file defines a base class for dataset map providers which
# provide data for a single scene. # provide data for a single scene.

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import logging import logging
from typing import Any, Dict, Optional, Tuple from typing import Any, Dict, Optional, Tuple

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import dataclasses import dataclasses
import gzip import gzip

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import functools import functools
import warnings import warnings

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from typing import cast, Optional, Tuple from typing import cast, Optional, Tuple
import torch import torch

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import dataclasses import dataclasses
import os import os

View File

@ -3,3 +3,5 @@
# #
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import copy import copy
import warnings import warnings

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import copy import copy
import json import json
import logging import logging

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
# Allows to register the models # Allows to register the models
# see: pytorch3d.implicitron.tools.config.registry:register # see: pytorch3d.implicitron.tools.config.registry:register
from pytorch3d.implicitron.models.generic_model import GenericModel from pytorch3d.implicitron.models.generic_model import GenericModel

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from dataclasses import dataclass, field from dataclasses import dataclass, field
from typing import Any, Dict, List, Optional from typing import Any, Dict, List, Optional

View File

@ -4,4 +4,6 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from .feature_extractor import FeatureExtractorBase from .feature_extractor import FeatureExtractorBase

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from typing import Any, Dict, Optional from typing import Any, Dict, Optional
import torch import torch

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import logging import logging
import math import math
from typing import Any, Dict, Optional, Tuple from typing import Any, Dict, Optional, Tuple

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
# Note: The #noqa comments below are for unused imports of pluggable implementations # Note: The #noqa comments below are for unused imports of pluggable implementations
# which are part of implicitron. They ensure that the registry is prepopulated. # which are part of implicitron. They ensure that the registry is prepopulated.

View File

@ -3,3 +3,5 @@
# #
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import warnings import warnings
from collections import defaultdict from collections import defaultdict
from typing import Dict, List, Optional, Union from typing import Dict, List, Optional, Union

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from typing import List, Optional, Union from typing import List, Optional, Union
import torch import torch

View File

@ -3,3 +3,5 @@
# #
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
from typing import Optional from typing import Optional

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
""" """
This file contains This file contains
- modules which get used by ImplicitFunction objects for decoding an embedding defined in - modules which get used by ImplicitFunction objects for decoding an embedding defined in

View File

@ -2,6 +2,8 @@
# Adapted from https://github.com/lioryariv/idr/blob/main/code/model/ # Adapted from https://github.com/lioryariv/idr/blob/main/code/model/
# implicit_differentiable_renderer.py # implicit_differentiable_renderer.py
# Copyright (c) 2020 Lior Yariv # Copyright (c) 2020 Lior Yariv
# pyre-unsafe
import math import math
from typing import Optional, Tuple from typing import Optional, Tuple

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import logging import logging
from typing import Optional, Tuple from typing import Optional, Tuple

View File

@ -1,6 +1,8 @@
# @lint-ignore-every LICENSELINT # @lint-ignore-every LICENSELINT
# Adapted from https://github.com/vsitzmann/scene-representation-networks # Adapted from https://github.com/vsitzmann/scene-representation-networks
# Copyright (c) 2019 Vincent Sitzmann # Copyright (c) 2019 Vincent Sitzmann
# pyre-unsafe
from typing import Any, cast, Optional, Tuple from typing import Any, cast, Optional, Tuple
import torch import torch

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from typing import Callable, Optional from typing import Callable, Optional
import torch import torch

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
""" """
This file contains classes that implement Voxel grids, both in their full resolution This file contains classes that implement Voxel grids, both in their full resolution
as in the factorized form. There are two factorized forms implemented, Tensor rank decomposition as in the factorized form. There are two factorized forms implemented, Tensor rank decomposition

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import logging import logging
import math import math
import warnings import warnings

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import warnings import warnings
from typing import Any, Dict, Optional from typing import Any, Dict, Optional

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from typing import Any, Dict, List, Optional, Tuple from typing import Any, Dict, List, Optional, Tuple

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
# Note: The #noqa comments below are for unused imports of pluggable implementations # Note: The #noqa comments below are for unused imports of pluggable implementations
# which are part of implicitron. They ensure that the registry is prepopulated. # which are part of implicitron. They ensure that the registry is prepopulated.

View File

@ -3,3 +3,5 @@
# #
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from __future__ import annotations from __future__ import annotations
from abc import ABC, abstractmethod from abc import ABC, abstractmethod

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import copy import copy
import logging import logging
from typing import List, Optional, Tuple from typing import List, Optional, Tuple

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from typing import List from typing import List
import torch import torch

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import copy import copy
import torch import torch

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from typing import Optional, Tuple from typing import Optional, Tuple
import torch import torch

View File

@ -2,6 +2,8 @@
# Adapted from https://github.com/lioryariv/idr # Adapted from https://github.com/lioryariv/idr
# Copyright (c) 2020 Lior Yariv # Copyright (c) 2020 Lior Yariv
# pyre-unsafe
from typing import Any, Callable, Tuple from typing import Any, Callable, Tuple
import torch import torch

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from typing import Any, Callable, Dict, Optional, Tuple from typing import Any, Callable, Dict, Optional, Tuple
import torch import torch

View File

@ -3,6 +3,8 @@
# https://github.com/lioryariv/idr/ # https://github.com/lioryariv/idr/
# Copyright (c) 2020 Lior Yariv # Copyright (c) 2020 Lior Yariv
# pyre-unsafe
import logging import logging
from typing import List, Tuple from typing import List, Tuple

View File

@ -2,6 +2,8 @@
# Adapted from https://github.com/lioryariv/idr/blob/main/code/model/ # Adapted from https://github.com/lioryariv/idr/blob/main/code/model/
# implicit_differentiable_renderer.py # implicit_differentiable_renderer.py
# Copyright (c) 2020 Lior Yariv # Copyright (c) 2020 Lior Yariv
# pyre-unsafe
import functools import functools
from typing import List, Optional, Tuple from typing import List, Optional, Tuple

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
# Note: The #noqa comments below are for unused imports of pluggable implementations # Note: The #noqa comments below are for unused imports of pluggable implementations
# which are part of implicitron. They ensure that the registry is prepopulated. # which are part of implicitron. They ensure that the registry is prepopulated.

View File

@ -3,3 +3,5 @@
# #
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
from enum import Enum from enum import Enum
from typing import Dict, Optional, Sequence, Tuple, Union from typing import Dict, Optional, Sequence, Tuple, Union

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from typing import Dict, List, Optional, Union from typing import Dict, List, Optional, Union
import torch import torch

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from typing import Dict, List, Optional, Tuple, Union from typing import Dict, List, Optional, Tuple, Union
import torch import torch

View File

@ -4,3 +4,5 @@
# #
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe

View File

@ -5,6 +5,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import logging import logging
import math import math

View File

@ -3,3 +3,5 @@
# #
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe

View File

@ -1,6 +1,8 @@
# a copy-paste from https://github.com/vsitzmann/scene-representation-networks/blob/master/hyperlayers.py # a copy-paste from https://github.com/vsitzmann/scene-representation-networks/blob/master/hyperlayers.py
# fmt: off # fmt: off
# flake8: noqa # flake8: noqa
# pyre-unsafe
'''Pytorch implementations of hyper-network modules. '''Pytorch implementations of hyper-network modules.
''' '''
import functools import functools

View File

@ -1,6 +1,8 @@
# a copy-paste from https://raw.githubusercontent.com/vsitzmann/pytorch_prototyping/10f49b1e7df38a58fd78451eac91d7ac1a21df64/pytorch_prototyping.py # a copy-paste from https://raw.githubusercontent.com/vsitzmann/pytorch_prototyping/10f49b1e7df38a58fd78451eac91d7ac1a21df64/pytorch_prototyping.py
# fmt: off # fmt: off
# flake8: noqa # flake8: noqa
# pyre-unsafe
'''A number of custom pytorch modules with sane defaults that I find useful for model prototyping. '''A number of custom pytorch modules with sane defaults that I find useful for model prototyping.
''' '''
import torch import torch

View File

@ -3,3 +3,5 @@
# #
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
# TODO: all this potentially goes to PyTorch3D # TODO: all this potentially goes to PyTorch3D

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import warnings import warnings
from dataclasses import dataclass from dataclasses import dataclass
from math import pi from math import pi

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import dataclasses import dataclasses
import inspect import inspect
import itertools import itertools

View File

@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import torch import torch
import torch.nn.functional as Fu import torch.nn.functional as Fu
from pytorch3d.ops import wmean from pytorch3d.ops import wmean

Some files were not shown because too many files have changed in this diff Show More