microsoft / anomalydetector

SR-CNN
MIT License
257 stars 70 forks source link

Unresolved reference 'median_filter' #19

Closed Royalwal closed 4 years ago

Royalwal commented 4 years ago

boundary_utils.py

import bisect import numpy as np from msanomalydetector._anomaly_kernel_cython import median_filter

Unresolved reference 'median_filter',How to solve this problem

guinao commented 4 years ago

please use the following command to compile the cpython module. python setup.py build_ext --inplace

Royalwal commented 4 years ago

python setup.py build_ext --inplace Traceback (most recent call last): File "setup.py", line 2, in from Cython.Build import cythonize ImportError: No module named Cython.Build

guinao commented 4 years ago

Have you installed cython yet? It should be issue that the cython library is not installed. You can use the following command to check if you have all the dependencies. pip install -r requirements.txt

Royalwal commented 4 years ago

thank u