
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
最保密、最快速的发布方式
⚡️⚡️⚡️ 一分钟极速发布 ⚡️⚡️⚡️
👉 任何可以上网的计算机
👉 可以跑通的算法
👉 Python>=3.7
例如:
def landmark_detection(image_path):
'''
人脸关键点标注
args:
image_path: 本地图片路径
'''
# 这里是具体算法实现 #
return {
'output_image_path': output_image_path, # 带关键点标注的本地图片路径
'dets': dets, # 目标图像检测的人脸坐标点
}
在算法所用 Python 环境的命令行执行:
pip install algospace -i https://pypi.python.org/simple
进入算法根目录,命令行执行:
algospace init
algospace
命令也可以简写为asc
执行后在当前目录下生成 algospace-config.py
配置文件。
根据 algospace-config.py
中的注释信息,填写第一步准备完成的预测函数的信息。
例如第一步预测函数的配置信息应当填写为:
service_filepath = './main.py'
service_function = 'landmark_detection'
service_input = {
'image_path': {
'type': 'image_path',
'describe': '人脸图片',
}
}
service_output = {
'output_image_path': {
'type': 'image_path',
'describe': '带标注点的人脸图片'
},
'dets': {
'type': 'str',
'describe': '目标图像检测的人脸坐标点'
}
}
进入算法根目录,命令行执行:
algospace start
也可以挂在后台运行:
nohup algospace start > ./algospace.log 2>&1 &
🎉 算法将会自动注册、运行、发布。
🎉 稍等片刻后即可在「我的算法」页面中查看新增的算法。
FAQs
AlgoSpace: A platform for displaying and using algorithm achievements
We found that algospace demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.