Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add Ops of StyleGAN3 #2290

Merged
merged 53 commits into from
Mar 13, 2023
Merged
Show file tree
Hide file tree
Changes from 49 commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
2444457
add bias_act
plyfager Sep 27, 2022
4519e33
support bias_act
plyfager Oct 24, 2022
b62654f
support filtered_lrelu
plyfager Oct 26, 2022
a1c5879
resolve conflict
plyfager Oct 26, 2022
4307a51
support filtered_lrelu and upfirdn2d
plyfager Oct 27, 2022
6445745
support conv2d_gradfix and fix filtered_lrelu
plyfager Oct 31, 2022
ad1eea0
resolve conflict
plyfager Oct 31, 2022
596cb5c
fix lint
plyfager Oct 31, 2022
44f1aee
fix lint
plyfager Nov 2, 2022
d0706a1
fix c++ lint
plyfager Nov 2, 2022
c90de37
fix part comments
plyfager Nov 7, 2022
fb38992
fix lint
plyfager Nov 7, 2022
99dbb73
rm redundant header
plyfager Nov 7, 2022
f87b882
fix upgrade pip
plyfager Nov 7, 2022
6ef5039
fix as comment
plyfager Nov 9, 2022
2d354c8
fix c++ lint
plyfager Nov 9, 2022
5dcb280
fix ci
plyfager Nov 9, 2022
eff99f8
fix-ut
plyfager Nov 9, 2022
82ca81a
fix as comments
plyfager Nov 11, 2022
6810e81
add grad check
plyfager Nov 11, 2022
39cedd5
remove redundant template
plyfager Nov 11, 2022
56302d0
Update mmcv/ops/bias_act.py
plyfager Nov 15, 2022
ed90c57
add typehint
plyfager Nov 15, 2022
ea06b45
Merge branch 'plyfager/s3-ops' of github.com:plyfager/mmcv into plyfa…
plyfager Nov 15, 2022
cb8356f
fix as comment:
plyfager Nov 15, 2022
37b8044
complete type hints
plyfager Nov 15, 2022
2035b50
fix lint
plyfager Nov 15, 2022
309d4de
add test for conv_gradfix
plyfager Nov 16, 2022
2af887b
add test for conv_gradfix
plyfager Nov 16, 2022
2249194
fix lint
plyfager Nov 16, 2022
69ef946
modify licenses and ops.md
plyfager Nov 16, 2022
8f2e75b
add zh op md
plyfager Nov 16, 2022
3cdd3e9
add torch version policy for conv2d_gradfix
plyfager Nov 16, 2022
58c4560
fix lint
plyfager Nov 16, 2022
06ee7a0
fix as comments
plyfager Nov 17, 2022
81f927b
rename impl
plyfager Nov 18, 2022
bbc5276
resolve conflict
plyfager Dec 5, 2022
1256efc
rm redudant function and add ut
plyfager Dec 9, 2022
b000977
Merge branch '2.x' of github.com:open-mmlab/mmcv into plyfager/s3-ops
plyfager Dec 9, 2022
e39a276
Merge branch '2.x' of github.com:open-mmlab/mmcv into plyfager/s3-ops
plyfager Jan 3, 2023
9c1a2eb
fix as comment
plyfager Jan 3, 2023
b4d74a0
fix lint
plyfager Jan 4, 2023
00ed8f1
fix lint
plyfager Jan 4, 2023
afab2e3
Merge branch '2.x' of github.com:open-mmlab/mmcv into plyfager/s3-ops
plyfager Jan 9, 2023
c1b1d0d
fix as comments
plyfager Feb 13, 2023
81ee582
resolve conflict
plyfager Feb 13, 2023
c8bc875
fix lint
plyfager Feb 13, 2023
c5ace42
Merge branch '2.x' of github.com:open-mmlab/mmcv into plyfager/s3-ops
plyfager Feb 28, 2023
ec3fa61
fix ut
plyfager Feb 28, 2023
b9e1564
fix as comment
plyfager Mar 3, 2023
e1ef9aa
Merge branch '2.x' of github.com:open-mmlab/mmcv into plyfager/s3-ops
plyfager Mar 13, 2023
1b60d8f
fix as comment
plyfager Mar 13, 2023
fb9d709
fix as comment
plyfager Mar 13, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions LICENSES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

In this file, we list the operations with other licenses instead of Apache 2.0. Users should be careful about adopting these operations in any commercial matters.

