Repository navigation
使用numpy向量化和scikit-image,完全替换cython - #151
Open
IncubatorShokuhou wants to merge 8 commits into
Open
IncubatorShokuhou wants to merge 8 commits into
IncubatorShokuhou wants to merge 8 commits into
Conversation
安装和运行不再需要编译扩展;测试对照原 Cython 黄金输出对齐。 Co-authored-by: Hao Lyu <IncubatorShokuhou@users.noreply.github.com>
Co-authored-by: Hao Lyu <IncubatorShokuhou@users.noreply.github.com>
Co-authored-by: Hao Lyu <IncubatorShokuhou@users.noreply.github.com>
cinrad_data 只有字体和地图;改用公开 Z9250 SA 基数据经 cinrad.io 抽出数组,对照侧路 Cython 黄金输出。另附本地 Cython/NumPy 计时脚本。 Co-authored-by: Hao Lyu <IncubatorShokuhou@users.noreply.github.com>
Co-authored-by: Hao Lyu <IncubatorShokuhou@users.noreply.github.com>
Co-authored-by: Hao Lyu <IncubatorShokuhou@users.noreply.github.com>
Co-authored-by: Hao Lyu <IncubatorShokuhou@users.noreply.github.com>
…e-python-a0d2 完全丢弃Cython:VIL/ET 改 NumPy,退模糊改 scikit-image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
因为有cython代码的存在,所以每次pip install都得编译之类的。当前代码直接把cython都替换掉了(vil / et 改成 NumPy 向量化,速度退模糊改用 scikit-image),然后安装和打包就都不再编译扩展(wheel 是 py3-none-any)了。
Z_RADR_I_Z9250_20160701001000_O_DOR_SA_CAP.bin(站号 Z9250,2016-07-01 00:10 UTC,VCP21)。9 × 230 × 360,sa460 是速度360 × 460。0.54×大约快一倍。对齐
4e-12(合成 sa230);真实 Z9250 大约7e-15。耗时(本机,预热 2 次,取 7 次中位数)