Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
最保密、最快速的发布方式
⚡️⚡️⚡️ 一分钟极速发布 ⚡️⚡️⚡️
👉 任何可以上网的计算机
👉 可以跑通的算法
👉 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.