| Operation | Files | License |
| :--------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------: |
| upfirdn2d | [mmcv/ops/csrc/pytorch/cuda/upfirdn2d_kernel.cu](https://github.com/open-mmlab/mmcv/blob/master/mmcv/ops/csrc/pytorch/cuda/upfirdn2d_kernel.cu) | NVIDIA License |
| fused_leaky_relu | [mmcv/ops/csrc/pytorch/cuda/fused_bias_leakyrelu_cuda.cu](https://github.com/open-mmlab/mmcv/blob/master/mmcv/ops/csrc/pytorch/cuda/fused_bias_leakyrelu_cuda.cu) | NVIDIA License |
| Operation | Files | License |
| :--------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------: |
| upfirdn2d | [mmcv/ops/csrc/pytorch/cuda/upfirdn2d_kernel.cu](https://github.com/open-mmlab/mmcv/tree/2.x/mmcv/ops/csrc/pytorch/cuda/upfirdn2d_kernel.cu) | NVIDIA License |
| fused_leaky_relu | [mmcv/ops/csrc/pytorch/cuda/fused_bias_leakyrelu_cuda.cu](https://github.com/open-mmlab/mmcv/tree/2.x/mmcv/ops/csrc/pytorch/cuda/fused_bias_leakyrelu_cuda.cu) | NVIDIA License |
| bias_act | [mmcv/ops/csrc/pytorch/cuda/bias_act_cuda.cu](https://github.com/open-mmlab/mmcv/tree/2.x/mmcv/ops/csrc/pytorch/cuda/bias_act_cuda.cu) | NVIDIA License |
| filtered_lrelu | [mmcv/ops/csrc/pytorch/cuda/filtered_lrelu.cu](https://github.com/open-mmlab/mmcv/tree/2.x/mmcv/ops/csrc/pytorch/cuda/filtered_lrelu.cu) | NVIDIA License |
| conv2d_gradfix | [mmcv/ops/conv2d_gradfix.py](https://github.com/open-mmlab/mmcv/tree/2.x/mmcv/ops/conv2d_gradfix.py) | NVIDIA License |
3 changes: 3 additions & 0 deletions docs/en/understand_mmcv/ops.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,6 @@ We implement common ops used in detection, segmentation, etc.
| Voxelization | √ | √ | | | |
| PrRoIPool | | √ | | | |
| BezierAlign | √ | √ | | | |
| BiasAct | | √ | | | |
| FilteredLrelu | | √ | | | |
| Conv2dGradfix | | √ | | | |
3 changes: 3 additions & 0 deletions docs/zh_cn/understand_mmcv/ops.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,6 @@ MMCV 提供了检测、分割等任务中常用的算子
| Voxelization | √ | √ | | | |
| PrRoIPool | | √ | | | |
| BezierAlign | √ | √ | | | |
| BiasAct | | √ | | | |
| FilteredLrelu | | √ | | | |
| Conv2dGradfix | | √ | | | |
8 changes: 6 additions & 2 deletions mmcv/ops/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
from .ball_query import ball_query
from .bbox import bbox_overlaps
from .bezier_align import BezierAlign, bezier_align
from .bias_act import bias_act
from .border_align import BorderAlign, border_align
from .box_iou_quadri import box_iou_quadri
from .box_iou_rotated import box_iou_rotated
from .carafe import CARAFE, CARAFENaive, CARAFEPack, carafe, carafe_naive
from .cc_attention import CrissCrossAttention
from .chamfer_distance import chamfer_distance
from .contour_expand import contour_expand
from .conv2d_gradfix import conv2d, conv_transpose2d
from .convex_iou import convex_giou, convex_iou
from .corner_pool import CornerPool
from .correlation import Correlation
Expand All @@ -22,6 +24,7 @@
from .deprecated_wrappers import Linear_deprecated as Linear
from .deprecated_wrappers import MaxPool2d_deprecated as MaxPool2d
from .diff_iou_rotated import diff_iou_rotated_2d, diff_iou_rotated_3d
from .filtered_lrelu import filtered_lrelu
from .focal_loss import (SigmoidFocalLoss, SoftmaxFocalLoss,
sigmoid_focal_loss, softmax_focal_loss)
from .furthest_point_sample import (furthest_point_sample,
Expand Down Expand Up @@ -68,7 +71,7 @@
from .three_interpolate import three_interpolate
from .three_nn import three_nn
from .tin_shift import TINShift, tin_shift
from .upfirdn2d import upfirdn2d
from .upfirdn2d import filter2d, upfirdn2d, upsample2d
from .voxelize import Voxelization, voxelization

__all__ = [
Expand Down Expand Up @@ -103,5 +106,6 @@
'points_in_boxes_cpu', 'points_in_boxes_all', 'points_in_polygons',
'min_area_polygons', 'active_rotated_filter', 'convex_iou', 'convex_giou',
'diff_iou_rotated_2d', 'diff_iou_rotated_3d', 'chamfer_distance',
'PrRoIPool', 'prroi_pool', 'BezierAlign', 'bezier_align'
'PrRoIPool', 'prroi_pool', 'bias_act', 'filtered_lrelu', 'conv2d',
'conv_transpose2d', 'filter2d', 'upsample2d', 'BezierAlign', 'bezier_align'
]
Loading