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_deploy-main
nvidia_tao_deploy/engine/calibrator.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_deploy-main
nvidia_tao_deploy/engine/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_deploy-main
nvidia_tao_deploy/engine/tensorfile.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_deploy-main
nvidia_tao_deploy/engine/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_deploy-main
nvidia_tao_deploy/engine/tensorfile_calibrator.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_deploy-main
nvidia_tao_deploy/dataloader/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_deploy-main
nvidia_tao_deploy/dataloader/kitti.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_deploy-main
nvidia_tao_deploy/dataloader/__init__.py
# Copyright (c) 2022, 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...
NeMo-speech-data-processor-main
__init__.py
# Copyright (c) 2022, 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...
NeMo-speech-data-processor-main
main.py
# Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. 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 requ...
NeMo-speech-data-processor-main
dataset_configs/spanish_pc/fisher/unique_processors/create_initial_manifest_fisher_spanish.py
# Copyright (c) 2022, 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...
NeMo-speech-data-processor-main
dataset_configs/spanish/mls/unique_processors/clean_roman_numerals.py
# Copyright (c) 2022, 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...
NeMo-speech-data-processor-main
tests/test_modify_manifest.py
# Copyright (c) 2022, 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...
NeMo-speech-data-processor-main
tests/test_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...
NeMo-speech-data-processor-main
tests/test_cfg_runtime_tests.py
# Copyright (c) 2022, 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...
NeMo-speech-data-processor-main
tests/test_data_to_data.py
# Copyright (c) 2022, 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...
NeMo-speech-data-processor-main
tests/test_data_to_dropbool.py
# Copyright (c) 2022, 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...
NeMo-speech-data-processor-main
tests/test_cfg_end_to_end_tests.py
# Copyright (c) 2022, 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...
NeMo-speech-data-processor-main
tests/__init__.py
# Copyright (c) 2022, 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...
NeMo-speech-data-processor-main
tests/prepare_test_data/prepare_mls_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...
NeMo-speech-data-processor-main
tests/prepare_test_data/prepare_voxpopuli_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...
NeMo-speech-data-processor-main
tests/prepare_test_data/prepare_mcv_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...
NeMo-speech-data-processor-main
docs/gen_docs.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # 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/l...
NeMo-speech-data-processor-main
docs/src/conf.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...
NeMo-speech-data-processor-main
sdp/logging.py
# Copyright (c) 2022, 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...
NeMo-speech-data-processor-main
sdp/__init__.py
# Copyright (c) 2022, 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...
NeMo-speech-data-processor-main
sdp/run_processors.py
# Copyright (c) 2022, 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...
NeMo-speech-data-processor-main
sdp/utils/get_diff.py
# Copyright (c) 2022, 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...
NeMo-speech-data-processor-main
sdp/utils/metrics_computation.py
# Copyright (c) 2022, 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...
NeMo-speech-data-processor-main
sdp/utils/__init__.py
# Copyright (c) 2022, 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...
NeMo-speech-data-processor-main
sdp/utils/edit_spaces.py
# Copyright (c) 2022, 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...
NeMo-speech-data-processor-main
sdp/utils/common.py
# Copyright (c) 2022, 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...
NeMo-speech-data-processor-main
sdp/processors/__init__.py
# Copyright (c) 2022, 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...
NeMo-speech-data-processor-main
sdp/processors/base_processor.py
NeMo-speech-data-processor-main
sdp/processors/nemo/__init__.py
# Copyright (c) 2022, 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...
NeMo-speech-data-processor-main
sdp/processors/nemo/asr_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...
NeMo-speech-data-processor-main
sdp/processors/nemo/pc_inference.py
# Copyright (c) 2022, 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...
NeMo-speech-data-processor-main
sdp/processors/nemo/transcribe_speech.py
NeMo-speech-data-processor-main
sdp/processors/datasets/__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...
NeMo-speech-data-processor-main
sdp/processors/datasets/coraal/data_splits.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...
NeMo-speech-data-processor-main
sdp/processors/datasets/coraal/__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...
NeMo-speech-data-processor-main
sdp/processors/datasets/coraal/create_initial_manifest.py
NeMo-speech-data-processor-main
sdp/processors/datasets/slr83/__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...
NeMo-speech-data-processor-main
sdp/processors/datasets/slr83/create_initial_manifest.py
# Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. 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 requ...
NeMo-speech-data-processor-main
sdp/processors/datasets/voxpopuli/normalize_from_non_pc_text.py
NeMo-speech-data-processor-main
sdp/processors/datasets/voxpopuli/__init__.py
# Copyright (c) 2022, 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...
NeMo-speech-data-processor-main
sdp/processors/datasets/voxpopuli/create_initial_manifest.py
NeMo-speech-data-processor-main
sdp/processors/datasets/mcv/__init__.py
# Copyright (c) 2021, 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...
NeMo-speech-data-processor-main
sdp/processors/datasets/mcv/create_initial_manifest.py
# Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. 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 requ...
NeMo-speech-data-processor-main
sdp/processors/datasets/mls/restore_pc.py
NeMo-speech-data-processor-main
sdp/processors/datasets/mls/__init__.py
# Copyright (c) 2022, 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...
NeMo-speech-data-processor-main
sdp/processors/datasets/mls/create_initial_manifest.py
# Copyright (c) 2022, 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...
NeMo-speech-data-processor-main
sdp/processors/modify_manifest/__init__.py
import json import os from typing import Dict, List from tqdm import tqdm from sdp.processors.base_processor import ( BaseParallelProcessor, BaseProcessor, DataEntry, ) class CombineSources(BaseParallelProcessor): """Can be used to create a single field from two alternative sources. E.g.:: ...
NeMo-speech-data-processor-main
sdp/processors/modify_manifest/common.py
# Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. 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 requ...
NeMo-speech-data-processor-main
sdp/processors/modify_manifest/make_letters_uppercase_after_period.py
# Copyright (c) 2022, 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...
NeMo-speech-data-processor-main
sdp/processors/modify_manifest/data_to_dropbool.py
# Copyright (c) 2022, 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...
NeMo-speech-data-processor-main
sdp/processors/modify_manifest/data_to_data.py
import torch from azure.core.exceptions import ResourceNotFoundError from azure.ai.ml.entities import AmlCompute from monai.transforms import MapTransform class ConvertToMultiChannelBasedOnBratsClassesd(MapTransform): """ Convert labels to multi channels based on brats 2021 classes: label 1 necrotic tumor ...
NVIDIA_AI_Enterprise_AzureML-main
samples/python/3D-image-segmentation/monai/notebooks/helper.py
import os import logging import json import numpy import torch from monai.networks.nets import SegResNet from monai.data import Dataset from monai.transforms import Activations, AsDiscrete, Compose, LoadImaged, ConcatItemsd, NormalizeIntensityd, Orientationd, Spacingd, Spacing, EnsureTyped, EnsureChannelFirstd import t...
NVIDIA_AI_Enterprise_AzureML-main
samples/python/3D-image-segmentation/monai/notebooks/score.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, ...
NVIDIA_AI_Enterprise_AzureML-main
samples/cli/tao/object_detection/detectnet_v2/scripts/auxiliary_files/tao_client_aml.py
import argparse import os from pathlib import Path import cudf import pandas as pd import xgboost import matplotlib.pyplot as plt from cuml.model_selection import train_test_split from sklearn.metrics import mean_squared_error, mean_absolute_error, r2_score from sklearn.utils._testing import ignore_warnings import optu...
NVIDIA_AI_Enterprise_AzureML-main
src/components/RAPIDS/HPO_with_XGBoost/train_component/src/train.py
import argparse import os from pathlib import Path import cudf import matplotlib.pylab as plt import pandas as pd import numpy as np import json parser = argparse.ArgumentParser("prep") parser.add_argument("--raw_data", type=str, help="Path/URL to the Parquet file") parser.add_argument("--prep_data",type=str, help="Pa...
NVIDIA_AI_Enterprise_AzureML-main
src/components/RAPIDS/HPO_with_XGBoost/prep_data_component/src/prep.py
import os import pandas as pd import cudf parquet_files = ['yellow_tripdata_2023-01.parquet', 'yellow_tripdata_2023-02.parquet', ] dfs = [cudf.read_parquet(file) for file in parquet_files] dfs = cudf.concat(dfs) dfs.to_parquet('merged_data.parquet')
NVIDIA_AI_Enterprise_AzureML-main
src/components/RAPIDS/HPO_with_XGBoost/prep_data_component/src/merge_data.py
import argparse from pathlib import Path from typing_extensions import Concatenate from uuid import uuid4 from datetime import datetime import os import pandas as pd import cudf from sklearn.linear_model import LinearRegression from sklearn.model_selection import train_test_split import pickle parser = argparse.Argume...
NVIDIA_AI_Enterprise_AzureML-main
src/components/RAPIDS/NYC_taxi_with_regression/Prep_component/prep_src/prep.py
import argparse from pathlib import Path from uuid import uuid4 from datetime import datetime import os import pandas as pd import cudf import numpy as np parser = argparse.ArgumentParser("transform") parser.add_argument("--clean_data", type=str, help="Path to prepped data") parser.add_argument("--transformed_data", t...
NVIDIA_AI_Enterprise_AzureML-main
src/components/RAPIDS/NYC_taxi_with_regression/Transform_component/transform_src/transform.py
import argparse from pathlib import Path from uuid import uuid4 from datetime import datetime import os import pandas as pd import cudf #from sklearn.linear_model import LinearRegression from cuml.linear_model import LinearRegression #from sklearn.model_selection import train_test_split from cuml.model_selection import...
NVIDIA_AI_Enterprise_AzureML-main
src/components/RAPIDS/NYC_taxi_with_regression/Train_component/train_src/train.py
import argparse import pandas as pd import cudf import os from pathlib import Path from sklearn.linear_model import LinearRegression #from sklearn.metrics import mean_squared_error, r2_score from cuml.metrics import mean_squared_error, r2_score import mlflow mlflow.sklearn.autolog() parser = argparse.ArgumentParser("...
NVIDIA_AI_Enterprise_AzureML-main
src/components/RAPIDS/NYC_taxi_with_regression/Score_component/score_src/score.py
import argparse import pandas as pd import cudf import os from pathlib import Path #from sklearn.linear_model import LinearRegression from cuml.linear_model import LinearRegression import mlflow mlflow.sklearn.autolog() parser = argparse.ArgumentParser("predict") parser.add_argument("--model_input", type=str, help="...
NVIDIA_AI_Enterprise_AzureML-main
src/components/RAPIDS/NYC_taxi_with_regression/Predict_component/predict_src/predict.py
import argparse import json import logging import os import time import random import matplotlib.pyplot as plt import mlflow import torch # from torch.utils.tensorboard import SummaryWriter # MONAI imports from monai.config import print_config from monai.data import DataLoader, Dataset, CacheDataset, decollate_batch ...
NVIDIA_AI_Enterprise_AzureML-main
src/components/monai/3D_image_segmentation/train_segmentation/src/run.py
import argparse import logging import sys import os import shutil import tarfile def run(args) -> str: # extract with tarfile.open(args.blob_file_location, "r") as tar: tar.extractall(path=args.image_data_folder) def get_arg_parser(parser=None): """Parse the command line arguments for me...
NVIDIA_AI_Enterprise_AzureML-main
src/components/monai/3D_image_segmentation/upload_from_blob/src/run.py
import argparse import os import time #os.system('pip install azure-storage-blob') parser = argparse.ArgumentParser() parser.add_argument("--input_data", type=str) parser.add_argument("--conn_str", type=str) parser.add_argument("--container_name", type=str) parser.add_argument("--model", type=str) parser.add_argument...
NVIDIA_AI_Enterprise_AzureML-main
src/components/DeepStream/faciallandmark/src/run.py
import argparse import os import time parser = argparse.ArgumentParser() parser.add_argument("--input_data", type=str) parser.add_argument("--conn_str", type=str) parser.add_argument("--container_name", type=str) parser.add_argument("--model", type=str) parser.add_argument("--model_name", type=str) parser.add_argument...
NVIDIA_AI_Enterprise_AzureML-main
src/components/DeepStream/mdx-perception/src/run.py
import argparse import os import time parser = argparse.ArgumentParser() parser.add_argument("--input_data", type=str) parser.add_argument("--conn_str", type=str) parser.add_argument("--container_name", type=str) parser.add_argument("--model", type=str) parser.add_argument("--model_name", type=str) parser.add_argument...
NVIDIA_AI_Enterprise_AzureML-main
src/components/DeepStream/ds-tao-segmentation/src/run.py
import argparse import os import time #os.system('pip install azure-storage-blob') parser = argparse.ArgumentParser() parser.add_argument("--input_data", type=str) parser.add_argument("--conn_str", type=str) parser.add_argument("--container_name", type=str) parser.add_argument("--model", type=str) parser.add_argument...
NVIDIA_AI_Enterprise_AzureML-main
src/components/DeepStream/bodypose2d/src/run.py
import argparse import os import time parser = argparse.ArgumentParser() parser.add_argument("--input_data", type=str) parser.add_argument("--conn_str", type=str) parser.add_argument("--container_name", type=str) parser.add_argument("--model", type=str) parser.add_argument("--model_name", type=str) parser.add_argument...
NVIDIA_AI_Enterprise_AzureML-main
src/components/DeepStream/ds-tao-detection/src/run.py
import argparse import os import time parser = argparse.ArgumentParser() parser.add_argument("--input_data", type=str) parser.add_argument("--conn_str", type=str) parser.add_argument("--container_name", type=str) parser.add_argument("--model", type=str) parser.add_argument("--output_data", type=str) args = parser.par...
NVIDIA_AI_Enterprise_AzureML-main
src/components/DeepStream/gesture/src/run.py
NVIDIA_AI_Enterprise_AzureML-main
src/components/DeepStream/deepstream-app/src/run.py
import argparse import os import time parser = argparse.ArgumentParser() parser.add_argument("--input_data", type=str) parser.add_argument("--conn_str", type=str) parser.add_argument("--container_name", type=str) parser.add_argument("--model", type=str) parser.add_argument("--output_data", type=str) args = parser.par...
NVIDIA_AI_Enterprise_AzureML-main
src/components/DeepStream/gaze/src/run.py
import argparse import os import time parser = argparse.ArgumentParser() parser.add_argument("--input_data", type=str) parser.add_argument("--conn_str", type=str) parser.add_argument("--container_name", type=str) parser.add_argument("--model", type=str) parser.add_argument("--output_data", type=str) args = parser.par...
NVIDIA_AI_Enterprise_AzureML-main
src/components/DeepStream/lpr/src/run.py
import argparse import os import time parser = argparse.ArgumentParser() parser.add_argument("--input_data", type=str) parser.add_argument("--conn_str", type=str) parser.add_argument("--container_name", type=str) parser.add_argument("--model", type=str) parser.add_argument("--output_data", type=str) args = parser.par...
NVIDIA_AI_Enterprise_AzureML-main
src/components/DeepStream/emotion/src/run.py
# Copyright (c) 2017-2020, NVIDIA CORPORATION. All rights reserved. """Script to transform Wider face dataset to kitti format for Facenet tutorial.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import os import cv2 import numpy as np ...
NVIDIA_AI_Enterprise_AzureML-main
src/components/tao/tools/convert_multiple_streams_wider_to_kitti/src/convert_wider_to_kitti.py
# Copyright (c) 2017-2020, NVIDIA CORPORATION. All rights reserved. import argparse import re import mlflow def parse_args(args=None): """parse the arguments.""" parser = argparse.ArgumentParser(description='Tool to get parameters and variables from train logfile and upload them as AzureML metrics') pars...
NVIDIA_AI_Enterprise_AzureML-main
src/components/tao/object_detection/detectnet_v2/tao_detectnet_v2_train/src/parse_info.py
# Copyright (c) 2017-2020, NVIDIA CORPORATION. All rights reserved. import argparse import os from PIL import Image import mlflow def parse_args(args=None): """parse the arguments.""" parser = argparse.ArgumentParser(description='Tool to upload images to be previewed on AzureML') parser.add_argument( ...
NVIDIA_AI_Enterprise_AzureML-main
src/components/tao/object_detection/detectnet_v2/tao_detectnet_v2_inference/src/preview_images.py
import unittest import os # run all tests if __name__ == '__main__': loader = unittest.TestLoader() suite = loader.discover(os.path.dirname(os.path.abspath(__file__))) runner = unittest.TextTestRunner() runner.run(suite)
MDL-SDK-master
examples/mdl_python/tests/__init__.py
import pymdlsdk import os class SDK(): neuray: pymdlsdk.INeuray = None transaction: pymdlsdk.ITransaction = None def _get_examples_search_path(self): """Try to get the example search path or returns 'mdl' sub folder of the current directory if it failed.""" # get the environment variable...
MDL-SDK-master
examples/mdl_python/tests/setup.py
import unittest import pymdlsdk from setup import SDK class Main(unittest.TestCase): sdk: SDK = None @classmethod def setUpClass(self): print(f"Running tests in {__file__}") self.sdk = SDK() self.sdk.load(addExampleSearchPath=False, loadImagePlugins=False) @classmethod def...
MDL-SDK-master
examples/mdl_python/tests/test_mi_idata.py
#***************************************************************************** # Copyright (c) 2022-2023, NVIDIA CORPORATION. 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 o...
MDL-SDK-master
examples/mdl_python/create_expression_graph/example_create_expression_graph.py
#***************************************************************************** # Copyright (c) 2021-2023, NVIDIA CORPORATION. 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 o...
MDL-SDK-master
examples/mdl_python/modules/example_modules.py
#***************************************************************************** # Copyright (c) 2021-2023, NVIDIA CORPORATION. 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 o...
MDL-SDK-master
examples/mdl_python/start_shutdown/example_start_shutdown.py
#***************************************************************************** # Copyright (c) 2022-2023, NVIDIA CORPORATION. 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 o...
MDL-SDK-master
examples/mdl_python/pymdl_inspection/example_pymdl_inspection.py
#!/usr/bin/env python3 #***************************************************************************** # Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # *...
MDL-SDK-master
doc/build/doxygen_postprocess_css.py
#!/usr/bin/env python3 #***************************************************************************** # Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # *...
MDL-SDK-master
doc/build/doxygen_configure_doxyfile.py
#!/bin/env python #***************************************************************************** # Copyright (c) 2021-2023, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # *...
MDL-SDK-master
src/prod/bin/mdltlc/gen_mdltl_enum_names.py
#***************************************************************************** # Copyright (c) 2019-2023, NVIDIA CORPORATION. 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 o...
MDL-SDK-master
src/prod/lib/mdl_arnold/aiMDLTemplate.py
#***************************************************************************** # Copyright (c) 2021-2023, NVIDIA CORPORATION. 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 o...
MDL-SDK-master
src/prod/bindings/mdl_python/pymdl.py
#!/usr/bin/env python #***************************************************************************** # Copyright (c) 2021-2023, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: ...
MDL-SDK-master
src/prod/bindings/mdl_python/instantiate_templates_inline.py
#===- gen-msvc-exports.py - Generate C API export file -------*- python -*--===# # # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # #===---------------------------------...
MDL-SDK-master
src/mdl/jit/llvm/dist/tools/llvm-shlib/gen-msvc-exports.py
#!/usr/bin/env python3 #===- symcov-report-server.py - Coverage Reports HTTP Serve --*- python -*--===# # # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # #===----------...
MDL-SDK-master
src/mdl/jit/llvm/dist/tools/sancov/coverage-report-server.py
#!/usr/bin/env python from __future__ import print_function desc = '''Generate statistics about optimization records from the YAML files generated with -fsave-optimization-record and -fdiagnostics-show-hotness. The tools requires PyYAML and Pygments Python packages.''' import optrecord import argparse import operat...
MDL-SDK-master
src/mdl/jit/llvm/dist/tools/opt-viewer/opt-stats.py
#!/usr/bin/env python from __future__ import print_function desc = '''Generate the difference of two YAML files into a new YAML file (works on pair of directories too). A new attribute 'Added' is set to True or False depending whether the entry is added or removed from the first input to the next. The tools require...
MDL-SDK-master
src/mdl/jit/llvm/dist/tools/opt-viewer/opt-diff.py