Skip to content

Commit 3d6c50a

Browse files
re-organize extension
1 parent bcd9a87 commit 3d6c50a

File tree

7 files changed

+5
-6
lines changed

7 files changed

+5
-6
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
* linguist-language=python
2-

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,3 +155,4 @@ dmypy.json
155155

156156
# Pyre type checker
157157
.pyre/
158+

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ authors:
55
title: "SSSegmentation: An Open Source Supervised Semantic Segmentation Toolbox Based on PyTorch"
66
date-released: 2020-10-23
77
url: "https://github.com/SegmentationBLWX/sssegmentation"
8-
license: Apache-2.0
8+
license: Apache-2.0

LICENSE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,4 +199,3 @@
199199
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200200
See the License for the specific language governing permissions and
201201
limitations under the License.
202-

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ def genpackagesitems():
9191
def getextensions():
9292
ext_modules = []
9393
if SSSEG_WITH_OPS:
94-
srcs = ["ssseg/modules/models/segmentors/samv2/connected_components.cu"]
94+
srcs = ["ssseg/modules/models/extensions/samv2/connected_components.cu"]
9595
compile_args = {
9696
'cxx': [], 'nvcc': ['-DCUDA_HAS_FP16=1', '-D__CUDA_NO_HALF_OPERATORS__', '-D__CUDA_NO_HALF_CONVERSIONS__', '-D__CUDA_NO_HALF2_OPERATORS__'],
9797
}
98-
ext_modules.append(CUDAExtension('ssseg._C', srcs, extra_compile_args=compile_args))
98+
ext_modules.append(CUDAExtension('ssseg.extensions.samv2._C', srcs, extra_compile_args=compile_args))
9999
return ext_modules
100100

101101

ssseg/modules/models/segmentors/samv2/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def getsdpasettings():
3838

3939
'''getconnectedcomponents'''
4040
def getconnectedcomponents(mask):
41-
from ssseg import _C
41+
from ssseg.extensions.samv2 import _C
4242
return _C.get_connected_componnets(mask.to(torch.uint8).contiguous())
4343

4444

0 commit comments

Comments
 (0)