python_code stringlengths 0 4.04M | repo_name stringlengths 8 58 | file_path stringlengths 5 147 |
|---|---|---|
from setuptools import setup
from Cython.Build import cythonize
import numpy
# python setup.py build_ext --inplace
setup(
ext_modules=cythonize(
['cooc_count.pyx'],
annotate=True),
include_dirs=[numpy.get_include()]
) | coocmap-main | fast/setup.py |
#!/usr/bin/env python3
#
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import argparse
import math
import torch
import random
import numpy as np
from tqdm import tqdm
... | bounding_data_reconstruction-main | mnist_logistic_reconstruction.py |
#!/usr/bin/env python3
#
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import array
import gzip
import logging
import os
from os import path
import struct
import math
... | bounding_data_reconstruction-main | datasets.py |
#!/usr/bin/env python3
#
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import argparse
import math
import torch
import numpy as np
import os
import matplotlib.pyplot a... | bounding_data_reconstruction-main | mnist_logistic_regression.py |
#!/usr/bin/env python3
#
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import jax
import jax.numpy as jnp
from jax.experimental import stax
DTYPE_MAPPING = {
"flo... | bounding_data_reconstruction-main | utils.py |
#!/usr/bin/env python3
#
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import jax.numpy as jnp
import jax.random as jnr
from jax import jit, grad, vmap, nn
from jax.tr... | bounding_data_reconstruction-main | trainer.py |
#!/usr/bin/env python3
#
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import itertools
import logging
import jax
import jax.numpy as jnp
import jax.random as jnr
imp... | bounding_data_reconstruction-main | train_classifier.py |
#!/usr/bin/env python3
#
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import jax.numpy as jnp
import jax.random as jnr
from jax import jit, jvp, vjp, jacrev, vmap, n... | bounding_data_reconstruction-main | accountant.py |
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import os
import argparse
import csv
import logging
import pickle
import numpy as np
import torch
import transformers
i... | contriever-main | generate_passage_embeddings.py |
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import sys
import argparse
import torch
import logging
import json
import numpy as np
import os
import src.slurm
import sr... | contriever-main | eval_beir.py |
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import os
import argparse
import torch
import transformers
from src.normalize_text import normalize
def save(tensor, split_path):
if not os.path.exists(os.path.dirname(split_path)):
os.makedirs(os.path.dirname(split_path))
with o... | contriever-main | preprocess.py |
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import argparse
import json
import logging
import glob
import numpy as np
import torch
import src.utils
from src.evaluat... | contriever-main | evaluate_retrieved_passages.py |
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import pdb
import os
import time
import sys
import torch
from torch.utils.tensorboard import SummaryWriter
import logging
import json
import numpy as np
import torch.distributed as dist
from torch.utils.data import DataLoader, RandomSampler, Sequen... | contriever-main | finetuning.py |
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import os
import time
import sys
import torch
import logging
import json
import numpy as np
import random
import pickle
import torch.distributed as dist
from torch.utils.data import DataLoader, RandomSampler
from src.options import Options
from s... | contriever-main | train.py |
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import os
import argparse
import csv
import json
import logging
import pickle
import time
import glob
from pathlib import P... | contriever-main | passage_retrieval.py |
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import sys
import os
import csv
import json
def convert2beir(data_path, output_path):
splits = ['test', 'dev', 'train']
queries_path = os.path.join(output_path, "queries.jsonl")
corpus_path = os.path.join(output_path, "corpus.jsonl")
... | contriever-main | data_scripts/convertmrtydi2beir.py |
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import sys
import os
import json
from collections import defaultdict
def preprocess_xmkqa(input_path, output_dir):
os.makedirs(output_dir, exist_ok=True)
mkqa = []
with open(input_path, 'r') as fin:
for line in fin:
... | contriever-main | data_scripts/preprocess_xmkqa.py |
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import os
import torch
import transformers
from transformers import BertModel, XLMRobertaModel
from src import utils
class Contriever(BertModel):
def __init__(self, config, pooling="average", **kwargs):
super().__init__(config, add_p... | contriever-main | src/contriever.py |
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import argparse
import os
class Options:
def __init__(self):
self.parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
self.initialize()
def initialize(self):
# basic parameters... | contriever-main | src/options.py |
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import torch
import torch.nn as nn
import numpy as np
import math
import random
import transformers
import logging
import torch.distributed as dist
from src import contriever, dist_utils, utils
logger = logging.getLogger(__name__)
class InBatch... | contriever-main | src/inbatch.py |
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import os
import pickle
from typing import List, Tuple
import faiss
import numpy as np
from tqdm import tqdm
class Index... | contriever-main | src/index.py |
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
from logging import getLogger
import os
import sys
import torch
import socket
import signal
import subprocess
logger = ge... | contriever-main | src/slurm.py |
#!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import collections
import logging
import regex
import string
import unicodedata
from functools impor... | contriever-main | src/evaluation.py |
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import torch
import random
import json
import sys
import numpy as np
from src import normalize_text
class Dataset(torch.utils.data.Dataset):
def __init__(
self,
datapaths,
negative_ctxs=1,
negative_hard_ratio=0... | contriever-main | src/finetuning_data.py |
contriever-main | src/__init__.py | |
"""
adapted from chemdataextractor.text.normalize
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tools for normalizing text.
https://github.com/mcs07/ChemDataExtractor
:copyright: Copyright 2016 by Matt Swain.
:license: MIT
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated ... | contriever-main | src/normalize_text.py |
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import os
import sys
import logging
import torch
import errno
from typing import Union, Tuple, List, Dict
from collections import defaultdict
from src import dist_utils
Number = Union[float, int]
logger = logging.getLogger(__name__)
def init_l... | contriever-main | src/utils.py |
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import torch
import torch.nn as nn
import logging
import copy
import transformers
from src import contriever, dist_utils, utils
logger = logging.getLogger(__name__)
class MoCo(nn.Module):
def __init__(self, opt):
super(MoCo, self)._... | contriever-main | src/moco.py |
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import os
import glob
import torch
import random
import json
import csv
import numpy as np
import numpy.random
import logging
from collections import defaultdict
import torch.distributed as dist
from src import dist_utils
logger = logging.getLogg... | contriever-main | src/data.py |
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import torch
import torch.distributed as dist
class Gather(torch.autograd.Function):
@staticmethod
def forward(ctx, x: torch.tensor):
output = [torch.zeros_like(x) for _ in range(dist.get_world_size())]
dist.all_gather(out... | contriever-main | src/dist_utils.py |
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import os
from collections import defaultdict
from typing import List, Dict
import numpy as np
import torch
import torch.distributed as dist
import beir.util
from beir.datasets.data_loader import GenericDataLoader
from beir.retrieval.evaluation im... | contriever-main | src/beir_utils.py |
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import os
import cv2
import numpy as np
from utils.meshutils import read_mesh, process_head_model
from utils.strandsuti... | CT2Hair-main | CT2Hair/interp.py |
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import os
from utils.pcutils import load_pc
from utils.strandsutils import strandspc2strands, smooth_strands
from datau... | CT2Hair-main | CT2Hair/optim.py |
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import torch
import numpy as np
import torch.utils.data as th_data
from utils.strandsutils import spline_strand, pad_st... | CT2Hair-main | CT2Hair/datautils/dataloaders.py |
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import time
import pathlib
import struct
import numpy as np
from utils.pcutils import pc_voxelization, save_pc
def loa... | CT2Hair-main | CT2Hair/datautils/datautils.py |
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import math
import splines
import torch
import numpy as np
from tqdm import tqdm
from scipy.sparse import coo_matrix
fr... | CT2Hair-main | CT2Hair/utils/strandsutils.py |
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import math
import copy
import igl
import trimesh
import numpy as np
from scipy.spatial.transform import Rotation as R
... | CT2Hair-main | CT2Hair/utils/meshutils.py |
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import time
import numpy as np
import open3d as o3d
from copy import deepcopy
from matplotlib import cm
def volume2pc(v... | CT2Hair-main | CT2Hair/utils/pcutils.py |
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import cv2
import math
import torch
import torch.nn as nn
import numpy as np
from matplotlib import cm
def polar2vector... | CT2Hair-main | CT2Hair/utils/utils.py |
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import math
import torch
import torch.nn as nn
import torch.nn.functional as F
class Conv3dGaussian(nn.Module):
'''... | CT2Hair-main | CT2Hair/utils/kernels.py |
from .chamfer_distance import ChamferDistance
| CT2Hair-main | CT2Hair/libs/chamfer_distance/__init__.py |
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
# https://github.com/chrdiller/pyTorchChamferDistance/tree/master
import torch
from torch.utils.cpp_extension import l... | CT2Hair-main | CT2Hair/libs/chamfer_distance/chamfer_distance.py |
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import copy
import math
import torch
import numpy as np
from tqdm import tqdm
from sklearn.cluster import MeanShift
fro... | CT2Hair-main | CT2Hair/modules/neural_strands.py |
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import torch
import torch.nn.functional as F
import numpy as np
from tqdm import tqdm
from scipy.spatial import KDTree
... | CT2Hair-main | CT2Hair/modules/strands_opt.py |
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import os
import csv
import torch
import torch.nn as nn
from modules.networks import *
from utils.utils import batched... | CT2Hair-main | CT2Hair/modules/strands_codec.py |
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import copy
import torch
import inspect
import numpy as np
from typing import Dict, List, Optional, Tuple
from torch.nn... | CT2Hair-main | CT2Hair/modules/networks.py |
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import os
import sys
import argparse
from pyhocon import ConfigFactory
from termcolor import colored
sys.path.append('C... | CT2Hair-main | scripts/interpolation.py |
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import os
import sys
import argparse
from pyhocon import ConfigFactory
from termcolor import colored
sys.path.append('C... | CT2Hair-main | scripts/optimization.py |
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import os
import platform
import argparse
from pyhocon import ConfigFactory
from termcolor import colored
parser = argp... | CT2Hair-main | scripts/est_orientations.py |
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import os
import platform
import argparse
from shutil import copyfile
from pyhocon import ConfigFactory
from termcolor i... | CT2Hair-main | scripts/gen_guide_strands.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | models_vd/decoder.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | models_vd/generator_attnet.py |
corefnmn-main | models_vd/__init__.py | |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | models_vd/assembler.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | models_vd/model.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | models_vd/generator.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | models_vd/modules.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | models_vd/executor.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | util/metrics.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | util/support.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | util/clean.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | util/convert_nmn_layouts.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | util/extract_coreference_supervision.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | util/text_processing.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | util/collect_glove_features.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | util/build_imdb_mnist.py |
corefnmn-main | util/__init__.py | |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | util/cnn.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | util/dataset_to_text.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | util/compress_parser_trees.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | util/build_imdb.py |
#!/usr/bin/env python2
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root... | corefnmn-main | util/parse.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | util/empty_safe_conv.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | exp_mnist/options.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | exp_mnist/visualize_sl.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | exp_mnist/eval_sl.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | exp_mnist/train_sl.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | loader_mnist/data_reader.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | vis/html.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | vis/visualize_dialogs.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | models_mnist/decoder.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | models_mnist/generator_attnet.py |
corefnmn-main | models_mnist/__init__.py | |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | models_mnist/assembler.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | models_mnist/model.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | models_mnist/generator.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | models_mnist/modules.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | models_mnist/executor.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | loader_vd/data_reader.py |
"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sour... | corefnmn-main | exp_vd/options.py |
r"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sou... | corefnmn-main | exp_vd/visualize_sl.py |
r"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sou... | corefnmn-main | exp_vd/eval_sl.py |
r"""Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the n2nmn project which
notice below and in LICENSE.n2nmn in the root directory of
this sou... | corefnmn-main | exp_vd/train_sl.py |
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import setuptools
setuptools.setup(
name="cop3d",
version="1.0.0",
author="Meta AI",
author_e... | cop3d-main | setup.py |
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import os
from co3d.dataset.download_dataset_impl import build_arg_parser, download_dataset
REPO_ROOT = __file__.rsplit(... | cop3d-main | cop3d/download_dataset.py |
# Copyright (c) 2021-present, Facebook, Inc.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
import re
from distutils.core import setup
from setuptools import find_packages
def find_version() -> str:
with open('bisk/__init__.py', 'r... | bipedal-skills-main | setup.py |
# Copyright (c) 2021-present, Facebook, Inc.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
import gym
import pytest
import bisk
@pytest.fixture
def env():
env = gym.make('BiskGoalWall-v1', robot='testcube')
obs, _ = env.reset(... | bipedal-skills-main | tests/test_goalwall.py |
# Copyright (c) 2022-present, Facebook, Inc.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
import gym
import pytest
import numpy as np
import bisk
@pytest.fixture
def env():
env = gym.make('BiskGoToSphere-v1', robot='testcube')
... | bipedal-skills-main | tests/test_gotosphere.py |
# Copyright (c) 2021-present, Facebook, Inc.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
import gym
import pytest
import bisk
@pytest.fixture
def env():
env = gym.make('BiskHurdles-v1', robot='testcube')
obs, _ = env.reset(s... | bipedal-skills-main | tests/test_hurdles.py |
# Copyright (c) 2021-present, Facebook, Inc.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
import gym
import pytest
import bisk
# Simple test whether we can instantiate the env with a robot and do a single
# step.
def _create_helper(e... | bipedal-skills-main | tests/test_robots.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.