From cb6589b7540b843797fbf516d169d68517f6a591 Mon Sep 17 00:00:00 2001 From: majorli6 Date: Mon, 19 Dec 2022 09:31:49 +0000 Subject: [PATCH 1/2] fixed b794eea from https://gitee.com/majorli6/deepsparkhub/pulls/51 fix basicVSR++ # comment issue link #I65HYN Signed-off-by: majorli6 --- .../mmcv/ops/csrc/pytorch/cuda/modulated_deform_conv_cuda.cu | 2 +- .../pytorch/mmcv/ops/csrc/pytorch/cuda/sync_bn_cuda.cu | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cv/super_resolution/basicVSR++/pytorch/mmcv/ops/csrc/pytorch/cuda/modulated_deform_conv_cuda.cu b/cv/super_resolution/basicVSR++/pytorch/mmcv/ops/csrc/pytorch/cuda/modulated_deform_conv_cuda.cu index d0703f190..63b5140e5 100755 --- a/cv/super_resolution/basicVSR++/pytorch/mmcv/ops/csrc/pytorch/cuda/modulated_deform_conv_cuda.cu +++ b/cv/super_resolution/basicVSR++/pytorch/mmcv/ops/csrc/pytorch/cuda/modulated_deform_conv_cuda.cu @@ -1,4 +1,4 @@ -# Copyright (c) 2022, Shanghai Iluvatar CoreX Semiconductor Co., Ltd. +// Copyright (c) 2022, Shanghai Iluvatar CoreX Semiconductor Co., Ltd. // Copyright (c) OpenMMLab. All rights reserved #include "modulated_deform_conv_cuda_kernel.cuh" #include "pytorch_cuda_helper.hpp" diff --git a/cv/super_resolution/basicVSR++/pytorch/mmcv/ops/csrc/pytorch/cuda/sync_bn_cuda.cu b/cv/super_resolution/basicVSR++/pytorch/mmcv/ops/csrc/pytorch/cuda/sync_bn_cuda.cu index 1f4b4565d..19b9f149c 100755 --- a/cv/super_resolution/basicVSR++/pytorch/mmcv/ops/csrc/pytorch/cuda/sync_bn_cuda.cu +++ b/cv/super_resolution/basicVSR++/pytorch/mmcv/ops/csrc/pytorch/cuda/sync_bn_cuda.cu @@ -1,4 +1,4 @@ -# Copyright (c) 2022, Shanghai Iluvatar CoreX Semiconductor Co., Ltd. +// Copyright (c) 2022, Shanghai Iluvatar CoreX Semiconductor Co., Ltd. // Copyright (c) OpenMMLab. All rights reserved #include "pytorch_cuda_helper.hpp" #include "sync_bn_cuda_kernel.cuh" -- Gitee From fa6138e2992ac076f57be90e63d003c1a7901b6d Mon Sep 17 00:00:00 2001 From: majorli6 Date: Fri, 16 Dec 2022 04:57:36 +0000 Subject: [PATCH 2/2] fixed 4a8cfb2 from https://gitee.com/majorli6/deepsparkhub/pulls/51 license header in cuh should use "//" link #I65HYN Signed-off-by: majorli6 --- .gitignore | 3 +++ .../ops/csrc/common/cuda/modulated_deform_conv_cuda_kernel.cuh | 3 +-- .../pytorch/mmcv/ops/csrc/common/cuda/sync_bn_cuda_kernel.cuh | 2 +- .../ops/csrc/common/cuda/modulated_deform_conv_cuda_kernel.cuh | 2 +- .../pytorch/mmcv/ops/csrc/common/cuda/sync_bn_cuda_kernel.cuh | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index bb246bf61..5c452d07c 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,6 @@ __pycache__/ build/ dist/ *.egg-info/ + +# Pytorch +*.pth diff --git a/cv/super_resolution/basicVSR++/pytorch/mmcv/ops/csrc/common/cuda/modulated_deform_conv_cuda_kernel.cuh b/cv/super_resolution/basicVSR++/pytorch/mmcv/ops/csrc/common/cuda/modulated_deform_conv_cuda_kernel.cuh index bf402a5f3..bd03df260 100755 --- a/cv/super_resolution/basicVSR++/pytorch/mmcv/ops/csrc/common/cuda/modulated_deform_conv_cuda_kernel.cuh +++ b/cv/super_resolution/basicVSR++/pytorch/mmcv/ops/csrc/common/cuda/modulated_deform_conv_cuda_kernel.cuh @@ -1,5 +1,4 @@ - -# Copyright (c) 2022, Shanghai Iluvatar CoreX Semiconductor Co., Ltd. +// Copyright (c) 2022, Shanghai Iluvatar CoreX Semiconductor Co., Ltd. /*! ******************* BEGIN Caffe Copyright Notice and Disclaimer ***************** diff --git a/cv/super_resolution/basicVSR++/pytorch/mmcv/ops/csrc/common/cuda/sync_bn_cuda_kernel.cuh b/cv/super_resolution/basicVSR++/pytorch/mmcv/ops/csrc/common/cuda/sync_bn_cuda_kernel.cuh index 506dde9a9..da6ab4f00 100755 --- a/cv/super_resolution/basicVSR++/pytorch/mmcv/ops/csrc/common/cuda/sync_bn_cuda_kernel.cuh +++ b/cv/super_resolution/basicVSR++/pytorch/mmcv/ops/csrc/common/cuda/sync_bn_cuda_kernel.cuh @@ -1,4 +1,4 @@ -# Copyright (c) 2022, Shanghai Iluvatar CoreX Semiconductor Co., Ltd. +// Copyright (c) 2022, Shanghai Iluvatar CoreX Semiconductor Co., Ltd. // Copyright (c) OpenMMLab. All rights reserved #ifndef SYNCBN_CUDA_KERNEL_CUH #define SYNCBN_CUDA_KERNEL_CUH diff --git a/cv/super_resolution/basicVSR/pytorch/mmcv/ops/csrc/common/cuda/modulated_deform_conv_cuda_kernel.cuh b/cv/super_resolution/basicVSR/pytorch/mmcv/ops/csrc/common/cuda/modulated_deform_conv_cuda_kernel.cuh index 8b1de4112..bd03df260 100755 --- a/cv/super_resolution/basicVSR/pytorch/mmcv/ops/csrc/common/cuda/modulated_deform_conv_cuda_kernel.cuh +++ b/cv/super_resolution/basicVSR/pytorch/mmcv/ops/csrc/common/cuda/modulated_deform_conv_cuda_kernel.cuh @@ -1,4 +1,4 @@ -# Copyright (c) 2022, Shanghai Iluvatar CoreX Semiconductor Co., Ltd. +// Copyright (c) 2022, Shanghai Iluvatar CoreX Semiconductor Co., Ltd. /*! ******************* BEGIN Caffe Copyright Notice and Disclaimer ***************** diff --git a/cv/super_resolution/basicVSR/pytorch/mmcv/ops/csrc/common/cuda/sync_bn_cuda_kernel.cuh b/cv/super_resolution/basicVSR/pytorch/mmcv/ops/csrc/common/cuda/sync_bn_cuda_kernel.cuh index 506dde9a9..da6ab4f00 100755 --- a/cv/super_resolution/basicVSR/pytorch/mmcv/ops/csrc/common/cuda/sync_bn_cuda_kernel.cuh +++ b/cv/super_resolution/basicVSR/pytorch/mmcv/ops/csrc/common/cuda/sync_bn_cuda_kernel.cuh @@ -1,4 +1,4 @@ -# Copyright (c) 2022, Shanghai Iluvatar CoreX Semiconductor Co., Ltd. +// Copyright (c) 2022, Shanghai Iluvatar CoreX Semiconductor Co., Ltd. // Copyright (c) OpenMMLab. All rights reserved #ifndef SYNCBN_CUDA_KERNEL_CUH #define SYNCBN_CUDA_KERNEL_CUH -- Gitee