Graxpert是一种天文图像处理程序,用于在Astrophotos的背景下提取和去除梯度。我们提供了几种传统的插值方法,例如径向基函数(RBF),细条和kriging,这些方法要求用户在图像背景中手动选择样品点。我们最新的添加是一种不需要任何用户输入的AI方法。
原来的 | 用AI去除梯度 |
---|---|
![]() | ![]() |
![]() | ![]() |
主页: https://www.graxpert.com
下载: https://github.com/steffenhir/graxpert/releases/latest
您可以在此处下载Graxpert的最新官方版本。为操作系统选择正确的版本。对于MacOS,我们为英特尔处理器(X86_64)和Apple Silicon(ARM64)提供不同的版本。
Windows:下载.EXE文件后,您应该能够直接启动它。
linux:在启动graxpert之前,必须通过运行chmod u+x ./GraXpert-linux
使其可执行
MACOS:打开.dmg文件后,只需将graxpert图标拖到应用程序文件夹中即可。现在可以从应用程序文件夹启动graxpert。
GraxPert带有图形用户界面。但是,不需要选择任何背景样品点的AI方法也可以从命令行执行。以下是可用的命令行参数及其描述:
每个操作的特定命令:
背景提取:
Denoising:
以下示例显示了如何从Windows中的命令行中使用graxpert。对于Linux和MacOS,您必须执行以下替换:
Linux:用Graxpert-Linux替换Graxpert-win64.exe
MACOS:由Graxpert.app/contents/macos/graxpert替换graxpert-win64.exe
基本用法:
GraXpert-win64.exe my_image.fits -cli
指定AI模型版本“ 1.1”,校正类型'distry',平滑“ 0.1”,并保存背景模型:
GraXpert-win64.exe my_image.fits -cli -ai_version 1.1 -correction Division -smoothing 0.1 -bg
本指南将帮助您开始从Windows,Linux和MacOS上开发GraxPert。按照以下步骤克隆存储库,使用Python创建虚拟环境,安装所需的软件包,然后从源代码运行GraxPert。
打开您的终端或命令提示符,并使用git克隆graxpert存储库:
git clone https://github.com/Steffenhir/GraXpert
cd GraXpert
我们建议使用虚拟环境来隔离项目的依赖关系。在继续操作之前,请确保系统上安装了Python> = 3.10。这是使用Python设置虚拟环境的方法:Windows:
# Create a new virtual environment with Python 3.10
python -m venv graxpert-env
# Activate the virtual environment
graxpert-envScriptsactivate
Linux和MacOS:
# Create a new virtual environment with Python 3.10
python3 -m venv graxpert-env
# Activate the virtual environment
source graxpert-env/bin/activate
所有要求都可以在unignts.txt文件中找到。您可以安装它们:
Windows和Linux:
pip install -r requirements.txt
macos:
pip3 install -r requirements.txt
"""
For macOS, we have to install tkinter separately.
We use the version provided by brew because it is newer
and solves issues with macOS Sonoma. Please use the version matching with your Python version.
"""
brew install [email protected]
设置虚拟环境并安装了所需软件包后,您可以启动GraxPert:
python -m graxpert.main