• 大小: 1.86MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-11-14
  • 语言: 其他
  • 标签: CV  机器学习  

资源简介

利用平均场估计对条件随机场的高效实现。用于图像分割

资源截图

代码片段和文件信息

# coding: UTF-8
from setuptools import setup

# TODO:
# - Wrap learning.
# - Make LabelCompatibility UnaryEnergy PairwisePotential extensible? (Maybe overkill?)


# If Cython is available build using Cython.
# Otherwise use the pre-built (by someone who has Cython i.e. me) wrapper ‘.cpp‘ files.
try:
    from Cython.Build import cythonize
    ext_modules = cythonize([‘pydensecrf/eigen.pyx‘ ‘pydensecrf/densecrf.pyx‘])
except ImportError:
    from setuptools.extension import Extension
    ext_modules = [
        Extension(“pydensecrf/eigen“ [“pydensecrf/eigen.cpp“ “pydensecrf/eigen_impl.cpp“] language=“c++“ include_dirs=[“pydensecrf/densecrf/include“])
        Extension(“pydensecrf/densecrf“ [“pydensecrf/densecrf.cpp“ “pydensecrf/densecrf/src/densecrf.cpp“ “pydensecrf/densecrf/src/unary.cpp“ “pydensecrf/densecrf/src/pairwise.cpp“ “pydensecrf/densecrf/src/permutohedral.cpp“ “pydensecrf/densecrf/src/optimization.cpp“ “pydensecrf/densecrf/src/objective.cpp“ “pydensecrf/densecrf/src/labelcompatibility.cpp“ “pydensecrf/densecrf/src/util.cpp“ “pydensecrf/densecrf/external/liblbfgs/lib/lbfgs.c“] language=“c++“ include_dirs=[“pydensecrf/densecrf/include“ “pydensecrf/densecrf/external/liblbfgs/include“])
    ]

setup(
    name=“pydensecrf“
    version=“1.0rc2“
    description=“A python interface to Philipp Krähenbühl‘s fully-connected (dense) CRF code.“
    long_description=“See the README.md at http://github.com/lucasb-eyer/pydensecrf“
    author=“Lucas Beyer“
    author_email=“lucasb.eyer.be@gmail.com“
    url=“http://github.com/lucasb-eyer/pydensecrf“
    ext_modules=ext_modules
    packages=[“pydensecrf“]
    setup_requires=[‘cython>=0.22‘]
    classifiers=[
        “Intended Audience :: Developers“
        “License :: OSI Approved :: MIT License“
        “Development Status :: 5 - Production/Stable“
        “Programming Language :: C++“
        “Programming Language :: Python“
        “Operating System :: POSIX :: Linux“
        “Topic :: Software Development :: Libraries“
        “Topic :: Scientific/Engineering :: Image Recognition“
        “Topic :: Scientific/Engineering :: Artificial Intelligence“
    ]


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-04-01 22:48  pydensecrf-master\
     文件         699  2018-04-01 22:48  pydensecrf-master\.gitignore
     文件        1079  2018-04-01 22:48  pydensecrf-master\LICENSE
     文件         162  2018-04-01 22:48  pydensecrf-master\MANIFEST.in
     文件       11564  2018-04-01 22:48  pydensecrf-master\README.md
     目录           0  2018-04-01 22:48  pydensecrf-master\examples\
     文件      132848  2018-04-01 22:48  pydensecrf-master\examples\Non RGB Example.ipynb
     文件         936  2018-04-01 22:48  pydensecrf-master\examples\anno1-b.png
     文件        1744  2018-04-01 22:48  pydensecrf-master\examples\anno1.png
     文件        1018  2018-04-01 22:48  pydensecrf-master\examples\anno2.png
     文件        1193  2018-04-01 22:48  pydensecrf-master\examples\anno3.png
     文件      139636  2018-04-01 22:48  pydensecrf-master\examples\im1.png
     文件      174882  2018-04-01 22:48  pydensecrf-master\examples\im2.png
     文件      191521  2018-04-01 22:48  pydensecrf-master\examples\im3.png
     文件        5138  2018-04-01 22:48  pydensecrf-master\examples\inference.py
     文件        3235  2018-04-01 22:48  pydensecrf-master\examples\out1-b.png
     文件        2873  2018-04-01 22:48  pydensecrf-master\examples\out1.png
     文件        3695  2018-04-01 22:48  pydensecrf-master\examples\out2.png
     文件        2331  2018-04-01 22:48  pydensecrf-master\examples\out3.png
     目录           0  2018-04-01 22:48  pydensecrf-master\pydensecrf\
     文件           0  2018-04-01 22:48  pydensecrf-master\pydensecrf\__init__.py
     文件        3280  2018-04-01 22:48  pydensecrf-master\pydensecrf\densecrf.pxd
     文件        6061  2018-04-01 22:48  pydensecrf-master\pydensecrf\densecrf.pyx
     目录           0  2018-04-01 22:48  pydensecrf-master\pydensecrf\densecrf\
     文件        2999  2018-04-01 22:48  pydensecrf-master\pydensecrf\densecrf\README.txt
     目录           0  2018-04-01 22:48  pydensecrf-master\pydensecrf\densecrf\external\
     文件          82  2018-04-01 22:48  pydensecrf-master\pydensecrf\densecrf\external\CMakeLists.txt
     目录           0  2018-04-01 22:48  pydensecrf-master\pydensecrf\densecrf\external\liblbfgs\
     文件          40  2018-04-01 22:48  pydensecrf-master\pydensecrf\densecrf\external\liblbfgs\AUTHORS
     文件        1113  2018-04-01 22:48  pydensecrf-master\pydensecrf\densecrf\external\liblbfgs\COPYING
     文件        4720  2018-04-01 22:48  pydensecrf-master\pydensecrf\densecrf\external\liblbfgs\ChangeLog
............此处省略391个文件信息

评论

共有 条评论