python_code
stringlengths
0
679k
repo_name
stringlengths
9
41
file_path
stringlengths
6
149
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/pruning/torch_pruning/dependency.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/pruning/torch_pruning/helpers.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/pruning/torch_pruning/pruner/magnitude_based_pruner.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/pruning/torch_pruning/pruner/basepruner.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/pruning/torch_pruning/pruner/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/pruning/torch_pruning/pruner/batchnorm_scale_pruner.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/pruning/torch_pruning/pruner/structural_dropout_pruner.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/pruning/torch_pruning/pruner/structural_reg_pruner.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/pruning/torch_pruning/functional/unstructured.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/pruning/torch_pruning/functional/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/pruning/torch_pruning/functional/structured.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/scripts/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/scripts/export.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/scripts/train.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/scripts/prune.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/scripts/inference.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/scripts/evaluate.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/entrypoint/ocdnet.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/entrypoint/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/model/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/model/model.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/model/basic.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/model/build_nn_model.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/model/pl_ocd_model.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/model/losses/basic_loss.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/model/losses/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/model/losses/DB_loss.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/model/head/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/model/head/conv_head.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/model/head/db_head.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/model/neck/FPN.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/model/neck/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/model/backbone/shufflenetv2.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/model/backbone/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/model/backbone/mobilenet_v3.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/model/backbone/resnet.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/model/backbone/resnest/splat.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/model/backbone/resnest/ablation.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/model/backbone/resnest/resnest.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/model/backbone/resnest/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/model/backbone/resnest/resnet.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/data_loader/build_dataloader.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/data_loader/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/data_loader/dataset.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/data_loader/modules/make_shrink_map.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/data_loader/modules/make_border_map.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/data_loader/modules/iaa_augment.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/data_loader/modules/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/data_loader/modules/augment.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/data_loader/modules/random_crop_data.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/base/base_dataset.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/ocdnet/base/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/mal/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/mal/config/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/mal/config/default_config.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/mal/lr_schedulers/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # This work is made available under the Nvidia Source Code License-NC. # To view a copy of this license, visit # https://github.com/NVlabs/MAL/blob/main/LICENSE # # Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/mal/lr_schedulers/cosine_lr.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # This work is made available under the Nvidia Source Code License-NC. # To view a copy of this license, visit # https://github.com/NVlabs/MAL/blob/main/LICENSE """COCO dataset.""" from nvidia_tao_pytorch.cv.mal.datasets.voc import InstSegVOC, BoxLabelV...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/mal/datasets/coco.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/mal/datasets/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # This work is made available under the Nvidia Source Code License-NC. # To view a copy of this license, visit # https://github.com/NVlabs/MAL/blob/main/LICENSE """Data augmentation.""" import collections from copy import deepcopy from PIL import ImageF...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/mal/datasets/data_aug.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # This work is made available under the Nvidia Source Code License-NC. # To view a copy of this license, visit # https://github.com/NVlabs/MAL/blob/main/LICENSE """Custom LightningDataModule for MAL.""" import logging import pytorch_lightning as pl fro...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/mal/datasets/pl_data_module.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # This work is made available under the Nvidia Source Code License-NC. # To view a copy of this license, visit # https://github.com/NVlabs/MAL/blob/main/LICENSE """VOC dataset.""" import os import logging import json import numpy as np from PIL import I...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/mal/datasets/voc.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/mal/utils/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/mal/utils/config_utils.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/mal/models/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # This work is made available under the Nvidia Source Code License-NC. # To view a copy of this license, visit # https://github.com/NVlabs/FAN/blob/main/LICENSE """MAL model.""" from collections import OrderedDict, namedtuple import itertools import jso...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/mal/models/mal.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # This work is made available under the Nvidia Source Code License-NC. # To view a copy of this license, visit # https://github.com/NVlabs/MAL/blob/main/LICENSE """Transformer (ViT and FAN) builder.""" from functools import partial import torch import ...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/mal/models/vit_builder.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/mal/optimizers/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # This work is made available under the Nvidia Source Code License-NC. # To view a copy of this license, visit # https://github.com/NVlabs/MAL/blob/main/LICENSE """AdamW optimizer with step.""" from torch.optim import AdamW class AdamWwStep(AdamW): ...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/mal/optimizers/adamw.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/mal/scripts/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # This work is made available under the Nvidia Source Code License-NC. # To view a copy of this license, visit # https://github.com/NVlabs/MAL/blob/main/LICENSE """MAL training script.""" import logging import os import glob import warnings import torch...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/mal/scripts/train.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # This work is made available under the Nvidia Source Code License-NC. # To view a copy of this license, visit # https://github.com/NVlabs/MAL/blob/main/LICENSE """MAL inference script.""" import os import warnings import torch from pytorch_lightning ...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/mal/scripts/inference.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # This work is made available under the Nvidia Source Code License-NC. # To view a copy of this license, visit # https://github.com/NVlabs/MAL/blob/main/LICENSE """MAL evaluation script.""" import os import warnings import torch from pytorch_lightning ...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/mal/scripts/evaluate.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/mal/entrypoint/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/mal/entrypoint/mal.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/re_identification/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/re_identification/config/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/re_identification/config/default_config.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # Original source taken from https://github.com/michuanhaohao/reid-strong-baseline # # 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 Licen...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/re_identification/utils/re_ranking.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # Original source taken from https://github.com/michuanhaohao/reid-strong-baseline # # 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 Licen...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/re_identification/utils/reid_metric.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/re_identification/utils/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # Original source taken from https://github.com/michuanhaohao/reid-strong-baseline # # 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 Licen...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/re_identification/utils/scheduler.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/re_identification/utils/common_utils.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # Original source taken from https://github.com/michuanhaohao/reid-strong-baseline # # 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 Licen...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/re_identification/utils/eval_reid.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/re_identification/scripts/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/re_identification/scripts/export.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/re_identification/scripts/train.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/re_identification/scripts/inference.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/re_identification/scripts/evaluate.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/re_identification/entrypoint/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/re_identification/entrypoint/re_identification.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # Original source taken from https://github.com/michuanhaohao/reid-strong-baseline # # 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 Licen...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/re_identification/model/triplet_loss.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/re_identification/model/reid_model.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # Original source taken from https://github.com/michuanhaohao/reid-strong-baseline # # 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 Licen...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/re_identification/model/baseline.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/re_identification/model/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # Original source taken from https://github.com/michuanhaohao/reid-strong-baseline # # 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 Licen...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/re_identification/model/center_loss.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # Original source taken from https://github.com/michuanhaohao/reid-strong-baseline # # 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 Licen...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/re_identification/model/resnet.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/re_identification/model/pl_reid_model.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/re_identification/model/build_nn_model.py
# Copyright (c) 2023, NVIDIA CORPORATION. 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 appli...
tao_pytorch_backend-main
nvidia_tao_pytorch/cv/re_identification/inference/inferencer.py