├── .gitignore
├── DETR_py
├── data
│ └── 000000039769.jpg
├── inference.py
└── weights_list.txt
├── Data_calib
├── 000000000139.jpg
├── 000000000285.jpg
├── 000000000632.jpg
├── 000000000724.jpg
├── 000000000776.jpg
├── 000000000785.jpg
├── 000000000802.jpg
├── 000000000872.jpg
├── 000000000885.jpg
├── 000000001000.jpg
├── 000000001268.jpg
├── 000000001296.jpg
├── 000000001353.jpg
├── 000000001425.jpg
├── 000000001490.jpg
├── 000000001503.jpg
├── 000000001532.jpg
├── 000000001584.jpg
├── 000000001675.jpg
├── 000000001761.jpg
├── 000000001818.jpg
├── 000000001993.jpg
├── 000000002006.jpg
├── 000000002149.jpg
├── 000000002153.jpg
├── 000000002157.jpg
├── 000000002261.jpg
├── 000000002299.jpg
├── 000000002431.jpg
├── 000000002473.jpg
├── 000000002532.jpg
├── 000000002587.jpg
├── 000000002592.jpg
├── 000000002685.jpg
├── 000000002923.jpg
├── 000000003156.jpg
├── 000000003255.jpg
├── 000000003501.jpg
├── 000000003553.jpg
├── 000000003661.jpg
├── 000000003845.jpg
├── 000000003934.jpg
├── 000000004134.jpg
├── 000000004395.jpg
├── 000000004495.jpg
├── 000000004765.jpg
├── 000000004795.jpg
├── 000000005001.jpg
├── 000000005037.jpg
├── 000000005060.jpg
├── 000000005193.jpg
├── 000000005477.jpg
├── 000000005503.jpg
├── 000000005529.jpg
├── 000000005586.jpg
├── 000000005600.jpg
├── 000000005992.jpg
├── 000000006012.jpg
├── 000000006040.jpg
├── 000000006213.jpg
├── 000000006460.jpg
├── 000000006471.jpg
├── 000000006614.jpg
├── 000000006723.jpg
├── 000000006763.jpg
├── 000000006771.jpg
├── 000000006818.jpg
├── 000000006894.jpg
├── 000000006954.jpg
├── 000000007088.jpg
├── 000000007108.jpg
├── 000000007278.jpg
├── 000000007281.jpg
├── 000000007386.jpg
├── 000000007511.jpg
├── 000000007574.jpg
├── 000000007784.jpg
├── 000000007795.jpg
├── 000000007816.jpg
├── 000000007818.jpg
├── 000000007888.jpg
├── 000000007977.jpg
├── 000000007991.jpg
├── 000000008021.jpg
├── 000000008211.jpg
├── 000000008277.jpg
├── 000000008532.jpg
├── 000000008629.jpg
├── 000000008690.jpg
├── 000000008762.jpg
├── 000000008844.jpg
├── 000000008899.jpg
├── 000000009378.jpg
├── 000000009400.jpg
├── 000000009448.jpg
├── 000000009483.jpg
├── 000000009590.jpg
├── 000000009769.jpg
├── 000000009772.jpg
└── 000000009891.jpg
├── LICENSE
├── README.md
├── Real-ESRGAN_py
├── data
│ └── 0030.jpg
├── experiments
│ └── pretrained_models
│ │ └── README.md
├── gen_wts.py
├── inference_realesrgan.py
├── inputs
│ ├── 00003.png
│ ├── 0014.jpg
│ ├── 0030.jpg
│ ├── ADE_val_00000114.jpg
│ ├── OST_009.png
│ └── tree_alpha_16bit.png
├── model_structure.txt
├── model_structure2.txt
├── realesrgan
│ ├── __init__.py
│ ├── __pycache__
│ │ ├── __init__.cpython-37.pyc
│ │ ├── utils.cpython-37.pyc
│ │ └── version.cpython-37.pyc
│ ├── archs
│ │ ├── __init__.py
│ │ ├── __pycache__
│ │ │ ├── __init__.cpython-37.pyc
│ │ │ ├── discriminator_arch.cpython-37.pyc
│ │ │ └── srvgg_arch.cpython-37.pyc
│ │ ├── discriminator_arch.py
│ │ └── srvgg_arch.py
│ ├── data
│ │ ├── __init__.py
│ │ ├── __pycache__
│ │ │ ├── __init__.cpython-37.pyc
│ │ │ ├── realesrgan_dataset.cpython-37.pyc
│ │ │ └── realesrgan_paired_dataset.cpython-37.pyc
│ │ ├── realesrgan_dataset.py
│ │ └── realesrgan_paired_dataset.py
│ ├── models
│ │ ├── __init__.py
│ │ ├── __pycache__
│ │ │ ├── __init__.cpython-37.pyc
│ │ │ ├── realesrgan_model.cpython-37.pyc
│ │ │ └── realesrnet_model.cpython-37.pyc
│ │ ├── realesrgan_model.py
│ │ └── realesrnet_model.py
│ ├── train.py
│ ├── utils.py
│ ├── version.py
│ └── weights
│ │ └── README.md
├── weight_list.txt
└── weight_list2.txt
├── Resnet18_py
├── data
│ └── panda0.jpg
├── inference.py
├── model_structure.txt
├── resnet18.py
└── weight_list.txt
├── TPS_Motion_py
├── models structure
│ ├── avd_network.txt
│ ├── dense_motion_network.txt
│ ├── inpainting.txt
│ └── kp_detector.txt
└── models weights
│ ├── avd_network.txt
│ ├── dense_motion_network.txt
│ ├── inpainting.txt
│ └── kp_detector.txt
├── TensorRT.sln
├── TensorRT
├── TensorRT.vcxproj
├── TensorRT.vcxproj.filters
├── TensorRT.vcxproj.user
├── calibrator.cpp
├── calibrator.h
├── common.cpp
├── common.hpp
├── detr_trt.cpp
├── logging.hpp
├── plugin_ex1.cpp
├── postprocess.cu
├── postprocess.hpp
├── preprocess.cu
├── preprocess.hpp
├── real-esrgan.cpp
├── resnet18.cpp
├── unet.cpp
├── utils.cpp
├── utils.hpp
├── vgg11.cpp
├── yololayer.cu
├── yololayer.hpp
├── yolov5s.cpp
├── yolov6.cpp
└── yolov7.cpp
├── TestData3
└── OST_009.png
├── Unet_py
├── car0.jpg
├── data
│ └── 00ad56bf7ee6_03.jpg
├── inference.py
├── input_data
├── model_structure.txt
├── unet
│ ├── __init__.py
│ ├── __pycache__
│ │ ├── __init__.cpython-37.pyc
│ │ ├── __init__.cpython-38.pyc
│ │ ├── unet_model.cpython-37.pyc
│ │ ├── unet_model.cpython-38.pyc
│ │ ├── unet_parts.cpython-37.pyc
│ │ └── unet_parts.cpython-38.pyc
│ ├── unet_model.py
│ └── unet_parts.py
└── weight_list.txt
├── VGG11_py
├── data
│ └── panda0.jpg
├── inference.py
├── requirements.txt
└── vgg.py
├── Validation_py
├── __pycache__
│ ├── compare.cpython-37.pyc
│ ├── compare.cpython-38.pyc
│ └── compare.cpython-39.pyc
├── compare.py
├── valide.py
├── valide_preproc.py
└── valideint.py
├── yolov5s_py
├── data
│ └── zidane.jpg
├── gen_wts.py
├── models
│ ├── __init__.py
│ ├── __pycache__
│ │ ├── __init__.cpython-37.pyc
│ │ ├── common.cpython-37.pyc
│ │ ├── experimental.cpython-37.pyc
│ │ └── yolo.cpython-37.pyc
│ ├── common.py
│ ├── experimental.py
│ ├── hub
│ │ ├── anchors.yaml
│ │ ├── yolov3-spp.yaml
│ │ ├── yolov3-tiny.yaml
│ │ ├── yolov3.yaml
│ │ ├── yolov5-bifpn.yaml
│ │ ├── yolov5-fpn.yaml
│ │ ├── yolov5-p2.yaml
│ │ ├── yolov5-p6.yaml
│ │ ├── yolov5-p7.yaml
│ │ ├── yolov5-panet.yaml
│ │ ├── yolov5l6.yaml
│ │ ├── yolov5m6.yaml
│ │ ├── yolov5n6.yaml
│ │ ├── yolov5s-ghost.yaml
│ │ ├── yolov5s-transformer.yaml
│ │ ├── yolov5s6.yaml
│ │ └── yolov5x6.yaml
│ ├── tf.py
│ ├── yolo.py
│ ├── yolov5l.yaml
│ ├── yolov5m.yaml
│ ├── yolov5n.yaml
│ ├── yolov5s.yaml
│ └── yolov5x.yaml
├── utils
│ ├── __init__.py
│ ├── __pycache__
│ │ ├── __init__.cpython-37.pyc
│ │ ├── augmentations.cpython-37.pyc
│ │ ├── autoanchor.cpython-37.pyc
│ │ ├── datasets.cpython-37.pyc
│ │ ├── downloads.cpython-37.pyc
│ │ ├── general.cpython-37.pyc
│ │ ├── metrics.cpython-37.pyc
│ │ ├── plots.cpython-37.pyc
│ │ └── torch_utils.cpython-37.pyc
│ ├── activations.py
│ ├── augmentations.py
│ ├── autoanchor.py
│ ├── autobatch.py
│ ├── aws
│ │ ├── __init__.py
│ │ ├── mime.sh
│ │ ├── resume.py
│ │ └── userdata.sh
│ ├── callbacks.py
│ ├── datasets.py
│ ├── downloads.py
│ ├── flask_rest_api
│ │ ├── README.md
│ │ ├── example_request.py
│ │ └── restapi.py
│ ├── general.py
│ ├── google_app_engine
│ │ ├── Dockerfile
│ │ ├── additional_requirements.txt
│ │ └── app.yaml
│ ├── loggers
│ │ ├── __init__.py
│ │ └── wandb
│ │ │ ├── README.md
│ │ │ ├── __init__.py
│ │ │ ├── log_dataset.py
│ │ │ ├── sweep.py
│ │ │ ├── sweep.yaml
│ │ │ └── wandb_utils.py
│ ├── loss.py
│ ├── metrics.py
│ ├── plots.py
│ └── torch_utils.py
└── yolov5s.pt
├── yolov6s_py
├── data
│ └── image1.jpg
├── gen_wts.py
├── model_structure.txt
├── weight_structure.txt
└── yolov6
│ ├── core
│ ├── __pycache__
│ │ └── inferer.cpython-37.pyc
│ ├── engine.py
│ ├── evaler.py
│ └── inferer.py
│ ├── data
│ ├── __pycache__
│ │ ├── data_augment.cpython-37.pyc
│ │ └── datasets.cpython-37.pyc
│ ├── data_augment.py
│ ├── data_load.py
│ └── datasets.py
│ ├── layers
│ ├── __pycache__
│ │ ├── common.cpython-37.pyc
│ │ └── common.cpython-39.pyc
│ └── common.py
│ ├── models
│ ├── __pycache__
│ │ ├── efficientrep.cpython-39.pyc
│ │ ├── effidehead.cpython-39.pyc
│ │ ├── reppan.cpython-39.pyc
│ │ └── yolo.cpython-39.pyc
│ ├── efficientrep.py
│ ├── effidehead.py
│ ├── loss.py
│ ├── reppan.py
│ └── yolo.py
│ ├── solver
│ └── build.py
│ └── utils
│ ├── Arial.ttf
│ ├── __pycache__
│ ├── checkpoint.cpython-37.pyc
│ ├── checkpoint.cpython-39.pyc
│ ├── events.cpython-37.pyc
│ ├── events.cpython-39.pyc
│ ├── nms.cpython-37.pyc
│ ├── torch_utils.cpython-37.pyc
│ └── torch_utils.cpython-39.pyc
│ ├── checkpoint.py
│ ├── config.py
│ ├── ema.py
│ ├── envs.py
│ ├── events.py
│ ├── figure_iou.py
│ ├── nms.py
│ └── torch_utils.py
└── yolov7_py
├── model_structure.txt
└── weight_lists.txt
/.gitignore:
--------------------------------------------------------------------------------
1 | x64
2 | .vs
3 | *.idea
4 | *.pth
5 | *.pt
6 | *.wts
7 | *.weights
8 | *.engine
9 | *.table
10 | C_Tensor
11 | py
12 | trt
13 | c
14 | p
15 | result.png
16 | TPS_Motion_py/assets
--------------------------------------------------------------------------------
/DETR_py/data/000000039769.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/DETR_py/data/000000039769.jpg
--------------------------------------------------------------------------------
/Data_calib/000000000139.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000000139.jpg
--------------------------------------------------------------------------------
/Data_calib/000000000285.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000000285.jpg
--------------------------------------------------------------------------------
/Data_calib/000000000632.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000000632.jpg
--------------------------------------------------------------------------------
/Data_calib/000000000724.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000000724.jpg
--------------------------------------------------------------------------------
/Data_calib/000000000776.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000000776.jpg
--------------------------------------------------------------------------------
/Data_calib/000000000785.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000000785.jpg
--------------------------------------------------------------------------------
/Data_calib/000000000802.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000000802.jpg
--------------------------------------------------------------------------------
/Data_calib/000000000872.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000000872.jpg
--------------------------------------------------------------------------------
/Data_calib/000000000885.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000000885.jpg
--------------------------------------------------------------------------------
/Data_calib/000000001000.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000001000.jpg
--------------------------------------------------------------------------------
/Data_calib/000000001268.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000001268.jpg
--------------------------------------------------------------------------------
/Data_calib/000000001296.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000001296.jpg
--------------------------------------------------------------------------------
/Data_calib/000000001353.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000001353.jpg
--------------------------------------------------------------------------------
/Data_calib/000000001425.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000001425.jpg
--------------------------------------------------------------------------------
/Data_calib/000000001490.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000001490.jpg
--------------------------------------------------------------------------------
/Data_calib/000000001503.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000001503.jpg
--------------------------------------------------------------------------------
/Data_calib/000000001532.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000001532.jpg
--------------------------------------------------------------------------------
/Data_calib/000000001584.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000001584.jpg
--------------------------------------------------------------------------------
/Data_calib/000000001675.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000001675.jpg
--------------------------------------------------------------------------------
/Data_calib/000000001761.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000001761.jpg
--------------------------------------------------------------------------------
/Data_calib/000000001818.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000001818.jpg
--------------------------------------------------------------------------------
/Data_calib/000000001993.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000001993.jpg
--------------------------------------------------------------------------------
/Data_calib/000000002006.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000002006.jpg
--------------------------------------------------------------------------------
/Data_calib/000000002149.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000002149.jpg
--------------------------------------------------------------------------------
/Data_calib/000000002153.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000002153.jpg
--------------------------------------------------------------------------------
/Data_calib/000000002157.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000002157.jpg
--------------------------------------------------------------------------------
/Data_calib/000000002261.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000002261.jpg
--------------------------------------------------------------------------------
/Data_calib/000000002299.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000002299.jpg
--------------------------------------------------------------------------------
/Data_calib/000000002431.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000002431.jpg
--------------------------------------------------------------------------------
/Data_calib/000000002473.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000002473.jpg
--------------------------------------------------------------------------------
/Data_calib/000000002532.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000002532.jpg
--------------------------------------------------------------------------------
/Data_calib/000000002587.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000002587.jpg
--------------------------------------------------------------------------------
/Data_calib/000000002592.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000002592.jpg
--------------------------------------------------------------------------------
/Data_calib/000000002685.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000002685.jpg
--------------------------------------------------------------------------------
/Data_calib/000000002923.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000002923.jpg
--------------------------------------------------------------------------------
/Data_calib/000000003156.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000003156.jpg
--------------------------------------------------------------------------------
/Data_calib/000000003255.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000003255.jpg
--------------------------------------------------------------------------------
/Data_calib/000000003501.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000003501.jpg
--------------------------------------------------------------------------------
/Data_calib/000000003553.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000003553.jpg
--------------------------------------------------------------------------------
/Data_calib/000000003661.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000003661.jpg
--------------------------------------------------------------------------------
/Data_calib/000000003845.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000003845.jpg
--------------------------------------------------------------------------------
/Data_calib/000000003934.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000003934.jpg
--------------------------------------------------------------------------------
/Data_calib/000000004134.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000004134.jpg
--------------------------------------------------------------------------------
/Data_calib/000000004395.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000004395.jpg
--------------------------------------------------------------------------------
/Data_calib/000000004495.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000004495.jpg
--------------------------------------------------------------------------------
/Data_calib/000000004765.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000004765.jpg
--------------------------------------------------------------------------------
/Data_calib/000000004795.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000004795.jpg
--------------------------------------------------------------------------------
/Data_calib/000000005001.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000005001.jpg
--------------------------------------------------------------------------------
/Data_calib/000000005037.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000005037.jpg
--------------------------------------------------------------------------------
/Data_calib/000000005060.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000005060.jpg
--------------------------------------------------------------------------------
/Data_calib/000000005193.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000005193.jpg
--------------------------------------------------------------------------------
/Data_calib/000000005477.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000005477.jpg
--------------------------------------------------------------------------------
/Data_calib/000000005503.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000005503.jpg
--------------------------------------------------------------------------------
/Data_calib/000000005529.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000005529.jpg
--------------------------------------------------------------------------------
/Data_calib/000000005586.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000005586.jpg
--------------------------------------------------------------------------------
/Data_calib/000000005600.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000005600.jpg
--------------------------------------------------------------------------------
/Data_calib/000000005992.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000005992.jpg
--------------------------------------------------------------------------------
/Data_calib/000000006012.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000006012.jpg
--------------------------------------------------------------------------------
/Data_calib/000000006040.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000006040.jpg
--------------------------------------------------------------------------------
/Data_calib/000000006213.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000006213.jpg
--------------------------------------------------------------------------------
/Data_calib/000000006460.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000006460.jpg
--------------------------------------------------------------------------------
/Data_calib/000000006471.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000006471.jpg
--------------------------------------------------------------------------------
/Data_calib/000000006614.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000006614.jpg
--------------------------------------------------------------------------------
/Data_calib/000000006723.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000006723.jpg
--------------------------------------------------------------------------------
/Data_calib/000000006763.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000006763.jpg
--------------------------------------------------------------------------------
/Data_calib/000000006771.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000006771.jpg
--------------------------------------------------------------------------------
/Data_calib/000000006818.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000006818.jpg
--------------------------------------------------------------------------------
/Data_calib/000000006894.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000006894.jpg
--------------------------------------------------------------------------------
/Data_calib/000000006954.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000006954.jpg
--------------------------------------------------------------------------------
/Data_calib/000000007088.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000007088.jpg
--------------------------------------------------------------------------------
/Data_calib/000000007108.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000007108.jpg
--------------------------------------------------------------------------------
/Data_calib/000000007278.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000007278.jpg
--------------------------------------------------------------------------------
/Data_calib/000000007281.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000007281.jpg
--------------------------------------------------------------------------------
/Data_calib/000000007386.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000007386.jpg
--------------------------------------------------------------------------------
/Data_calib/000000007511.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000007511.jpg
--------------------------------------------------------------------------------
/Data_calib/000000007574.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000007574.jpg
--------------------------------------------------------------------------------
/Data_calib/000000007784.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000007784.jpg
--------------------------------------------------------------------------------
/Data_calib/000000007795.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000007795.jpg
--------------------------------------------------------------------------------
/Data_calib/000000007816.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000007816.jpg
--------------------------------------------------------------------------------
/Data_calib/000000007818.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000007818.jpg
--------------------------------------------------------------------------------
/Data_calib/000000007888.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000007888.jpg
--------------------------------------------------------------------------------
/Data_calib/000000007977.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000007977.jpg
--------------------------------------------------------------------------------
/Data_calib/000000007991.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000007991.jpg
--------------------------------------------------------------------------------
/Data_calib/000000008021.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000008021.jpg
--------------------------------------------------------------------------------
/Data_calib/000000008211.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000008211.jpg
--------------------------------------------------------------------------------
/Data_calib/000000008277.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000008277.jpg
--------------------------------------------------------------------------------
/Data_calib/000000008532.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000008532.jpg
--------------------------------------------------------------------------------
/Data_calib/000000008629.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000008629.jpg
--------------------------------------------------------------------------------
/Data_calib/000000008690.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000008690.jpg
--------------------------------------------------------------------------------
/Data_calib/000000008762.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000008762.jpg
--------------------------------------------------------------------------------
/Data_calib/000000008844.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000008844.jpg
--------------------------------------------------------------------------------
/Data_calib/000000008899.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000008899.jpg
--------------------------------------------------------------------------------
/Data_calib/000000009378.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000009378.jpg
--------------------------------------------------------------------------------
/Data_calib/000000009400.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000009400.jpg
--------------------------------------------------------------------------------
/Data_calib/000000009448.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000009448.jpg
--------------------------------------------------------------------------------
/Data_calib/000000009483.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000009483.jpg
--------------------------------------------------------------------------------
/Data_calib/000000009590.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000009590.jpg
--------------------------------------------------------------------------------
/Data_calib/000000009769.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000009769.jpg
--------------------------------------------------------------------------------
/Data_calib/000000009772.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000009772.jpg
--------------------------------------------------------------------------------
/Data_calib/000000009891.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Data_calib/000000009891.jpg
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2021 yhpark
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/Real-ESRGAN_py/data/0030.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Real-ESRGAN_py/data/0030.jpg
--------------------------------------------------------------------------------
/Real-ESRGAN_py/experiments/pretrained_models/README.md:
--------------------------------------------------------------------------------
1 | # Put downloaded pre-trained models here
2 |
--------------------------------------------------------------------------------
/Real-ESRGAN_py/gen_wts.py:
--------------------------------------------------------------------------------
1 | import argparse
2 | import os
3 | import struct
4 | from basicsr.archs.rrdbnet_arch import RRDBNet
5 | from realesrgan import RealESRGANer
6 | from realesrgan.archs.srvgg_arch import SRVGGNetCompact
7 |
8 | def main():
9 | """Inference demo for Real-ESRGAN.
10 | """
11 | parser = argparse.ArgumentParser()
12 | #parser.add_argument('-i', '--input', type=str, default='../TestData3', help='Input image or folder')
13 | parser.add_argument('-i', '--input', type=str, default='inputs', help='Input image or folder')
14 | parser.add_argument(
15 | '-n',
16 | '--model_name',
17 | type=str,
18 | default='RealESRGAN_x4plus',
19 | help=('Model names: RealESRGAN_x4plus | RealESRNet_x4plus | RealESRGAN_x4plus_anime_6B | RealESRGAN_x2plus | '
20 | 'realesr-animevideov3'))
21 | parser.add_argument('-o', '--output', type=str, default='results', help='Output folder')
22 | parser.add_argument('-s', '--outscale', type=float, default=4, help='The final upsampling scale of the image')
23 | parser.add_argument('--suffix', type=str, default='out', help='Suffix of the restored image')
24 | parser.add_argument('-t', '--tile', type=int, default=0, help='Tile size, 0 for no tile during testing')
25 | parser.add_argument('--tile_pad', type=int, default=10, help='Tile padding')
26 | parser.add_argument('--pre_pad', type=int, default=0, help='Pre padding size at each border')
27 | parser.add_argument('--face_enhance', action='store_true', help='Use GFPGAN to enhance face')
28 | parser.add_argument(
29 | '--fp32', action='store_true', help='Use fp32 precision during inference. Default: fp16 (half precision).')
30 | parser.add_argument(
31 | '--alpha_upsampler',
32 | type=str,
33 | default='realesrgan',
34 | help='The upsampler for the alpha channels. Options: realesrgan | bicubic')
35 | parser.add_argument(
36 | '--ext',
37 | type=str,
38 | default='auto',
39 | help='Image extension. Options: auto | jpg | png, auto means using the same extension as inputs')
40 | args = parser.parse_args()
41 |
42 | # determine models according to model names
43 | args.model_name = args.model_name.split('.')[0]
44 | if args.model_name in ['RealESRGAN_x4plus', 'RealESRNet_x4plus']: # x4 RRDBNet model
45 | model = RRDBNet(num_in_ch=3, num_out_ch=3, num_feat=64, num_block=23, num_grow_ch=32, scale=4)
46 | netscale = 4
47 | elif args.model_name in ['RealESRGAN_x4plus_anime_6B']: # x4 RRDBNet model with 6 blocks
48 | model = RRDBNet(num_in_ch=3, num_out_ch=3, num_feat=64, num_block=6, num_grow_ch=32, scale=4)
49 | netscale = 4
50 | elif args.model_name in ['RealESRGAN_x2plus']: # x2 RRDBNet model
51 | model = RRDBNet(num_in_ch=3, num_out_ch=3, num_feat=64, num_block=23, num_grow_ch=32, scale=2)
52 | netscale = 2
53 | elif args.model_name in ['realesr-animevideov3']: # x4 VGG-style model (XS size)
54 | model = SRVGGNetCompact(num_in_ch=3, num_out_ch=3, num_feat=64, num_conv=16, upscale=4, act_type='prelu')
55 | netscale = 4
56 |
57 | # determine model paths
58 | model_path = os.path.join('experiments/pretrained_models', args.model_name + '.pth')
59 | if not os.path.isfile(model_path):
60 | model_path = os.path.join('realesrgan/weights', args.model_name + '.pth')
61 | if not os.path.isfile(model_path):
62 | raise ValueError(f'Model {args.model_name} does not exist.')
63 |
64 | # restorer
65 | upsampler = RealESRGANer(
66 | scale=netscale,
67 | model_path=model_path,
68 | model=model,
69 | tile=args.tile,
70 | tile_pad=args.tile_pad,
71 | pre_pad=args.pre_pad,
72 | half=args.fp32)
73 |
74 | if os.path.isfile('real-esrgan.wts'):
75 | print('Already, real-esrgan.wts file exists.')
76 | else:
77 | print('making real-esrgan.wts file ...')
78 | f = open("real-esrgan.wts", 'w')
79 | f.write("{}\n".format(len(upsampler.model.state_dict().keys())))
80 | for k, v in upsampler.model.state_dict().items():
81 | print('key: ', k)
82 | print('value: ', v.shape)
83 | vr = v.reshape(-1).cpu().numpy()
84 | f.write("{} {}".format(k, len(vr)))
85 | for vv in vr:
86 | f.write(" ")
87 | f.write(struct.pack(">f", float(vv)).hex())
88 | f.write("\n")
89 | print('Completed real-esrgan.wts file!')
90 |
91 | if __name__ == '__main__':
92 | main()
93 |
--------------------------------------------------------------------------------
/Real-ESRGAN_py/inputs/00003.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Real-ESRGAN_py/inputs/00003.png
--------------------------------------------------------------------------------
/Real-ESRGAN_py/inputs/0014.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Real-ESRGAN_py/inputs/0014.jpg
--------------------------------------------------------------------------------
/Real-ESRGAN_py/inputs/0030.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Real-ESRGAN_py/inputs/0030.jpg
--------------------------------------------------------------------------------
/Real-ESRGAN_py/inputs/ADE_val_00000114.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Real-ESRGAN_py/inputs/ADE_val_00000114.jpg
--------------------------------------------------------------------------------
/Real-ESRGAN_py/inputs/OST_009.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Real-ESRGAN_py/inputs/OST_009.png
--------------------------------------------------------------------------------
/Real-ESRGAN_py/inputs/tree_alpha_16bit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Real-ESRGAN_py/inputs/tree_alpha_16bit.png
--------------------------------------------------------------------------------
/Real-ESRGAN_py/realesrgan/__init__.py:
--------------------------------------------------------------------------------
1 | # flake8: noqa
2 | from .archs import *
3 | from .data import *
4 | from .models import *
5 | from .utils import *
6 | from .version import *
7 |
--------------------------------------------------------------------------------
/Real-ESRGAN_py/realesrgan/__pycache__/__init__.cpython-37.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Real-ESRGAN_py/realesrgan/__pycache__/__init__.cpython-37.pyc
--------------------------------------------------------------------------------
/Real-ESRGAN_py/realesrgan/__pycache__/utils.cpython-37.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Real-ESRGAN_py/realesrgan/__pycache__/utils.cpython-37.pyc
--------------------------------------------------------------------------------
/Real-ESRGAN_py/realesrgan/__pycache__/version.cpython-37.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Real-ESRGAN_py/realesrgan/__pycache__/version.cpython-37.pyc
--------------------------------------------------------------------------------
/Real-ESRGAN_py/realesrgan/archs/__init__.py:
--------------------------------------------------------------------------------
1 | import importlib
2 | from basicsr.utils import scandir
3 | from os import path as osp
4 |
5 | # automatically scan and import arch modules for registry
6 | # scan all the files that end with '_arch.py' under the archs folder
7 | arch_folder = osp.dirname(osp.abspath(__file__))
8 | arch_filenames = [osp.splitext(osp.basename(v))[0] for v in scandir(arch_folder) if v.endswith('_arch.py')]
9 | # import all the arch modules
10 | _arch_modules = [importlib.import_module(f'realesrgan.archs.{file_name}') for file_name in arch_filenames]
11 |
--------------------------------------------------------------------------------
/Real-ESRGAN_py/realesrgan/archs/__pycache__/__init__.cpython-37.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Real-ESRGAN_py/realesrgan/archs/__pycache__/__init__.cpython-37.pyc
--------------------------------------------------------------------------------
/Real-ESRGAN_py/realesrgan/archs/__pycache__/discriminator_arch.cpython-37.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Real-ESRGAN_py/realesrgan/archs/__pycache__/discriminator_arch.cpython-37.pyc
--------------------------------------------------------------------------------
/Real-ESRGAN_py/realesrgan/archs/__pycache__/srvgg_arch.cpython-37.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Real-ESRGAN_py/realesrgan/archs/__pycache__/srvgg_arch.cpython-37.pyc
--------------------------------------------------------------------------------
/Real-ESRGAN_py/realesrgan/archs/discriminator_arch.py:
--------------------------------------------------------------------------------
1 | from basicsr.utils.registry import ARCH_REGISTRY
2 | from torch import nn as nn
3 | from torch.nn import functional as F
4 | from torch.nn.utils import spectral_norm
5 |
6 |
7 | @ARCH_REGISTRY.register()
8 | class UNetDiscriminatorSN(nn.Module):
9 | """Defines a U-Net discriminator with spectral normalization (SN)
10 |
11 | It is used in Real-ESRGAN: Training Real-World Blind Super-Resolution with Pure Synthetic Data.
12 |
13 | Arg:
14 | num_in_ch (int): Channel number of inputs. Default: 3.
15 | num_feat (int): Channel number of base intermediate features. Default: 64.
16 | skip_connection (bool): Whether to use skip connections between U-Net. Default: True.
17 | """
18 |
19 | def __init__(self, num_in_ch, num_feat=64, skip_connection=True):
20 | super(UNetDiscriminatorSN, self).__init__()
21 | self.skip_connection = skip_connection
22 | norm = spectral_norm
23 | # the first convolution
24 | self.conv0 = nn.Conv2d(num_in_ch, num_feat, kernel_size=3, stride=1, padding=1)
25 | # downsample
26 | self.conv1 = norm(nn.Conv2d(num_feat, num_feat * 2, 4, 2, 1, bias=False))
27 | self.conv2 = norm(nn.Conv2d(num_feat * 2, num_feat * 4, 4, 2, 1, bias=False))
28 | self.conv3 = norm(nn.Conv2d(num_feat * 4, num_feat * 8, 4, 2, 1, bias=False))
29 | # upsample
30 | self.conv4 = norm(nn.Conv2d(num_feat * 8, num_feat * 4, 3, 1, 1, bias=False))
31 | self.conv5 = norm(nn.Conv2d(num_feat * 4, num_feat * 2, 3, 1, 1, bias=False))
32 | self.conv6 = norm(nn.Conv2d(num_feat * 2, num_feat, 3, 1, 1, bias=False))
33 | # extra convolutions
34 | self.conv7 = norm(nn.Conv2d(num_feat, num_feat, 3, 1, 1, bias=False))
35 | self.conv8 = norm(nn.Conv2d(num_feat, num_feat, 3, 1, 1, bias=False))
36 | self.conv9 = nn.Conv2d(num_feat, 1, 3, 1, 1)
37 |
38 | def forward(self, x):
39 | # downsample
40 | x0 = F.leaky_relu(self.conv0(x), negative_slope=0.2, inplace=True)
41 | x1 = F.leaky_relu(self.conv1(x0), negative_slope=0.2, inplace=True)
42 | x2 = F.leaky_relu(self.conv2(x1), negative_slope=0.2, inplace=True)
43 | x3 = F.leaky_relu(self.conv3(x2), negative_slope=0.2, inplace=True)
44 |
45 | # upsample
46 | x3 = F.interpolate(x3, scale_factor=2, mode='bilinear', align_corners=False)
47 | x4 = F.leaky_relu(self.conv4(x3), negative_slope=0.2, inplace=True)
48 |
49 | if self.skip_connection:
50 | x4 = x4 + x2
51 | x4 = F.interpolate(x4, scale_factor=2, mode='bilinear', align_corners=False)
52 | x5 = F.leaky_relu(self.conv5(x4), negative_slope=0.2, inplace=True)
53 |
54 | if self.skip_connection:
55 | x5 = x5 + x1
56 | x5 = F.interpolate(x5, scale_factor=2, mode='bilinear', align_corners=False)
57 | x6 = F.leaky_relu(self.conv6(x5), negative_slope=0.2, inplace=True)
58 |
59 | if self.skip_connection:
60 | x6 = x6 + x0
61 |
62 | # extra convolutions
63 | out = F.leaky_relu(self.conv7(x6), negative_slope=0.2, inplace=True)
64 | out = F.leaky_relu(self.conv8(out), negative_slope=0.2, inplace=True)
65 | out = self.conv9(out)
66 |
67 | return out
68 |
--------------------------------------------------------------------------------
/Real-ESRGAN_py/realesrgan/archs/srvgg_arch.py:
--------------------------------------------------------------------------------
1 | from basicsr.utils.registry import ARCH_REGISTRY
2 | from torch import nn as nn
3 | from torch.nn import functional as F
4 |
5 |
6 | @ARCH_REGISTRY.register()
7 | class SRVGGNetCompact(nn.Module):
8 | """A compact VGG-style network structure for super-resolution.
9 |
10 | It is a compact network structure, which performs upsampling in the last layer and no convolution is
11 | conducted on the HR feature space.
12 |
13 | Args:
14 | num_in_ch (int): Channel number of inputs. Default: 3.
15 | num_out_ch (int): Channel number of outputs. Default: 3.
16 | num_feat (int): Channel number of intermediate features. Default: 64.
17 | num_conv (int): Number of convolution layers in the body network. Default: 16.
18 | upscale (int): Upsampling factor. Default: 4.
19 | act_type (str): Activation type, options: 'relu', 'prelu', 'leakyrelu'. Default: prelu.
20 | """
21 |
22 | def __init__(self, num_in_ch=3, num_out_ch=3, num_feat=64, num_conv=16, upscale=4, act_type='prelu'):
23 | super(SRVGGNetCompact, self).__init__()
24 | self.num_in_ch = num_in_ch
25 | self.num_out_ch = num_out_ch
26 | self.num_feat = num_feat
27 | self.num_conv = num_conv
28 | self.upscale = upscale
29 | self.act_type = act_type
30 |
31 | self.body = nn.ModuleList()
32 | # the first conv
33 | self.body.append(nn.Conv2d(num_in_ch, num_feat, 3, 1, 1))
34 | # the first activation
35 | if act_type == 'relu':
36 | activation = nn.ReLU(inplace=True)
37 | elif act_type == 'prelu':
38 | activation = nn.PReLU(num_parameters=num_feat)
39 | elif act_type == 'leakyrelu':
40 | activation = nn.LeakyReLU(negative_slope=0.1, inplace=True)
41 | self.body.append(activation)
42 |
43 | # the body structure
44 | for _ in range(num_conv):
45 | self.body.append(nn.Conv2d(num_feat, num_feat, 3, 1, 1))
46 | # activation
47 | if act_type == 'relu':
48 | activation = nn.ReLU(inplace=True)
49 | elif act_type == 'prelu':
50 | activation = nn.PReLU(num_parameters=num_feat)
51 | elif act_type == 'leakyrelu':
52 | activation = nn.LeakyReLU(negative_slope=0.1, inplace=True)
53 | self.body.append(activation)
54 |
55 | # the last conv
56 | self.body.append(nn.Conv2d(num_feat, num_out_ch * upscale * upscale, 3, 1, 1))
57 | # upsample
58 | self.upsampler = nn.PixelShuffle(upscale)
59 |
60 | def forward(self, x):
61 | out = x
62 | for i in range(0, len(self.body)):
63 | out = self.body[i](out)
64 |
65 | out = self.upsampler(out)
66 | # add the nearest upsampled image, so that the network learns the residual
67 | base = F.interpolate(x, scale_factor=self.upscale, mode='nearest')
68 | out += base
69 | return out
70 |
--------------------------------------------------------------------------------
/Real-ESRGAN_py/realesrgan/data/__init__.py:
--------------------------------------------------------------------------------
1 | import importlib
2 | from basicsr.utils import scandir
3 | from os import path as osp
4 |
5 | # automatically scan and import dataset modules for registry
6 | # scan all the files that end with '_dataset.py' under the data folder
7 | data_folder = osp.dirname(osp.abspath(__file__))
8 | dataset_filenames = [osp.splitext(osp.basename(v))[0] for v in scandir(data_folder) if v.endswith('_dataset.py')]
9 | # import all the dataset modules
10 | _dataset_modules = [importlib.import_module(f'realesrgan.data.{file_name}') for file_name in dataset_filenames]
11 |
--------------------------------------------------------------------------------
/Real-ESRGAN_py/realesrgan/data/__pycache__/__init__.cpython-37.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Real-ESRGAN_py/realesrgan/data/__pycache__/__init__.cpython-37.pyc
--------------------------------------------------------------------------------
/Real-ESRGAN_py/realesrgan/data/__pycache__/realesrgan_dataset.cpython-37.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Real-ESRGAN_py/realesrgan/data/__pycache__/realesrgan_dataset.cpython-37.pyc
--------------------------------------------------------------------------------
/Real-ESRGAN_py/realesrgan/data/__pycache__/realesrgan_paired_dataset.cpython-37.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Real-ESRGAN_py/realesrgan/data/__pycache__/realesrgan_paired_dataset.cpython-37.pyc
--------------------------------------------------------------------------------
/Real-ESRGAN_py/realesrgan/models/__init__.py:
--------------------------------------------------------------------------------
1 | import importlib
2 | from basicsr.utils import scandir
3 | from os import path as osp
4 |
5 | # automatically scan and import model modules for registry
6 | # scan all the files that end with '_model.py' under the model folder
7 | model_folder = osp.dirname(osp.abspath(__file__))
8 | model_filenames = [osp.splitext(osp.basename(v))[0] for v in scandir(model_folder) if v.endswith('_model.py')]
9 | # import all the model modules
10 | _model_modules = [importlib.import_module(f'realesrgan.models.{file_name}') for file_name in model_filenames]
11 |
--------------------------------------------------------------------------------
/Real-ESRGAN_py/realesrgan/models/__pycache__/__init__.cpython-37.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Real-ESRGAN_py/realesrgan/models/__pycache__/__init__.cpython-37.pyc
--------------------------------------------------------------------------------
/Real-ESRGAN_py/realesrgan/models/__pycache__/realesrgan_model.cpython-37.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Real-ESRGAN_py/realesrgan/models/__pycache__/realesrgan_model.cpython-37.pyc
--------------------------------------------------------------------------------
/Real-ESRGAN_py/realesrgan/models/__pycache__/realesrnet_model.cpython-37.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Real-ESRGAN_py/realesrgan/models/__pycache__/realesrnet_model.cpython-37.pyc
--------------------------------------------------------------------------------
/Real-ESRGAN_py/realesrgan/train.py:
--------------------------------------------------------------------------------
1 | # flake8: noqa
2 | import os.path as osp
3 | from basicsr.train import train_pipeline
4 |
5 | import realesrgan.archs
6 | import realesrgan.data
7 | import realesrgan.models
8 |
9 | if __name__ == '__main__':
10 | root_path = osp.abspath(osp.join(__file__, osp.pardir, osp.pardir))
11 | train_pipeline(root_path)
12 |
--------------------------------------------------------------------------------
/Real-ESRGAN_py/realesrgan/version.py:
--------------------------------------------------------------------------------
1 | # GENERATED VERSION FILE
2 | # TIME: Sun May 8 00:58:37 2022
3 | __version__ = '0.2.5.0'
4 | __gitsha__ = '23d180f'
5 | version_info = (0, 2, 5, 0)
6 |
--------------------------------------------------------------------------------
/Real-ESRGAN_py/realesrgan/weights/README.md:
--------------------------------------------------------------------------------
1 | # Weights
2 |
3 | Put the downloaded weights to this folder.
4 |
--------------------------------------------------------------------------------
/Resnet18_py/data/panda0.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/Resnet18_py/data/panda0.jpg
--------------------------------------------------------------------------------
/Resnet18_py/model_structure.txt:
--------------------------------------------------------------------------------
1 | ResNet(
2 | (conv1): Conv2d(3, 64, kernel_size=(7, 7), stride=(2, 2), padding=(3, 3), bias=False)
3 | (bn1): BatchNorm2d(64, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
4 | (relu): ReLU(inplace=True)
5 | (maxpool): MaxPool2d(kernel_size=3, stride=2, padding=1, dilation=1, ceil_mode=False)
6 | (layer1): Sequential(
7 | (0): BasicBlock(
8 | (conv1): Conv2d(64, 64, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
9 | (bn1): BatchNorm2d(64, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
10 | (relu): ReLU(inplace=True)
11 | (conv2): Conv2d(64, 64, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
12 | (bn2): BatchNorm2d(64, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
13 | )
14 | (1): BasicBlock(
15 | (conv1): Conv2d(64, 64, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
16 | (bn1): BatchNorm2d(64, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
17 | (relu): ReLU(inplace=True)
18 | (conv2): Conv2d(64, 64, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
19 | (bn2): BatchNorm2d(64, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
20 | )
21 | )
22 | (layer2): Sequential(
23 | (0): BasicBlock(
24 | (conv1): Conv2d(64, 128, kernel_size=(3, 3), stride=(2, 2), padding=(1, 1), bias=False)
25 | (bn1): BatchNorm2d(128, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
26 | (relu): ReLU(inplace=True)
27 | (conv2): Conv2d(128, 128, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
28 | (bn2): BatchNorm2d(128, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
29 | (downsample): Sequential(
30 | (0): Conv2d(64, 128, kernel_size=(1, 1), stride=(2, 2), bias=False)
31 | (1): BatchNorm2d(128, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
32 | )
33 | )
34 | (1): BasicBlock(
35 | (conv1): Conv2d(128, 128, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
36 | (bn1): BatchNorm2d(128, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
37 | (relu): ReLU(inplace=True)
38 | (conv2): Conv2d(128, 128, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
39 | (bn2): BatchNorm2d(128, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
40 | )
41 | )
42 | (layer3): Sequential(
43 | (0): BasicBlock(
44 | (conv1): Conv2d(128, 256, kernel_size=(3, 3), stride=(2, 2), padding=(1, 1), bias=False)
45 | (bn1): BatchNorm2d(256, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
46 | (relu): ReLU(inplace=True)
47 | (conv2): Conv2d(256, 256, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
48 | (bn2): BatchNorm2d(256, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
49 | (downsample): Sequential(
50 | (0): Conv2d(128, 256, kernel_size=(1, 1), stride=(2, 2), bias=False)
51 | (1): BatchNorm2d(256, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
52 | )
53 | )
54 | (1): BasicBlock(
55 | (conv1): Conv2d(256, 256, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
56 | (bn1): BatchNorm2d(256, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
57 | (relu): ReLU(inplace=True)
58 | (conv2): Conv2d(256, 256, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
59 | (bn2): BatchNorm2d(256, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
60 | )
61 | )
62 | (layer4): Sequential(
63 | (0): BasicBlock(
64 | (conv1): Conv2d(256, 512, kernel_size=(3, 3), stride=(2, 2), padding=(1, 1), bias=False)
65 | (bn1): BatchNorm2d(512, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
66 | (relu): ReLU(inplace=True)
67 | (conv2): Conv2d(512, 512, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
68 | (bn2): BatchNorm2d(512, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
69 | (downsample): Sequential(
70 | (0): Conv2d(256, 512, kernel_size=(1, 1), stride=(2, 2), bias=False)
71 | (1): BatchNorm2d(512, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
72 | )
73 | )
74 | (1): BasicBlock(
75 | (conv1): Conv2d(512, 512, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
76 | (bn1): BatchNorm2d(512, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
77 | (relu): ReLU(inplace=True)
78 | (conv2): Conv2d(512, 512, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
79 | (bn2): BatchNorm2d(512, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
80 | )
81 | )
82 | (avgpool): AdaptiveAvgPool2d(output_size=(1, 1))
83 | (fc): Linear(in_features=512, out_features=1000, bias=True)
84 | )
--------------------------------------------------------------------------------
/Resnet18_py/resnet18.py:
--------------------------------------------------------------------------------
1 | import torch
2 | from torch import nn
3 | from torch.nn import functional as F
4 | import torchvision
5 | import cv2
6 | import numpy as np
7 |
8 | def tofile(img, weight_path = "input2"):
9 | with open(weight_path, 'wb') as f:
10 | img.tofile(f)
11 | f.close()
12 |
13 | def main():
14 | print('cuda device count: ', torch.cuda.device_count())
15 | net = torchvision.models.resnet18(pretrained=True)
16 | net = net.eval()
17 | net = net.to('cuda:0')
18 | #print(net)
19 |
20 | img = cv2.imread("./data/panda0.jpg")
21 | img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
22 | img = img.transpose(2, 0, 1)
23 | img = img.astype(np.float32)
24 | #tofile(img)
25 |
26 | img = torch.from_numpy(img)
27 | img = img.unsqueeze(0)
28 | img = img.to('cuda:0')
29 |
30 | out = net(img)
31 | max_index = out.max(dim=1)
32 | max_value = out.max()
33 | print('resnet18 max index : {} , value : {}'.format( max_index, max_value))
34 | print('resnet18 out:', out.shape)
35 | torch.save(net, "resnet18.pth")
36 |
37 | if __name__ == '__main__':
38 | main()
39 |
40 |
--------------------------------------------------------------------------------
/TPS_Motion_py/models structure/avd_network.txt:
--------------------------------------------------------------------------------
1 | AVDNetwork(
2 | (id_encoder): Sequential(
3 | (0): Linear(in_features=100, out_features=256, bias=True)
4 | (1): BatchNorm1d(256, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
5 | (2): ReLU(inplace=True)
6 | (3): Linear(in_features=256, out_features=512, bias=True)
7 | (4): BatchNorm1d(512, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
8 | (5): ReLU(inplace=True)
9 | (6): Linear(in_features=512, out_features=1024, bias=True)
10 | (7): BatchNorm1d(1024, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
11 | (8): ReLU(inplace=True)
12 | (9): Linear(in_features=1024, out_features=128, bias=True)
13 | )
14 | (pose_encoder): Sequential(
15 | (0): Linear(in_features=100, out_features=256, bias=True)
16 | (1): BatchNorm1d(256, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
17 | (2): ReLU(inplace=True)
18 | (3): Linear(in_features=256, out_features=512, bias=True)
19 | (4): BatchNorm1d(512, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
20 | (5): ReLU(inplace=True)
21 | (6): Linear(in_features=512, out_features=1024, bias=True)
22 | (7): BatchNorm1d(1024, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
23 | (8): ReLU(inplace=True)
24 | (9): Linear(in_features=1024, out_features=128, bias=True)
25 | )
26 | (decoder): Sequential(
27 | (0): Linear(in_features=256, out_features=1024, bias=True)
28 | (1): BatchNorm1d(1024, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
29 | (2): ReLU()
30 | (3): Linear(in_features=1024, out_features=512, bias=True)
31 | (4): BatchNorm1d(512, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
32 | (5): ReLU()
33 | (6): Linear(in_features=512, out_features=256, bias=True)
34 | (7): BatchNorm1d(256, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
35 | (8): ReLU()
36 | (9): Linear(in_features=256, out_features=100, bias=True)
37 | )
38 | )
--------------------------------------------------------------------------------
/TPS_Motion_py/models structure/dense_motion_network.txt:
--------------------------------------------------------------------------------
1 | DenseMotionNetwork(
2 | (down): AntiAliasInterpolation2d()
3 | (hourglass): Hourglass(
4 | (encoder): Encoder(
5 | (down_blocks): ModuleList(
6 | (0): DownBlock2d(
7 | (conv): Conv2d(84, 128, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
8 | (norm): InstanceNorm2d(128, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
9 | (pool): AvgPool2d(kernel_size=(2, 2), stride=(2, 2), padding=0)
10 | )
11 | (1): DownBlock2d(
12 | (conv): Conv2d(128, 256, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
13 | (norm): InstanceNorm2d(256, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
14 | (pool): AvgPool2d(kernel_size=(2, 2), stride=(2, 2), padding=0)
15 | )
16 | (2): DownBlock2d(
17 | (conv): Conv2d(256, 512, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
18 | (norm): InstanceNorm2d(512, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
19 | (pool): AvgPool2d(kernel_size=(2, 2), stride=(2, 2), padding=0)
20 | )
21 | (3): DownBlock2d(
22 | (conv): Conv2d(512, 1024, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
23 | (norm): InstanceNorm2d(1024, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
24 | (pool): AvgPool2d(kernel_size=(2, 2), stride=(2, 2), padding=0)
25 | )
26 | (4): DownBlock2d(
27 | (conv): Conv2d(1024, 1024, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
28 | (norm): InstanceNorm2d(1024, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
29 | (pool): AvgPool2d(kernel_size=(2, 2), stride=(2, 2), padding=0)
30 | )
31 | )
32 | )
33 | (decoder): Decoder(
34 | (up_blocks): ModuleList(
35 | (0): UpBlock2d(
36 | (conv): Conv2d(1024, 1024, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
37 | (norm): InstanceNorm2d(1024, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
38 | )
39 | (1): UpBlock2d(
40 | (conv): Conv2d(2048, 512, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
41 | (norm): InstanceNorm2d(512, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
42 | )
43 | (2): UpBlock2d(
44 | (conv): Conv2d(1024, 256, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
45 | (norm): InstanceNorm2d(256, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
46 | )
47 | (3): UpBlock2d(
48 | (conv): Conv2d(512, 128, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
49 | (norm): InstanceNorm2d(128, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
50 | )
51 | (4): UpBlock2d(
52 | (conv): Conv2d(256, 64, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
53 | (norm): InstanceNorm2d(64, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
54 | )
55 | )
56 | )
57 | )
58 | (maps): Conv2d(148, 11, kernel_size=(7, 7), stride=(1, 1), padding=(3, 3))
59 | (up): ModuleList(
60 | (0): UpBlock2d(
61 | (conv): Conv2d(148, 74, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
62 | (norm): InstanceNorm2d(74, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
63 | )
64 | (1): UpBlock2d(
65 | (conv): Conv2d(74, 37, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
66 | (norm): InstanceNorm2d(37, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
67 | )
68 | )
69 | (occlusion): ModuleList(
70 | (0): Conv2d(256, 1, kernel_size=(7, 7), stride=(1, 1), padding=(3, 3))
71 | (1): Conv2d(148, 1, kernel_size=(7, 7), stride=(1, 1), padding=(3, 3))
72 | (2): Conv2d(74, 1, kernel_size=(7, 7), stride=(1, 1), padding=(3, 3))
73 | (3): Conv2d(37, 1, kernel_size=(7, 7), stride=(1, 1), padding=(3, 3))
74 | )
75 | )
--------------------------------------------------------------------------------
/TPS_Motion_py/models structure/inpainting.txt:
--------------------------------------------------------------------------------
1 | InpaintingNetwork(
2 | (first): SameBlock2d(
3 | (conv): Conv2d(3, 64, kernel_size=(7, 7), stride=(1, 1), padding=(3, 3))
4 | (norm): InstanceNorm2d(64, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
5 | )
6 | (down_blocks): ModuleList(
7 | (0): DownBlock2d(
8 | (conv): Conv2d(64, 128, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
9 | (norm): InstanceNorm2d(128, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
10 | (pool): AvgPool2d(kernel_size=(2, 2), stride=(2, 2), padding=0)
11 | )
12 | (1): DownBlock2d(
13 | (conv): Conv2d(128, 256, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
14 | (norm): InstanceNorm2d(256, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
15 | (pool): AvgPool2d(kernel_size=(2, 2), stride=(2, 2), padding=0)
16 | )
17 | (2): DownBlock2d(
18 | (conv): Conv2d(256, 512, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
19 | (norm): InstanceNorm2d(512, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
20 | (pool): AvgPool2d(kernel_size=(2, 2), stride=(2, 2), padding=0)
21 | )
22 | )
23 | (up_blocks): ModuleList(
24 | (0): UpBlock2d(
25 | (conv): Conv2d(512, 256, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
26 | (norm): InstanceNorm2d(256, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
27 | )
28 | (1): UpBlock2d(
29 | (conv): Conv2d(512, 128, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
30 | (norm): InstanceNorm2d(128, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
31 | )
32 | (2): UpBlock2d(
33 | (conv): Conv2d(256, 64, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
34 | (norm): InstanceNorm2d(64, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
35 | )
36 | )
37 | (resblock): ModuleList(
38 | (0): ResBlock2d(
39 | (conv1): Conv2d(512, 512, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
40 | (conv2): Conv2d(512, 512, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
41 | (norm1): InstanceNorm2d(512, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
42 | (norm2): InstanceNorm2d(512, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
43 | )
44 | (1): ResBlock2d(
45 | (conv1): Conv2d(512, 512, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
46 | (conv2): Conv2d(512, 512, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
47 | (norm1): InstanceNorm2d(512, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
48 | (norm2): InstanceNorm2d(512, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
49 | )
50 | (2): ResBlock2d(
51 | (conv1): Conv2d(512, 512, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
52 | (conv2): Conv2d(512, 512, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
53 | (norm1): InstanceNorm2d(512, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
54 | (norm2): InstanceNorm2d(512, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
55 | )
56 | (3): ResBlock2d(
57 | (conv1): Conv2d(512, 512, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
58 | (conv2): Conv2d(512, 512, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
59 | (norm1): InstanceNorm2d(512, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
60 | (norm2): InstanceNorm2d(512, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
61 | )
62 | (4): ResBlock2d(
63 | (conv1): Conv2d(256, 256, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
64 | (conv2): Conv2d(256, 256, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
65 | (norm1): InstanceNorm2d(256, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
66 | (norm2): InstanceNorm2d(256, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
67 | )
68 | (5): ResBlock2d(
69 | (conv1): Conv2d(256, 256, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
70 | (conv2): Conv2d(256, 256, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
71 | (norm1): InstanceNorm2d(256, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
72 | (norm2): InstanceNorm2d(256, eps=1e-05, momentum=0.1, affine=True, track_running_stats=False)
73 | )
74 | )
75 | (final): Conv2d(64, 3, kernel_size=(7, 7), stride=(1, 1), padding=(3, 3))
76 | )
--------------------------------------------------------------------------------
/TPS_Motion_py/models structure/kp_detector.txt:
--------------------------------------------------------------------------------
1 | KPDetector(
2 | (fg_encoder): ResNet(
3 | (conv1): Conv2d(3, 64, kernel_size=(7, 7), stride=(2, 2), padding=(3, 3), bias=False)
4 | (bn1): BatchNorm2d(64, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
5 | (relu): ReLU(inplace=True)
6 | (maxpool): MaxPool2d(kernel_size=3, stride=2, padding=1, dilation=1, ceil_mode=False)
7 | (layer1): Sequential(
8 | (0): BasicBlock(
9 | (conv1): Conv2d(64, 64, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
10 | (bn1): BatchNorm2d(64, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
11 | (relu): ReLU(inplace=True)
12 | (conv2): Conv2d(64, 64, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
13 | (bn2): BatchNorm2d(64, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
14 | )
15 | (1): BasicBlock(
16 | (conv1): Conv2d(64, 64, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
17 | (bn1): BatchNorm2d(64, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
18 | (relu): ReLU(inplace=True)
19 | (conv2): Conv2d(64, 64, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
20 | (bn2): BatchNorm2d(64, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
21 | )
22 | )
23 | (layer2): Sequential(
24 | (0): BasicBlock(
25 | (conv1): Conv2d(64, 128, kernel_size=(3, 3), stride=(2, 2), padding=(1, 1), bias=False)
26 | (bn1): BatchNorm2d(128, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
27 | (relu): ReLU(inplace=True)
28 | (conv2): Conv2d(128, 128, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
29 | (bn2): BatchNorm2d(128, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
30 | (downsample): Sequential(
31 | (0): Conv2d(64, 128, kernel_size=(1, 1), stride=(2, 2), bias=False)
32 | (1): BatchNorm2d(128, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
33 | )
34 | )
35 | (1): BasicBlock(
36 | (conv1): Conv2d(128, 128, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
37 | (bn1): BatchNorm2d(128, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
38 | (relu): ReLU(inplace=True)
39 | (conv2): Conv2d(128, 128, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
40 | (bn2): BatchNorm2d(128, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
41 | )
42 | )
43 | (layer3): Sequential(
44 | (0): BasicBlock(
45 | (conv1): Conv2d(128, 256, kernel_size=(3, 3), stride=(2, 2), padding=(1, 1), bias=False)
46 | (bn1): BatchNorm2d(256, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
47 | (relu): ReLU(inplace=True)
48 | (conv2): Conv2d(256, 256, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
49 | (bn2): BatchNorm2d(256, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
50 | (downsample): Sequential(
51 | (0): Conv2d(128, 256, kernel_size=(1, 1), stride=(2, 2), bias=False)
52 | (1): BatchNorm2d(256, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
53 | )
54 | )
55 | (1): BasicBlock(
56 | (conv1): Conv2d(256, 256, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
57 | (bn1): BatchNorm2d(256, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
58 | (relu): ReLU(inplace=True)
59 | (conv2): Conv2d(256, 256, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
60 | (bn2): BatchNorm2d(256, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
61 | )
62 | )
63 | (layer4): Sequential(
64 | (0): BasicBlock(
65 | (conv1): Conv2d(256, 512, kernel_size=(3, 3), stride=(2, 2), padding=(1, 1), bias=False)
66 | (bn1): BatchNorm2d(512, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
67 | (relu): ReLU(inplace=True)
68 | (conv2): Conv2d(512, 512, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
69 | (bn2): BatchNorm2d(512, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
70 | (downsample): Sequential(
71 | (0): Conv2d(256, 512, kernel_size=(1, 1), stride=(2, 2), bias=False)
72 | (1): BatchNorm2d(512, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
73 | )
74 | )
75 | (1): BasicBlock(
76 | (conv1): Conv2d(512, 512, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
77 | (bn1): BatchNorm2d(512, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
78 | (relu): ReLU(inplace=True)
79 | (conv2): Conv2d(512, 512, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
80 | (bn2): BatchNorm2d(512, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
81 | )
82 | )
83 | (avgpool): AvgPool2d(kernel_size=(8, 8), stride=(1, 1), padding=0)
84 | (fc): Linear(in_features=512, out_features=100, bias=True)
85 | )
86 | )
--------------------------------------------------------------------------------
/TensorRT.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.28307.1525
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TensorRT", "TensorRT\TensorRT.vcxproj", "{6AF45D49-E7C2-41F4-995D-5714C4EB1254}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|x64 = Debug|x64
11 | Debug|x86 = Debug|x86
12 | Release|x64 = Release|x64
13 | Release|x86 = Release|x86
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {6AF45D49-E7C2-41F4-995D-5714C4EB1254}.Debug|x64.ActiveCfg = Debug|x64
17 | {6AF45D49-E7C2-41F4-995D-5714C4EB1254}.Debug|x64.Build.0 = Debug|x64
18 | {6AF45D49-E7C2-41F4-995D-5714C4EB1254}.Debug|x86.ActiveCfg = Debug|x64
19 | {6AF45D49-E7C2-41F4-995D-5714C4EB1254}.Release|x64.ActiveCfg = Release|x64
20 | {6AF45D49-E7C2-41F4-995D-5714C4EB1254}.Release|x64.Build.0 = Release|x64
21 | {6AF45D49-E7C2-41F4-995D-5714C4EB1254}.Release|x86.ActiveCfg = Release|x64
22 | EndGlobalSection
23 | GlobalSection(SolutionProperties) = preSolution
24 | HideSolutionNode = FALSE
25 | EndGlobalSection
26 | GlobalSection(ExtensibilityGlobals) = postSolution
27 | SolutionGuid = {C3A8A302-BA2D-4A77-AF74-E22632B7499C}
28 | EndGlobalSection
29 | EndGlobal
30 |
--------------------------------------------------------------------------------
/TensorRT/TensorRT.vcxproj.filters:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | utils
6 |
7 |
8 |
9 |
10 | calibrate
11 |
12 |
13 | calibrate
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 | plugin
26 |
27 |
28 | utils
29 |
30 |
31 | utils
32 |
33 |
34 | calibrate
35 |
36 |
37 | calibrate
38 |
39 |
40 | plugin
41 |
42 |
43 | plugin
44 |
45 |
46 |
47 |
48 | {b08e34f0-7631-4bd6-b666-41b735a20001}
49 |
50 |
51 | {1f6f354d-a2df-47f0-af86-7d80e4dc7112}
52 |
53 |
54 | {ee66ee0e-fda5-4789-9e05-a50d9fe108f7}
55 |
56 |
57 |
58 |
59 | plugin
60 |
61 |
62 | plugin
63 |
64 |
65 | plugin
66 |
67 |
68 |
69 |
70 |
71 |
--------------------------------------------------------------------------------
/TensorRT/TensorRT.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/TensorRT/calibrator.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/TensorRT/calibrator.cpp
--------------------------------------------------------------------------------
/TensorRT/calibrator.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "NvInfer.h"
3 | #include
4 | #include
5 |
6 | //! \class Int8EntropyCalibrator2
7 | //!
8 | //! \brief Implements Entropy calibrator 2.
9 | //! CalibrationAlgoType is kENTROPY_CALIBRATION_2.
10 | //!
11 | class Int8EntropyCalibrator2 : public nvinfer1::IInt8EntropyCalibrator2
12 | {
13 | public:
14 | Int8EntropyCalibrator2(int batchsize, int input_w, int input_h, int process_type, const char* img_dir, const char* calib_table_name, const char* input_blob_name, bool read_cache = true);
15 |
16 | virtual ~Int8EntropyCalibrator2();
17 | int getBatchSize() const noexcept override;
18 | bool getBatch(void* bindings[], const char* names[], int nbBindings) noexcept override;
19 | const void* readCalibrationCache(size_t& length) noexcept override;
20 | void writeCalibrationCache(const void* cache, size_t length) noexcept override;
21 |
22 | private:
23 | int batchsize_;
24 | int input_w_;
25 | int input_h_;
26 | int img_idx_;
27 | int process_type_;
28 | std::string img_dir_;
29 | std::vector img_files_;
30 | size_t input_count_;
31 | size_t input_size_;
32 | std::string calib_table_name_;
33 | const char* input_blob_name_;
34 | bool read_cache_;
35 | void* device_input_;
36 | std::vector calib_cache_;
37 | };
38 |
--------------------------------------------------------------------------------
/TensorRT/common.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/TensorRT/common.cpp
--------------------------------------------------------------------------------
/TensorRT/common.hpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/TensorRT/common.hpp
--------------------------------------------------------------------------------
/TensorRT/logging.hpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/TensorRT/logging.hpp
--------------------------------------------------------------------------------
/TensorRT/plugin_ex1.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/TensorRT/plugin_ex1.cpp
--------------------------------------------------------------------------------
/TensorRT/postprocess.cu:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/TensorRT/postprocess.cu
--------------------------------------------------------------------------------
/TensorRT/postprocess.hpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/TensorRT/postprocess.hpp
--------------------------------------------------------------------------------
/TensorRT/preprocess.cu:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/TensorRT/preprocess.cu
--------------------------------------------------------------------------------
/TensorRT/preprocess.hpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/TensorRT/preprocess.hpp
--------------------------------------------------------------------------------
/TensorRT/resnet18.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yester31/TensorRT_API/b32eb47bacedd7be472cbe608b6cc330000889be/TensorRT/resnet18.cpp
--------------------------------------------------------------------------------
/TensorRT/utils.hpp:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "NvInfer.h"
3 | #include "cuda_runtime_api.h"
4 | #include // access
5 | #include
6 | #include
7 | #include
8 | #include
9 | #include
10 | #include
11 | #include
12 | #include