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_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/layers/box_input_layer.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_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/layers/image_input_layer.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_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/layers/proposal_assignment_layer.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_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/layers/multilevel_crop_resize_layer.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_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/layers/foreground_selector_for_mask.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_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/layers/reshape_layer.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_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/layers/mask_targets_layer.py
"""Module containing proto files and the compiled pb2 files."""
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/proto/__init__.py
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: nvidia_tao_tf1/cv/mask_rcnn/proto/experiment.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/proto/experiment_pb2.py
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: nvidia_tao_tf1/cv/mask_rcnn/proto/maskrcnn_config.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from g...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/proto/maskrcnn_config_pb2.py
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: nvidia_tao_tf1/cv/mask_rcnn/proto/data_config.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from googl...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/proto/data_config_pb2.py
"MaskRCNN dataset module."
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/dataset/__init__.py
# Copyright 2017 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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/dataset/create_coco_tf_record.py
"""Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/training/__init__.py
# Copyright 2018 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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/training/learning_rates.py
# Copyright 2018 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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/training/losses.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_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/training/tests/test_losses.py
"""Meters.""" # 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 req...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/utils/meters.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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/utils/evaluation.py
"""Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/utils/__init__.py
"""dataset utils for unit test.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow.compat.v1 as tf def int64_feature(value): """int64_feature.""" return tf.train.Feature(int64_list=tf.train.Int64List(value=[value])) def int64_li...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/utils/dataset_utils.py
"""Logging Backend.""" # 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 # # U...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/utils/logging_backend.py
"""DLLogger utils.""" # 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 # # Un...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/utils/dllogger_class.py
"""Logging formatter.""" # 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 # #...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/utils/logging_formatter.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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/utils/box_utils.py
"""Utilities for distributed execution.""" # 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/licens...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/utils/distributed_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_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/utils/model_loader.py
# Copyright (c) 2006-2011, NIPY Developers # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of ...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/utils/lazy_imports.py
# Copyright 2018 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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/utils/coco_metric.py
"""Metric Tracking Utils.""" # 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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/utils/metric_tracking.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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/utils/coco_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_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/utils/spec_loader.py
"""Singleton Base Class.""" # 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 ...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/utils/metaclasses.py
"""Decorators.""" # 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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/utils/decorators.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_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/utils/tests/test_spec_loader.py
# Copyright 2018 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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/models/mask_rcnn_model.py
# Copyright 2018 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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/models/fpn.py
"""Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/models/__init__.py
# Copyright 2018 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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/models/anchors.py
# Copyright 2018 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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/models/resnet.py
"""Utilities for Keras layers.""" # 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/LICENS...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/models/keras_utils.py
# Copyright 2018 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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/models/heads.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_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/models/tests/test_mrcnn.py
"""Checkpointing hook with encryption.""" # 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/license...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/hooks/enc_ckpt_hook.py
"""Pretrained weight loading hooks.""" # 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/L...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/hooks/pretrained_restore_hook.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_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/hooks/logging_hook.py
"""Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/hooks/__init__.py
"""Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/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_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/scripts/export.py
# Copyright 2019-2020 NVIDIA Corporation. All rights reserved. """MaskRCNN TensorRT inference.""" import argparse from functools import partial import json import os import numpy as np from PIL import Image, ImageDraw import PIL.ImageColor as ImageColor import pycocotools.mask as maskUtils from skimage import measure...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/scripts/inference_trt.py
r"""Convert raw COCO dataset to TFRecord for object_detection.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import collections import hashlib import io import json import multiprocessing import os import numpy as np import PIL.Image fr...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/scripts/dataset_convert.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_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/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_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/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_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/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_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/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_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/scripts/tests/test_train.py
# Copyright (c) 2017-2020, NVIDIA CORPORATION. All rights reserved. """TLT MaskRCNN entrypoint.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/entrypoint/__init__.py
# Copyright (c) 2017-2020, NVIDIA CORPORATION. All rights reserved. """TLT command line wrapper to invoke CLI scripts.""" import os import sys from nvidia_tao_tf1.cv.common.entrypoint.entrypoint import launch_job import nvidia_tao_tf1.cv.mask_rcnn.scripts def main(): """Function to launch the job.""" os.env...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/entrypoint/mask_rcnn.py
# Copyright 2017 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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/object_detection/visualization_utils.py
# Copyright 2017 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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/object_detection/target_assigner.py
# Copyright 2017 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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/object_detection/matcher.py
# Copyright 2017 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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/object_detection/faster_rcnn_box_coder.py
# Copyright 2017 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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/object_detection/shape_utils.py
# Copyright 2017 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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/object_detection/box_coder.py
"""Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/object_detection/__init__.py
# Copyright 2017 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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/object_detection/minibatch_sampler.py
# Copyright 2017 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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/object_detection/preprocessor.py
# Copyright 2017 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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/object_detection/ops.py
# Copyright 2017 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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/object_detection/balanced_positive_negative_sampler.py
# Copyright 2017 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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/object_detection/box_list.py
# Copyright 2017 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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/object_detection/region_similarity_calculator.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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/object_detection/tf_example_decoder.py
# Copyright 2017 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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/object_detection/argmax_matcher.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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/ops/training_ops.py
"""Ops used to do spatial transformation.""" # 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/lice...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/ops/spatial_transform_ops.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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/ops/postprocess_ops.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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/ops/roi_ops.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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/ops/preprocess_ops.py
"""Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/ops/__init__.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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/ops/box_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 app...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/ops/nms_ops.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_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/ops/tests/test_box_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_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/ops/tests/test_preprocess_ops.py
"""Default experiment spec files for MaskRCNN."""
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/experiment_specs/__init__.py
"""Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/executer/__init__.py
"""Interface to run mask rcnn model in different distributed strategies.""" # 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 # # ...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/executer/distributed_executer.py
""" converter_functions.py. Conversion Functions for common layers. Add new functions here with a decorator. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np from uff.converters.tensorflow.conver...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/export/converter_functions.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_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/export/DynamicGraph.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_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/export/exporter.py
"""Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/export/__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_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/export/tests/test_exporter.py
# Copyright 2018 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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/hyperparameters/mask_rcnn_params.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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/hyperparameters/params_dict.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2018 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/lice...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/hyperparameters/params_io.py
"""MaskRCNN hyperparameter object.""" # Copyright 2018 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/LICE...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/hyperparameters/hyperparameters.py
"""Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/hyperparameters/__init__.py
# Copyright 2018 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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/dataloader/dataloader_utils.py
"""Dataloader for MaskRCNN."""
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/dataloader/__init__.py
# Copyright 2018 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...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/dataloader/dataloader.py
import hashlib import io import os import numpy as np from PIL import Image import tensorflow as tf from nvidia_tao_tf1.cv.mask_rcnn.dataloader import dataloader from nvidia_tao_tf1.cv.mask_rcnn.dataloader import dataloader_utils from nvidia_tao_tf1.cv.mask_rcnn.utils import dataset_utils def test_dummy_example(tmpd...
tao_tensorflow1_backend-main
nvidia_tao_tf1/cv/mask_rcnn/dataloader/tests/test_dataloader.py