python_code
stringlengths
0
992k
repo_name
stringlengths
8
46
file_path
stringlengths
5
162
RadFM-main
Quick_demo/Model/RadFM/__init__.py
""" Code modified from DETR tranformer: https://github.com/facebookresearch/detr Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ import copy from typing import Optional, List import pickle as cp import torch import torch.nn.functional as F from torch import nn, Tensor class TransformerDecod...
RadFM-main
Quick_demo/Model/RadFM/transformer_decoder.py
from torch import nn from transformers.models.llama import LlamaForCausalLM from transformers import AutoConfig from .my_embedding_layer import MyEmbedding from torch.nn import BCEWithLogitsLoss, CrossEntropyLoss, MSELoss import tqdm.auto as tqdm import torch.nn as nn import torch from torch.utils.checkpoint import che...
RadFM-main
Quick_demo/Model/RadFM/multimodality_model.py
from .blocks import ModifiedResNet,PMC_CLIP_cfg import torch from torchvision import transforms from PIL import Image import torch.nn as nn def extend_instance(obj, mixin): """Apply mixins to a class instance after creation""" base_cls = obj.__class__ base_cls_name = obj.__class__.__name__ obj.__class__...
RadFM-main
Quick_demo/Model/RadFM/utils.py
import torch from torch import nn from einops import rearrange, repeat from einops.layers.torch import Rearrange from .position_encoding import PositionEmbeddingLearned3d # helpers def pair(t): return t if isinstance(t, tuple) else (t, t) # classes class PreNorm(nn.Module): def __init__(self, dim, fn): ...
RadFM-main
Quick_demo/Model/RadFM/vit_3d.py
from collections import OrderedDict from typing import Tuple, Union, Callable, Optional import torch import torch.nn.functional as F from torch import nn from torch.utils.checkpoint import checkpoint class PMC_CLIP_cfg: backbone: str = 'ModifiedRN50' # ['RN50', 'ModifiedRN50', 'MAE'] layers: Union[Tuple[int,...
RadFM-main
Quick_demo/Model/RadFM/blocks.py
""" Taken from https://github.com/lucidrains/flamingo-pytorch """ import torch from einops import rearrange, repeat from einops_exts import rearrange_many from torch import einsum, nn def exists(val): return val is not None def FeedForward(dim, mult=4): inner_dim = int(dim * mult) return nn.Sequential(...
RadFM-main
Quick_demo/Model/RadFM/helpers.py
import tqdm.auto as tqdm import torch.nn.functional as F from typing import Optional, Dict, Sequence from typing import List, Optional, Tuple, Union import transformers from My_Trainer.trainer import Trainer from dataclasses import dataclass, field from Dataset.multi_dataset_test import multi_dataset from Model.RadFM.m...
RadFM-main
src/test.py
import tqdm.auto as tqdm import torch.nn.functional as F from typing import Optional, Dict, Sequence from typing import List, Optional, Tuple, Union import transformers from My_Trainer.trainer import Trainer from dataclasses import dataclass, field from Dataset.multi_dataset import multi_dataset from Model.RadFM.multim...
RadFM-main
src/train.py
import torch.distributed as dist import math from torch.utils.data.sampler import Sampler from torch.utils.data.sampler import Sampler from torch.utils.data import DataLoader import random import torch from New_Dataset.multi_dataset import multi_dataset def make_batch(index_list, batch_size, drop_last): if drop_...
RadFM-main
src/datasampler.py
from torch.utils.data import Dataset import numpy as np import transformers import pandas as pd import copy import random import os import numpy as np import tqdm import torch import json from PIL import Image import math import torchvision from transformers import AutoModelForCausalLM, AutoTokenizer, LlamaTokeniz...
RadFM-main
src/Dataset/multi_dataset_test.py
from torch.utils.data import Dataset import numpy as np import transformers import pandas as pd import copy import random import os import numpy as np import tqdm import torch import json from PIL import Image import math import torchvision from transformers import AutoModelForCausalLM, AutoTokenizer, LlamaTokeniz...
RadFM-main
src/Dataset/multi_dataset_test_for_close.py
from torch.utils.data import Dataset import numpy as np import transformers import pandas as pd import copy import random import os import numpy as np import tqdm import torch import json from PIL import Image import math import torchvision from transformers import AutoModelForCausalLM, AutoTokenizer, LlamaTokeniz...
RadFM-main
src/Dataset/multi_dataset.py
from torch.utils.data import Dataset import numpy as np import transformers import pandas as pd import copy import random import os import numpy as np import tqdm import torch import json from PIL import Image import torchvision from transformers import AutoModelForCausalLM, AutoTokenizer, LlamaTokenizer from torc...
RadFM-main
src/Dataset/dataset/paper_inline.py
import csv import json import logging import os import re import difflib import sys import torch import random from abc import abstractmethod from itertools import islice from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Tuple, Union from collections.abc import Mapping from torch.utils.data import ...
RadFM-main
src/Dataset/dataset/binary.py
from torch.utils.data import Dataset import numpy as np import transformers import pandas as pd import copy import random import os import numpy as np import tqdm import torch import json from PIL import Image import torchvision from transformers import AutoModelForCausalLM, AutoTokenizer, LlamaTokenizer from torc...
RadFM-main
src/Dataset/dataset/MedPix_dataset.py
from .radiopaedia import RadioVQA_Dataset,Radio_Modality_Dataset,Radiofeatures_Dataset,RadioCaption_Dataset from .binary import Binary_Dataset from .chestxray import ChestXray_Dataset from .pmcvqa import PMCVQA_Dataset from .pmcoa import PMCOA_Dataset from .paper_inline import Paper_Inline_dataset from .case_report imp...
RadFM-main
src/Dataset/dataset/__init__.py
import csv import json import logging import os import re import difflib import sys import torch import random from abc import abstractmethod from itertools import islice from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Tuple, Union from collections.abc import Mapping from torch.utils.data import ...
RadFM-main
src/Dataset/dataset/pmcoa.py
import csv import json import logging import os import re import difflib import sys import torch import random from abc import abstractmethod from itertools import islice from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Tuple, Union from collections.abc import Mapping from torch.utils.data import ...
RadFM-main
src/Dataset/dataset/pmcvqa.py
from torch.utils.data import Dataset import numpy as np import transformers import pandas as pd import copy import random import os import numpy as np import tqdm import torch import json from PIL import Image import torchvision from transformers import AutoModelForCausalLM, AutoTokenizer, LlamaTokenizer from torc...
RadFM-main
src/Dataset/dataset/case_report.py
import csv import json import logging import os import re import difflib import sys import cv2 import torch import random from abc import abstractmethod from itertools import islice from scipy import ndimage from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Tuple, Union from collections.abc import ...
RadFM-main
src/Dataset/dataset/radiopaedia.py
import csv import json import logging import os import re import difflib import sys import torch import random from abc import abstractmethod from itertools import islice from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Tuple, Union from collections.abc import Mapping from torch.utils.data import ...
RadFM-main
src/Dataset/dataset/chestxray.py
import torch.nn as nn import torch.nn.functional as F import torch from .helpers import PerceiverResampler from .utils import get_visual_encoder from einops import rearrange, repeat from einops_exts import rearrange_many import torchvision from .vit_3d import ViT from einops.layers.torch import Rearrange from .tra...
RadFM-main
src/Model/RadFM/my_embedding_layer.py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ Various positional encodings for the transformer. """ import math import torch from torch import nn from einops.layers.torch import Rearrange from einops import rearrange, repeat class PositionEmbeddingSine(nn.Module): """ This is a mor...
RadFM-main
src/Model/RadFM/position_encoding.py
RadFM-main
src/Model/RadFM/__init__.py
""" Code modified from DETR tranformer: https://github.com/facebookresearch/detr Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ import copy from typing import Optional, List import pickle as cp import torch import torch.nn.functional as F from torch import nn, Tensor class TransformerDecod...
RadFM-main
src/Model/RadFM/transformer_decoder.py
from torch import nn from transformers.models.llama import LlamaForCausalLM from .my_embedding_layer import MyEmbedding from torch.nn import BCEWithLogitsLoss, CrossEntropyLoss, MSELoss import tqdm.auto as tqdm import torch.nn as nn import torch from torch.utils.checkpoint import checkpoint from torch.autograd import V...
RadFM-main
src/Model/RadFM/multimodality_model.py
from .blocks import ModifiedResNet,PMC_CLIP_cfg import torch from torchvision import transforms from PIL import Image import torch.nn as nn def extend_instance(obj, mixin): """Apply mixins to a class instance after creation""" base_cls = obj.__class__ base_cls_name = obj.__class__.__name__ obj.__class__...
RadFM-main
src/Model/RadFM/utils.py
import torch from torch import nn from einops import rearrange, repeat from einops.layers.torch import Rearrange from .position_encoding import PositionEmbeddingLearned3d # helpers def pair(t): return t if isinstance(t, tuple) else (t, t) # classes class PreNorm(nn.Module): def __init__(self, dim, fn): ...
RadFM-main
src/Model/RadFM/vit_3d.py
from collections import OrderedDict from typing import Tuple, Union, Callable, Optional import torch import torch.nn.functional as F from torch import nn from torch.utils.checkpoint import checkpoint class PMC_CLIP_cfg: backbone: str = 'ModifiedRN50' # ['RN50', 'ModifiedRN50', 'MAE'] layers: Union[Tuple[int,...
RadFM-main
src/Model/RadFM/blocks.py
""" Taken from https://github.com/lucidrains/flamingo-pytorch """ import torch from einops import rearrange, repeat from einops_exts import rearrange_many from torch import einsum, nn def exists(val): return val is not None def FeedForward(dim, mult=4): inner_dim = int(dim * mult) return nn.Sequential(...
RadFM-main
src/Model/RadFM/helpers.py
# coding=utf-8 # Copyright 2020-present the HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
RadFM-main
src/My_Trainer/trainer.py
# Copyright 2019 Deepmind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
deepmind-research-master
__init__.py
# Copyright 2019 Deepmind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
deepmind-research-master
iodine/configurations.py
# Copyright 2019 Deepmind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
deepmind-research-master
iodine/main.py
# Copyright 2019 Deepmind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
deepmind-research-master
iodine/modules/decoder.py
# Copyright 2019 Deepmind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
deepmind-research-master
iodine/modules/factor_eval.py
# Copyright 2019 Deepmind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
deepmind-research-master
iodine/modules/plotting.py
# Copyright 2019 Deepmind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
deepmind-research-master
iodine/modules/__init__.py
# Copyright 2019 Deepmind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
deepmind-research-master
iodine/modules/refinement.py
# Copyright 2019 Deepmind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
deepmind-research-master
iodine/modules/distributions.py
# Copyright 2019 Deepmind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
deepmind-research-master
iodine/modules/networks.py
# Copyright 2019 Deepmind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
deepmind-research-master
iodine/modules/utils.py
# Copyright 2019 Deepmind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
deepmind-research-master
iodine/modules/iodine.py
# Copyright 2019 Deepmind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
deepmind-research-master
iodine/modules/data.py
# Copyright 2020 DeepMind Technologies Limited. # # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
deepmind-research-master
mmv/config.py
# Copyright 2020 DeepMind Technologies Limited. # # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
deepmind-research-master
mmv/eval_ucf101.py
# Copyright 2020 DeepMind Technologies Limited. # # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
deepmind-research-master
mmv/utils/checkpoint.py
# Copyright 2020 DeepMind Technologies Limited. # # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
deepmind-research-master
mmv/utils/ucf101_dataset.py
# Copyright 2020 DeepMind Technologies Limited. # # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
deepmind-research-master
mmv/models/mm_embeddings.py
# Copyright 2020 DeepMind Technologies Limited. # # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
deepmind-research-master
mmv/models/tsm_resnet_test.py
# Copyright 2020 DeepMind Technologies Limited. # # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
deepmind-research-master
mmv/models/tsm_utils_test.py
# Copyright 2020 DeepMind Technologies Limited. # # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
deepmind-research-master
mmv/models/tsm_utils.py
# Copyright 2020 DeepMind Technologies Limited. # # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
deepmind-research-master
mmv/models/tsm_resnet.py
# Copyright 2020 DeepMind Technologies Limited. # # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
deepmind-research-master
mmv/models/s3d.py
# Copyright 2020 DeepMind Technologies Limited. # # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
deepmind-research-master
mmv/models/types.py
# Copyright 2020 DeepMind Technologies Limited. # # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
deepmind-research-master
mmv/models/resnet.py
# Copyright 2020 DeepMind Technologies Limited. # # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
deepmind-research-master
mmv/models/normalization.py
# Copyright 2020 DeepMind Technologies Limited. # # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
deepmind-research-master
mmv/models/s3d_test.py
# Copyright 2019 DeepMind Technologies Limited and Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
deepmind-research-master
scratchgan/eval_metrics.py
# Copyright 2019 DeepMind Technologies Limited and Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
deepmind-research-master
scratchgan/__init__.py
# Copyright 2019 DeepMind Technologies Limited and Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
deepmind-research-master
scratchgan/generators.py
# Copyright 2019 DeepMind Technologies Limited and Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
deepmind-research-master
scratchgan/reader.py
# Copyright 2019 DeepMind Technologies Limited and Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
deepmind-research-master
scratchgan/experiment.py
# Copyright 2019 DeepMind Technologies Limited and Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
deepmind-research-master
scratchgan/utils.py
# Copyright 2019 DeepMind Technologies Limited and Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
deepmind-research-master
scratchgan/losses.py
# Copyright 2019 DeepMind Technologies Limited and Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
deepmind-research-master
scratchgan/discriminator_nets.py
# pylint: disable=g-bad-file-header # Copyright 2020 DeepMind Technologies Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/...
deepmind-research-master
learning_to_simulate/reading_utils.py
# pylint: disable=g-bad-file-header # Copyright 2020 DeepMind Technologies Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/...
deepmind-research-master
learning_to_simulate/render_rollout.py
# pylint: disable=g-bad-file-header # Copyright 2020 DeepMind Technologies Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/...
deepmind-research-master
learning_to_simulate/learned_simulator.py
# pylint: disable=g-bad-file-header # Copyright 2020 DeepMind Technologies Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/...
deepmind-research-master
learning_to_simulate/train.py
# pylint: disable=g-bad-file-header # Copyright 2020 DeepMind Technologies Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/...
deepmind-research-master
learning_to_simulate/connectivity_utils.py
# pylint: disable=g-bad-file-header # Copyright 2020 DeepMind Technologies Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/...
deepmind-research-master
learning_to_simulate/noise_utils.py
# pylint: disable=g-bad-file-header # Copyright 2020 DeepMind Technologies Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/...
deepmind-research-master
learning_to_simulate/model_demo.py
# pylint: disable=g-bad-file-header # Copyright 2020 DeepMind Technologies Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/...
deepmind-research-master
learning_to_simulate/graph_network.py
# Copyright 2020 DeepMind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
deepmind-research-master
sketchy/metadata_schema.py
# Copyright 2020 DeepMind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
deepmind-research-master
sketchy/reward_example.py
# Copyright 2020 DeepMind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
deepmind-research-master
sketchy/__init__.py
# Copyright 2020 DeepMind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
deepmind-research-master
sketchy/dataset_example.py
# Copyright 2020 DeepMind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
deepmind-research-master
sketchy/sketchy.py
# Copyright 2018 Deepmind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
deepmind-research-master
box_arrangement/predicates.py
# Copyright 2018 Deepmind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
deepmind-research-master
box_arrangement/predicate_task.py
# Copyright 2021 DeepMind Technologies Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
deepmind-research-master
box_arrangement/__init__.py
# Copyright 2020 DeepMind Technologies Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
deepmind-research-master
box_arrangement/setup.py
# Copyright 2020 Deepmind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
deepmind-research-master
box_arrangement/predicate_task_test.py
# Copyright 2020 Deepmind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
deepmind-research-master
box_arrangement/explore.py
# Copyright 2019 Deepmind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
deepmind-research-master
box_arrangement/task_examples.py
# Copyright 2018 Deepmind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
deepmind-research-master
box_arrangement/dmlab_assets.py
# Copyright 2021 DeepMind Technologies Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
deepmind-research-master
nfnets/fixup_resnet.py
# Copyright 2021 DeepMind Technologies Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
deepmind-research-master
nfnets/experiment_nf_regnets.py
# Copyright 2021 DeepMind Technologies Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
deepmind-research-master
nfnets/skipinit_resnet.py
# Copyright 2021 DeepMind Technologies Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
deepmind-research-master
nfnets/nf_regnet.py
# Copyright 2021 DeepMind Technologies Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
deepmind-research-master
nfnets/test.py
# Copyright 2021 DeepMind Technologies Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
deepmind-research-master
nfnets/agc_optax.py
# Copyright 2021 DeepMind Technologies Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
deepmind-research-master
nfnets/dataset.py
# Copyright 2021 DeepMind Technologies Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
deepmind-research-master
nfnets/experiment.py
# Copyright 2021 DeepMind Technologies Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
deepmind-research-master
nfnets/experiment_nfnets.py
# Copyright 2021 DeepMind Technologies Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
deepmind-research-master
nfnets/resnet.py
# Copyright 2021 DeepMind Technologies Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
deepmind-research-master
nfnets/utils.py
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
deepmind-research-master
nfnets/autoaugment.py