Skip to content

Releases

iKun Insect Studio 1.0.8

Choose a tag to compare

@Inccc-zty Inccc-zty released this 29 Nov 01:55

iKun Insect Studio 1.0.8

本页与安装包在 11-30 重新更新过一次(界面又改了几处),版本号仍是 1.0.8。
已经装过 1.0.8 的话,重新下这三个卷覆盖 exe 与 _internal\ 即可,data\ 不用动。

和 1.0.7 相比,全部的区别

功能

项目 1.0.7 1.0.8(本版)
更新方式 只能查到有没有新版本,看到了自己去下载 发现对应补丁就给出**「下载并更新(xx MB)」**:下载 → 校验 → 关软件 → 替换 → 自检 → 重启;任何一步失败自动回滚
掩膜尺寸 默认写死 768,4 GB 卡走分页会慢到像卡死 按显存起步:4 GB 及以上 768、更低 512、无显卡 384;前 10 张平均超过 6 秒自动降一档(768→512→384),降过的值记住,重启仍沿用;手动在「精度」里改过之后不再自动动
设备选择 下拉框让你选 CUDA / CPU,选错很慢 去掉选择,启动自动探测 CUDA → MPS → CPU,实际用的设备写在「说明」页
版本识别 标题只有软件名 标题和说明页都带构建时间(11-30 21:04),一眼能分清装的是哪次打的包

界面

项目 1.0.7 1.0.8(本版)
窗口底色 平涂 #f2f6f3(深色 #0f1412) 苔绿渐变 #f7fcf4 → #e4f1e6(深色 #1c2f3a → #142430)
卡片 用 QSS 圆角,子控件处会露出直角 自绘圆角卡片,四角干净,不再有直角套圆角
分隔条 6 px,鼠标移上去变成一条绿条 4 px / 5 px,平时完全透明,按住才出现一条 3 px 圆角细线
参数区 5 项挤成两行(含设备下拉) 4 项一行:模式 / 精度 / 裁切比例 / 曝光补偿,标签右对齐贴着各自的框
底部统计条 贴到窗口边缘的直角长条 自绘圆角卡片,左右与上方卡片同一条竖线,四周留缝
预览画布 一块浅色方块压在卡片上 透明,和卡片同色,只看得到照片
主按钮 深灰绿 深海蓝渐变 #336e99 → #2e4e77
曝光补偿框 原生上下箭头,浅色主题下几乎看不见 自绘矢量箭头;点完自动去掉输入光标
暂停按钮 空闲时也能点,点了没反应 只在处理中可用,空闲置灰
按钮高度 小按钮 28 px,中文偶尔被裁 32 px(竖向 padding 2 px),文字不再被裁
训练页「数据来源」 顺序是「带 XMP」在前 把成品 JPG 排到第一项(默认值本来就是成品 JPG,只是顺序变了)
深色模式 纯黑底 蓝灰底 #0e1822、卡片 #16232e,状态栏是圆角胶囊

这一版修了什么

1. 软件能自己更新了(最主要的一项)

「说明」页的「检查更新」以前只是查一下版本号,看到新版还是得自己去下载、解压、覆盖。
现在它会去找 patch_<你现在的版本>_to_<新版>.zip,找到就直接给一个按钮:

点「下载并更新(68 MB)」
  → 下载
  → 校验
  → 「立即更新」关掉软件
  → apply.bat 等进程真正退出
  → 备份现有文件
  → 覆盖
  → 逐文件 sha256 校验
  → 通过就重启,失败自动回滚到更新前

补丁只能同基线:patch_v1.0.7_to_v1.0.8.zip 只对 1.0.7 有效。
更早的版本(1.0.0–1.0.6)没有这段代码,还是得用完整包更新一次;从这一版往后就都能在软件里点。

macOS 这一版仍是整包更新(下载 zip、解压、把 .app 拖进「应用程序」)——.app 是目录包加签名结构,
逐文件替换会把结构弄坏,整包覆盖最稳。

2. 掩膜尺寸:按显卡起步,慢了会自己降

以前 768 是写死的,4 GB 卡一旦开始走系统分页,速度会从 0.8 秒掉到 3 秒以上,看起来像卡死。

现在:

  • 启动时按可用显存给默认值:4 GB 及以上 → 768,更低 → 512,没检测到显卡 → 384
  • 处理过程中,前 10 张的平均超过 6 秒就自动降一档(768 → 512 → 384);
    只看 10 张的平均,避免个别大图把整批降级
  • 降完会提示:前 10 张平均 7.2 秒,掩膜尺寸已从 768 降到 512;想改回去,点上方「精度」选 768
  • 降过的值记在配置里,关掉软件再开还是这个数,不会每次启动又弹回 768
  • 你在「精度」里手动选过之后,软件就不再自动改

3. 不再让你选 CUDA / CPU

这个选择对大多数人是纯负担:选错就是几倍的慢,而且选错了没有任何提示。
现在一律自动(CUDA → Apple MPS → CPU),「说明」页会告诉你实际用的是哪个设备、哪张卡。
老配置里存的 cuda / cpu 会自动迁移成 auto。

4. 界面重做

旧界面的问题是"拼出来的":QSS 圆角在子控件上会露直角,分隔条是一条突兀的深灰竖杠,
参数挤两行、设备下拉还占一格,底部统计条一直贴到窗口边缘。

这一版把这几处按同一个标准重画:

  • 卡片改成自绘圆角(QPainter 直接画,子控件不会再把角切出来)
  • 分隔条平时完全透明,只有按住拖动时才出现一条 3 px 的圆角线,宽度从 6 px 收到 4–5 px
  • 参数收成一行四项,标签右对齐贴着输入框
  • 底部统计条改成独立的圆角卡片,左右和上方卡片对齐,四周留缝
  • 预览画布透明,不再是一块浅色方块
  • 背景统一成苔绿渐变,主按钮深海蓝,强调色湖水青;深色模式同步成蓝灰

这一版界面来回改了几轮(中间试过深蓝主题、薄荷渐变、状态栏胶囊),最后定在现在这套。
如果你觉得哪一处还不如 1.0.7,直接说,我按你的来,不自己发挥。

5. 从 1.0.7 一直带过来的东西(没有退步,也不是这一版新增)

这一节列清楚,免得和上一版的说明混淆:

  • 曝光补偿(全局 −2~+2 EV、1/3 档)+ 单张曝光微调
  • 裁切比例按等面积换算;固定比例装不下时宁可放弃精确比例也不切腿
  • 成品 JPG 直接训练(不需要原图、不需要 XMP)、训练样本按完整路径去重
  • 掩膜/预览缓存只保留最近 4000 个文件,超出的自动清掉(1.0.7 起就是 4000,这一版没改)
  • 只读接口 GET /api/logs?tail=200、GET /api/errors
  • 头部修正(按你的拖动记录学平移残差):当前记录 0 条,从未生效,这一版也没动它

上面这些在 1.0.7 的发布说明里都写过。如果你是在找「4000 张」那条——它指的是缓存文件数上限,
不是队列张数;队列本身没有张数限制,一次拖一万张也能跑,只是很慢。


把昆虫微距里最枯燥的部分做掉:找虫、定框、给曝光。
外拍一天回来,每个个体都要留一张记录,真正精修的只有几张。微距题材里虫子天生在画面中偏小,于是时间都花在剩下那几十上百张的重复裁切、重复调曝光上。这个软件把那部分收成一步:拖进文件夹,每张给一个裁切框和一次曝光,结果写成 Lightroom 能直接读的 .xmp,导入即生效。

裁切:全画幅掩膜找出虫体,外接框 + 躯干框 + 头点 → 105 项模型给出裁切框,留出 IoU 0.865
曝光:掩膜内 p95 与框内掩膜外 p95,两个数进一条直线,留出 MAE 0.29 EV
锐化:按光圈查表(20 → 65)
学你的构图:拿你自己修好的成品 JPG 即可重拟合裁切模型,不需要原图、不需要 XMP

裁切和曝光都可能出错,没有一个是 100% 准的。它的价值不是"准",是把重复劳动从几小时压到几分钟。

精度按可用显存选:4 GB 卡选 512,6 GB 以上选 768。选高于可用显存的档不会报错,
但会走系统分页,从 0.8 秒掉到 3 秒以上。(其实作者之前试过1650 4gb也能稳定跑768,可以从高往低都试试看)

(上面这段最后讲的是手动调档的参考。1.0.8 首次启动会自己按显存选好,也会自己降,你不动它就行。)

下载

平台 文件 大小 说明
Windows iKunInsectStudio_v1.0.8.zip.001 / .002 / .003 + join-parts.bat 3.38 GB 三个卷放同一目录,双击 join-parts.bat 合并后解压;把 exe 与 _internal\ 覆盖进原目录,data\ 不要动
Windows 补丁 patch_v1.0.7_to_v1.0.8.zip 68 MB 仅限 1.0.7:解压到 程序目录\_update\,双击 apply.bat;也可以在软件里点「下载并更新」
macOS iKunInsectStudio_macOS_arm64.zip 795 MB Apple 芯片(M1 及以上);解压后把 .app 拖进「应用程序」覆盖旧的

Mac 版首次打开若提示"无法验证开发者",右键点图标选「打开」,或执行一次:

xattr -dr com.apple.quarantine /Applications/iKunInsectStudio.app

包没有苹果签名,这一步只是清掉 Gatekeeper 的隔离标记。Intel Mac 跑不了——PyTorch 已不再发布
Intel macOS 的二进制。Mac 版在 CI 里跑过自检(加载 BiRefNet、前向、解框全过),
但作者手上没有苹果电脑,真实速度还得你那边测。

百度网盘(提取码 8848,永久有效):

Windows 三个卷 / macOS 包 / 补丁都在这个文件夹里:https://pan.baidu.com/netdisk/share?surl=NsJTkXQSqn07QVQm8iS_qQ

你的数据不会被覆盖

更新只碰程序文件,data\ 整个目录不参与比对、不进补丁、不被删除:

  • data\config.json — 所有设置(含精度、主题、语言)
  • data\models\crop\*.json、data\models\ev\*.json — 你自己训练或导入的模型
  • data\head_fix.jsonl、head_bias.json — 头点修正记录
  • data\sharpen_table.csv — 锐化表

补丁包里根本没有这些文件;就算想覆盖也没东西可覆盖。

iKun Insect Studio 1.0.7

Choose a tag to compare

@Inccc-zty Inccc-zty released this 28 Nov 15:03

iKun Insect Studio 1.0.7

⚠️ 先看这里:怎么从老版本更新

这一版必须用完整包更新一次,从 1.0.8 起才能用 80 MB 左右的小补丁。

请按三步做,你的设置和自己训练的模型都在 data\ 里,不要动它:

  1. 先把老目录里的 data\ 整个复制到桌面(几十 MB,保险)
  2. 新包解压到另一个文件夹,只把这两样拖进老目录覆盖:
    iKunInsectStudio.exe、_internal\
  3. 启动 → 设置里确认自己训练的模型还在 → 删掉那个临时文件夹

1.0.6 及更早的包没有这个功能(只能看到新版本、不会自己下载),所以这一步需要手动做一次。
1.0.0–1.0.5 的包本身缺少模型(会每张失败),必须换成这一版。


这一版修了什么

1. 曝光补偿(新)

参数区多了一个「曝光补偿」:在你现有曝光模型的结果上加减,不需要重新训练。

  • 范围 −2.0 ~ +2.0 EV,按 1/3 档步进(0.33 / 0.67 / 1.00 …,和 Lightroom 的曝光滑块一致)
  • 正数更亮、负数更暗;实际写入 = 模型输出 + 补偿,夹在 ±5 EV 以内
  • 改完对之后处理的照片生效;想立刻看到就把那张重跑一次
  • 值存在 data\config.json,关掉软件再开还是这个数

模型本身的输出没有被改动(ev_raw 仍记原值),换回 0.0 就完全恢复原样。

2. 裁切比例:换比例不再改变虫子大小

以前换比例是“重新框一次”,虫子占比会跳。现在以原图比例那次的结果为基准:

基准面积 A₀ = 原图比例框的像素面积
换到比例 R:Pw = √(A₀·R),Ph = √(A₀/R)

也就是说 3:2 换 1:1 或 16:9,面积不变,虫子看起来一样大,只是构图形状变了。

实测(Z04_6394,8256×5504):

比例 实际像素比 面积
原图比例 1.50 25.7 Mpx
1:1 1.00 25.7 Mpx
4:5 0.80 24.2 Mpx
16:9 1.78 25.7 Mpx

4:5 少 6%,因为竖构图装不下画幅高度,等比缩到能装下,比例仍然精确。

3. 固定比例不再切腿

旧算法只给「宽」加腿留白,高度由比例推出来,遇到瘦高个 + 16:9 会把腿裁掉。
现在两个方向都满足;画布实在装不下时放弃精确比例、保住虫子,并在结果里标记。

4. 成品 JPG 训练的默认比例

用成品 JPG 训练的模型,默认比例改成照片自身的比例,不再用模型学到的那个。
换一批成片,默认构图不会跟着漂。

5. 训练样本去重

同一张照片的 RAW 与 JPEG 各带一份 XMP 时,只算一个样本(RAW 优先)。
之前会被算成两张,留出指标虚高。

6. 对外接口

新增两个只读接口,方便外部工具查问题:

GET /api/logs?tail=200    → data/perf.log 最后 200 行
GET /api/errors           → 本次失败的照片与异常信息

7. 其他

  • 掩膜缓存上限 4000 个文件,不再无限增长
  • 配置文件改成原子写(断电不会写坏)
  • 修掉 3 处文件句柄未关闭
  • 发布包不再包含 data\(之前会把作者的设置一起发给用户)

下载

平台 文件 大小 说明
Windows iKunInsectStudio_v1.0.7.zip.001 / .002 / .003 + join-parts.bat 3.38 GB 合并后解压,替换 exe 与 _internal\,保留 data\
macOS iKunInsectStudio_macOS_arm64.zip 795 MB Apple 芯片(M1+);解压后把 .app 拖进「应用程序」

Mac 版首次打开若提示“无法验证开发者”,右键点图标选「打开」,或执行一次:

xattr -dr com.apple.quarantine /Applications/iKunInsectStudio.app

包没有苹果签名,这一步只清掉 Gatekeeper 的隔离标记。Intel Mac 跑不了——PyTorch 已不再发布
Intel macOS 的二进制。Mac 版在 CI 里跑过自检(加载 BiRefNet、前向、解框全过);作者手上没有苹果电脑,
所以真实速度还得你那边测,M1/M2 走 MPS,8 GB 内存建议精度选 512。

精度按可用显存选

4 GB 卡选 512,6 GB 以上选 768。选高了不会报错,但会走系统分页,从 0.8 秒掉到 3 秒以上。

补一句实测:GTX 1650(4 GB)也能稳定跑 768。所以这张表只是建议,你可以从高往低都试一遍,
以自己机器不卡为准。

百度网盘(提取码 8848,永久有效):

Windows / macOS / 补丁都在这个文件夹里:https://pan.baidu.com/netdisk/share?surl=NsJTkXQSqn07QVQm8iS_qQ

iKun Insect Studio 1.0.6

Choose a tag to compare

@Inccc-zty Inccc-zty released this 26 Nov 07:16

iKun Insect Studio

把昆虫微距里最枯燥的部分做掉:找虫、定框、给曝光。

外拍一天回来,每个个体都要留一张记录,真正精修的只有几张。微距题材里虫子天生在画面中偏小,于是时间都花在剩下那几十上百张的重复裁切、重复调曝光上。这个软件把那部分收成一步:拖进文件夹,每张给一个裁切框和一次曝光,结果写成 Lightroom 能直接读的 .xmp,导入即生效。

  • 裁切:全画幅掩膜找出虫体,外接框 + 躯干框 + 头点 → 105 项模型给出裁切框,留出 IoU 0.865
  • 曝光:掩膜内 p95 与框内掩膜外 p95,两个数进一条直线,留出 MAE 0.29 EV
  • 锐化:按光圈查表(20 → 65)
  • 学你的构图:拿你自己修好的成品 JPG 即可重拟合裁切模型,不需要原图、不需要 XMP

裁切和曝光都可能出错,没有一个是 100% 准的。它的价值不是"准",是把重复劳动从几小时压到几分钟。


这个版本更新了什么(1.0.6)

平台 文件 大小 说明
Windows iKunInsectStudio_v1.0.6.zip.001 / .002 / .003 + join-parts.bat 3.38 GB 合并后解压
macOS iKunInsectStudio_macOS_arm64.zip 0.78 GB Apple 芯片(M1 及以后),解压得到 .app;模型在包里,离线可用

Mac 版怎么装:解压 → 把 iKunInsectStudio.app 拖进「应用程序」→ 首次打开若提示"无法验证开发者",
右键点图标选「打开」,或执行一次:

xattr -dr com.apple.quarantine /Applications/iKunInsectStudio.app

包体 0.78 GB 的原因:macOS 的 PyTorch 不带 CUDA(Windows 那 3.4 GB 里大半是 CUDA 运行库),
不是缺东西。包内 Contents/Resources/hf 是 BiRefNet(848 MB)、Contents/Resources/skill/assets/weights
是头部权重(95 MB),CI 里删掉构建机缓存后再跑一次自检仍然通过,证明模型确实在包里。

包没有苹果签名,这一步只清掉 Gatekeeper 的隔离标记。Intel Mac 跑不了——PyTorch 已不再发布
Intel macOS 的二进制。Mac 版在 CI 里跑过自检(加载 BiRefNet、前向、解框全过),但这台机器没有
Apple 芯片,实际速度要你那边测:M1/M2 走 MPS,8 GB 内存建议精度选 512。

更重要的一个修复:包里现在自带模型了

之前的分发包不含 BiRefNet 权重,靠 HF_HOME 指向开发者本机的缓存目录。别人装上以后这个目录不存在,
第一次推理就去联网下载;下不到(没网、被墙、盘符不存在)就每张都是红的。这就是"只有我这台能跑"的原因。

现在:

  • BiRefNet(848 MB)在打包时塞进 _internal/hf,开箱即用,不联网
  • 启动时按「包内 hf/ → 旧缓存路径 → data/hf」依次找,找不到才联网下载
  • 包体从 2.6 GB 涨到约 3.4 GB(压缩后),换来的是别人装上就能跑

为了跨平台改了什么

问题 处理
设备只认 cuda / cpu 改成 cuda → mps → cpu 自动选;Apple 芯片走 MPS
torch.cuda.empty_cache() 在无 CUDA 机器上会抛错 加可用性判断,只在真有 CUDA 时调用
模型缓存写死 D:/反渲染的研究/.cache/hf 改成:包内 hf/(打包时预下载)→ 否则 data/hf;Mac 上不会出现名为 D: 的目录
「打开所在文件夹」用 os.startfile(Windows 专有) 抽到 app/sysenv.py,macOS 走 open
打包脚本只有 Windows 一套 新增 build_mac.py,.app 用 ditto 压(zip -r 会破坏 bundle 结构)
分发包不带模型,别人跑不了 BiRefNet 打进 _internal/hf,离线可用

macOS 上的性能:Apple 芯片用 MPS,第一次推理会慢一些(编译内核),之后接近同档显卡;
8 GB 内存的机器建议精度选 512。

另外:裁切比例可以选了

参数区多了一个下拉(和「分割精度」同一排):原图比例(默认,老行为)/ 1:1 / 4:5 / 3:2 / 16:9 / 自定义。
选中的比例会同时作用于两条裁切路径;原图比例 时行为与 1.0.5 完全一致。实测(8256×5504 原片):

选择 归一化框 实际像素比例
原图比例 0.5049 × 0.5049 1.500
1:1 0.5049 × 0.7573 1.000
4:5 0.5049 × 0.9467 0.800
16:9 0.5049 × 0.4260 1.778

下载与升级

Windows:…zip.001、.002 与 join-parts.bat 放同一文件夹,双击 bat 合成 zip,解压后运行
iKunInsectStudio.exe(整个文件夹一起留着)。升级只替换 exe 与 _internal\,保留 data\。

macOS:解压后把 .app 拖进「应用程序」。升级直接覆盖整个 .app,data/ 在
~/Library/Application Support/iKunInsectStudio,不会被覆盖。

精度按可用显存选:4 GB 卡选 512,6 GB 以上选 768。选高于可用显存的档不会报错,
但会走系统分页,从 0.8 秒掉到 3 秒以上。

百度网盘(提取码 8848,永久有效,一个文件夹里放 Windows / macOS / 补丁):
https://pan.baidu.com/netdisk/share?surl=NsJTkXQSqn07QVQm8iS_qQ



iKun Insect Studio

The two most repetitive jobs in insect macro, done in one pass: find the bug, place the crop, set the exposure.

A day out shooting means one record frame per individual, and only a handful worth a full edit. In macro work the insect is always small in the frame, so the hours go into the ninety records — crop after crop, exposure after exposure. This tool folds that into one step: drop a folder in, and every frame gets a crop box and an exposure value, written as a .xmp your editor reads on import.

  • Crop — a full-frame mask finds the insect, then a body box, a whole box and a head point feed a 105-term model. Hold-out IoU 0.865
  • Exposure — two p95 brightness numbers into one straight line; hold-out MAE 0.29 EV
  • Sharpening — by aperture, 20 → 65
  • Learns your framing — refit the crop model on your own finished JPEGs; no originals, no XMP

Crop and exposure can both be wrong — nothing here is 100%. The value is not accuracy, it is turning hours of repetitive editing into minutes.


What changed in 1.0.6

Platform File Size Notes
Windows iKunInsectStudio_v1.0.6.zip.001 / .002 / .003 + join-parts.bat 3.38 GB merge, then unzip
macOS iKunInsectStudio_macOS_arm64.zip 0.78 GB Apple Silicon (M1+), unzip to get the .app; model bundled, works offline

Installing on macOS: unzip, drag iKunInsectStudio.app into Applications. If macOS complains about an
unverified developer, right-click the icon and choose Open, or run once:

xattr -dr com.apple.quarantine /Applications/iKunInsectStudio.app

Why 0.78 GB: PyTorch on macOS ships no CUDA (most of Windows' 3.4 GB is CUDA runtime libraries), so nothing
is missing. Contents/Resources/hf holds BiRefNet (848 MB) and Contents/Resources/skill/assets/weights the
head weights (95 MB); CI deletes the build machine's cache and runs the selftest again, which still passes.

The bundle is unsigned; that only clears Gatekeeper's quarantine flag. Intel Macs are not supported —
PyTorch no longer publishes Intel macOS binaries. The app passed its selftest inside CI (BiRefNet loaded, one
forward pass, coefficients resolved), but this runner has no Apple silicon, so real speed is yours to measure:
M1/M2 use MPS, and an 8 GB machine should pick tier 512.

What had to change for cross-platform

Problem Fix
Device was cuda / cpu only now cuda → mps → cpu; Apple Silicon uses MPS
torch.cuda.empty_cache() throws where there is no CUDA guarded by an availability check
Model cache hard-coded to a Windows path now: bundled hf/ → else data/hf; no stray D: folder on macOS
"Reveal in folder" used os.startfile moved to app/sysenv.py; macOS uses open
Only a Windows build script existed added build_mac.py; the .app is zipped with ditto (zip -r breaks bundles)

Performance on macOS: MPS is slower on the very first inference (kernel compilation), then comparable.
On an 8 GB machine pick tier 512.

The Windows build was rebuilt too, purely so both sides run identical code — no functional change over 1.0.5.

Download and upgrade

Windows: put …zip.001, .002 and join-parts.bat in one folder, run the bat, unzip, run
iKunInsectStudio.exe. Upgrading: replace exe and _internal\ only, keep data\.

macOS: unzip, drag the .app into Applications. Upgrading replaces the bundle; data/ lives in
~/Library/Application Support/iKunInsectStudio and survives.

Pick the mask tier by free VRAM: 512 on 4 GB cards, 768 on 6 GB and up. A tier above free VRAM does not
error — it pages through system memory and drops from 0.8 s to over 3 s.

Baidu Netdisk (code 8848):

iKun Insect Studio 1.0.5

Choose a tag to compare

@Inccc-zty Inccc-zty released this 25 Nov 14:04

iKun Insect Studio

把昆虫微距里最枯燥的部分做掉:找虫、定框、给曝光。

外拍一天回来,每个个体都要留一张记录,真正精修的只有几张。微距题材里虫子天生在画面中偏小,于是时间都花在剩下那几十上百张的重复裁切、重复调曝光上。这个软件把那部分收成一步:拖进文件夹,每张给一个裁切框和一次曝光,结果写成 Lightroom 能直接读的 .xmp,导入即生效。

  • 裁切:全画幅掩膜找出虫体,外接框 + 躯干框 + 头点 → 105 项模型给出裁切框,留出 IoU 0.865
  • 曝光:掩膜内 p95 与框内掩膜外 p95,两个数进一条直线,留出 MAE 0.29 EV
  • 锐化:按光圈查表(20 → 65)
  • 学你的构图:拿你自己修好的成品 JPG 即可重拟合裁切模型,不需要原图、不需要 XMP

裁切和曝光都可能出错,没有一个是 100% 准的。它的价值不是"准",是把重复劳动从几小时压到几分钟。


这个版本更新了什么(1.0.5)

训练数据来源只留两项,默认「成品 JPG」。 这是本版唯一的目的:让「直接拿成片训练」成为默认路径。

1.0.4 里的问题 现在的行为
数据来源有三个选项,其中「成品 JPG + 原图」要求两套目录同名同结构,实际没人那样整理文件 撤掉该选项,只留两项
默认停在「带 XMP 的 RAW / 原图 JPG」,而实际大家手上只有成品 默认改成「成品 JPG」
新加的下拉框右边没有向下小三角,与软件里另两处下拉不一致 改用同一套绘制,三处外观一致
数据来源 说明
成品 JPG(默认) 选修好的成片文件夹。成片就是裁切后的画面,软件从它反解裁切框
带 XMP 的 RAW / 原图 JPG 选原图文件夹,裁切框直接读同名 XMP

两者都至少 50 张;训练产物进模型库,可在「模型(系数)」下拉切换。

下载与升级

iKunInsectStudio_v1.0.5.zip.001、.002 与 join-parts.bat 放同一文件夹,双击 bat 合成 zip,解压后运行 iKunInsectStudio.exe(整个文件夹要一起留着)。

从旧版升级:只替换 exe 与 _internal\,保留 data\(训练的模型与头点记忆在里面)。

Windows 10/11 + NVIDIA 显卡(4 GB 显存起;2 GB 可用 384 档)。

百度网盘(提取码 8848,永久有效,一个文件夹里放 Windows / macOS / 补丁):
https://pan.baidu.com/netdisk/share?surl=NsJTkXQSqn07QVQm8iS_qQ



iKun Insect Studio

The two most repetitive jobs in insect macro, done in one pass: find the bug, place the crop, set the exposure.

A day out shooting means one record frame per individual, and only a handful worth a full edit. In macro work the insect is always small in the frame, so the hours go into the ninety records — crop after crop, exposure after exposure. This tool folds that into one step: drop a folder in, and every frame gets a crop box and an exposure value, written as a .xmp your editor reads on import.

  • Crop — a full-frame mask finds the insect, then a body box, a whole box and a head point feed a 105-term model. Hold-out IoU 0.865
  • Exposure — two p95 brightness numbers into one straight line; hold-out MAE 0.29 EV (constant baseline 0.41)
  • Sharpening — by aperture, 20 → 65
  • Learns your framing — refit the crop model on your own finished JPEGs; no originals, no XMP

Crop and exposure can both be wrong — nothing here is 100%. The value is not accuracy, it is turning hours of repetitive editing into minutes.


What changed in 1.0.5

Two data sources only, and the default is "Finished JPEGs". That is the single point of this release: make training directly on exports the default path.

Problem in 1.0.4 Behaviour now
Three data sources, one of which ("exports + originals") demanded two mirrored folder trees nobody keeps That option is gone; two remain
Default sat on "RAW / JPG with XMP", while most people only have finished exports Default is now "Finished JPEGs"
The new drop-down had no small arrow, unlike the other two in the app Same painter; all three look alike now
Data source What it does
Finished JPEGs (default) Pick the export folder; the app inverts the crop out of it
RAW / JPG with XMP Pick the originals folder; the crop box comes from the sidecar

Both need at least 50 photos; the result lands in the model library and is switchable in the model drop-down.

Download and upgrade

Put iKunInsectStudio_v1.0.5.zip.001, .002 and join-parts.bat in one folder, run the bat, unzip, run iKunInsectStudio.exe (keep the whole folder together).

Upgrading: replace exe and _internal\ only, keep data\ (your trained models live there).

Windows 10/11 with an NVIDIA GPU (4 GB VRAM; 2 GB works at 384).

Baidu Netdisk (code 8848):

iKun Insect Studio 1.0.4

Choose a tag to compare

@Inccc-zty Inccc-zty released this 25 Nov 13:06

1.0.4:训练页三个按钮合并成一个下拉框。之前「添加目录 / 添加成品 JPG / 添加原图与成品 JPG」三个并排摆着,看不懂该点哪个。

这版修了什么(针对 1.0.3 的问题)

1.0.3 里的问题 现在的行为
训练页横着一排三个按钮,名字说的是「文件类型」而不是「你要做什么」,不看说明书猜不出来 收成一个「数据来源」下拉框 + 一个添加按钮,按钮名字跟着选择变
「添加成品 JPG」「添加原图与成品 JPG」两个名字只差几个字,容易点错 三个选项分别是「带 XMP 的 RAW / 原图 JPG」「成品 JPG(只有成片)」「成品 JPG + 原图」,一眼能对上手上的文件
选错按钮会在错误入口里翻半天目录 先选来源,再点添加;加错的行可以直接 × 掉

现在的样子

训练页「训练目录」这一行的右侧:

训练目录(可以放多个…)                    数据来源 [ 带 XMP 的 RAW / 原图 JPG ▾ ]

下面的按钮会跟着变:

数据来源 按钮
带 XMP 的 RAW / 原图 JPG 添加带 XMP 的文件夹
成品 JPG(只有成片) 添加成品 JPG 文件夹
成品 JPG + 原图 添加原图与成品目录

列表里每一行后面标着来源:灵山 · 成片(12 张)、灵山 · XMP(437 张)、灵山 · 成片+原图(60 张)。
选择会记住,下次打开还是上次那个。

三种来源的判定没变:

  • 带 XMP:文件夹里 RAW 或全幅 JPG,配同名 .xmp
  • 只有成片:修好的成品 JPG,从成片反解裁切框,不需要原图与 XMP
  • 成片 + 原图:两目录同名同结构,配准后落回原片坐标

升级

只替换 exe 与 _internal\,保留 data\(训练的模型与头点记忆在里面)。

iKunInsectStudio_v1.0.4.zip.001、.002 与 join-parts.bat 放同一文件夹,双击 bat 合成 zip,解压即用。

Windows 10/11 + NVIDIA 显卡(4 GB 显存起;2 GB 可用 384 档)。

百度网盘(提取码 8848,永久有效,一个文件夹里放 Windows / macOS / 补丁):
https://pan.baidu.com/netdisk/share?surl=NsJTkXQSqn07QVQm8iS_qQ


1.0.4: the three training buttons became one drop-down. "Add folder / Add JPEG exports / Add originals
and exports" side by side gave no clue which one to press.

Fixed since 1.0.3

Problem in 1.0.3 Behaviour now
Three buttons in a row named after file types, not after what you are trying to do One "Data source" drop-down plus one add button; the button renames itself
"Add JPEG exports" and "Add originals and exports" differ by a few characters, easy to misclick Three options: "RAW / JPG with XMP", "Finished JPEGs only", "Finished JPEGs + originals"
Picking the wrong button meant browsing folders in the wrong flow Choose the source, then add; a wrong row can be removed with ×

What it looks like

Right side of the "Training folders" row:

Training folders (several allowed…)        Data source [ RAW / JPG with XMP ▾ ]

The button follows the choice:

Data source Button
RAW / JPG with XMP Add folder with XMP
Finished JPEGs only Add finished-JPEG folder
Finished JPEGs + originals Add originals and exports

Each row is tagged with its source: Lingshan · exports (12), Lingshan · XMP (437), Lingshan · exports + originals (60).
The choice is remembered between sessions.

Upgrading

Replace exe and _internal\ only, keep data\.

Put iKunInsectStudio_v1.0.4.zip.001, .002 and join-parts.bat in one folder, run the bat, unzip, run.

Windows 10/11 with an NVIDIA GPU (4 GB VRAM; 2 GB works at 384).

Baidu Netdisk (code 8848):

iKun Insect Studio 1.0.3

Choose a tag to compare

@Inccc-zty Inccc-zty released this 25 Nov 10:08

1.0.3:修好的成品 JPG 直接就能训练,不用原图、不用 XMP;同时修掉上一版训练完「提示完成但模型没生效」的问题。

这版修了什么(针对 1.0.2 的问题)

1.0.2 里的问题 现在的行为
只有修好的成片时,训练报「可用样本少于 50 张」 新增「添加成品 JPG」入口,成片直接可训
训练跑完显示「完成」,但模型库里没有新模型,推理用的还是旧系数 收录失败会直接报错,不再假成功
模型库只接受「全幅坐标」格式的系数,另一种空间写不进去 两种空间都能收录、都能在软件里切换
裁切框在成片相对空间算出来,却仍按全幅公式去解,框是错的 推理按系数里的空间分流,各走各的公式

这版新增

「添加成品 JPG」:只有成片也能训练

成片就是裁切后的那张画面,所以在成片上量两件事就够了——虫体占画面多少、虫心偏画面中心多少。
这些比例只由虫子形状决定,与画幅无关。模型学「形状 → 该放大多少倍、往哪偏」,推理时反解:

成片宽 W = 虫宽 × 2^t0
成片中心 = 虫心 − (ox·W, oy·H)

验证:用已知规律合成 240 张成片,只用成片训练,再拿 60 张没见过的原片反解,IoU 中位 0.9997;
真实 60 张成片训练后,模型对原片的推理框与虫体框位置关系正常。

现在训练页三个入口:

手上有什么 用哪个
RAW 或全幅 JPG + 同名 XMP 「添加目录」
修好的成品 JPG(无原图) 「添加成品 JPG」
成品 JPG + 未裁原图 「添加原图与成品 JPG」

三者都至少 50 张。

升级

只替换 exe 与 _internal\,保留 data\(你训练的模型和头点记忆在里面)。

iKunInsectStudio_v1.0.3.zip.001、.002 与 join-parts.bat 放同一文件夹,双击 bat 合成 zip,解压即用。

Windows 10/11 + NVIDIA 显卡(4 GB 显存起;2 GB 可用 384 档)。

百度网盘(提取码 8848,永久有效,一个文件夹里放 Windows / macOS / 补丁):
https://pan.baidu.com/netdisk/share?surl=NsJTkXQSqn07QVQm8iS_qQ


1.0.3: finished JPEG exports train on their own — no originals, no XMP. Also fixes "training reports done
but no model is installed" from the previous release.

Fixed since 1.0.2

Problem in 1.0.2 Behaviour now
With only finished exports, training failed with "fewer than 50 usable samples" New Add JPEG exports only entry; exports train directly
Training said "done" while the model library gained nothing, so inference kept using the old coefficients A failed adoption now raises instead of reporting success
The library accepted only full-frame coefficient files; the other space could not be stored Both spaces are stored and switchable in the app
Boxes computed in the export-relative space were still solved with the full-frame formula, producing wrong crops Inference dispatches on the space recorded in the coefficients

Added

Add JPEG exports only

An export is the frame after cropping, so two measurements suffice: how much of the frame the insect
takes, and how far its centre sits from the frame centre. Those ratios depend on the animal, not on the
frame size. The model learns "shape → how many times larger, offset by how much" and inverts at inference:

W = body width × 2^t0        centre = body centre − (ox·W, oy·H)

Verified: 240 synthetic exports from a known rule, trained on exports only, then inverted on 60 unseen
frames — median IoU 0.9997. On 60 real exports the fitted model places boxes correctly on originals.

Three entries in the Train tab:

What you have Which one
RAW or full-frame JPG + sidecar XMP Add folder
Finished exports, no originals Add JPEG exports only
Exports plus uncropped originals Add originals and JPEG exports

All three need at least 50 photos.

Upgrading

Replace exe and _internal\ only, keep data\ (your trained models and head corrections live there).

Put iKunInsectStudio_v1.0.3.zip.001, .002 and join-parts.bat in one folder, run the bat, unzip, run.

Windows 10/11 with an NVIDIA GPU (4 GB VRAM; 2 GB works at 384).

Baidu Netdisk (code 8848):

iKun Insect Studio 1.0.2

Choose a tag to compare

@Inccc-zty Inccc-zty released this 25 Nov 09:14

1.0.2:训练可以喂三种数据——RAW+XMP、全幅 JPG+XMP、以及只有成品 JPG 的裁切导出。

这版改了什么

训练数据(本次的主要改动)

  • 新增「添加原图与成品 JPG」入口:先选未裁切原图目录,再选对应的成品 JPG 目录,
    没有 XMP 也能训练
  • 软件用特征点配准反推裁切框:验证这一对确实是同一张照片、且是轴对齐裁切;
    配不上就跳过,不会把不相干的图硬凑成样本;同名原图有两份时同样拒收
  • 复原精度实测:三种不同裁切位置,归一化误差 0.000
  • 原图损坏只跳过那一张,不中断整批
  • 训练结果区分标注来源:XMP 来的与图配准来的,各自记在 trainset.csv 的 label_path 列

稳定性

  • 提取缓存按分割精度分键:换 384/512/768 不再复用旧结果
  • 样本不足时的报错写明「有效裁切样本 N/50」,不再笼统说少于 50 张
  • 裁切拟合失败会明确报错,不再静默标「完成」

训练数据怎么选

你手上有什么 怎么做
RAW + 同名 XMP 训练页 →「添加目录」
全幅 JPG + 同名 XMP 训练页 →「添加目录」
只有裁好的成品 JPG(有原图) 训练页 →「添加原图与成品 JPG」,两个目录同名同结构
只有裁好的成品 JPG(无原图) 无法训练:被裁掉的画面已不在文件里

下载

下载 iKunInsectStudio_v1.0.2.zip.001、.002 和 join-parts.bat,放同一文件夹,
双击 join-parts.bat 合成 zip,解压后运行 iKunInsectStudio.exe(整个文件夹要一起留着)。

从旧版升级:只替换 exe 与 _internal\,保留 data\(训练的模型和头点记忆在里面)。

需要 Windows 10/11 + NVIDIA 显卡(4 GB 显存起;2 GB 可用 384 档)。

百度网盘(提取码 8848,永久有效,一个文件夹里放 Windows / macOS / 补丁):
https://pan.baidu.com/netdisk/share?surl=NsJTkXQSqn07QVQm8iS_qQ


1.0.2: training now takes three kinds of input — RAW+XMP, full-frame JPG+XMP, and plain cropped
JPEG exports.

What changed

Training data (the point of this release)

  • New Add originals and JPEG exports entry: pick the uncropped originals folder, then the matching
    export folder — no XMP required
  • The app recovers the crop box by feature registration, verifying that the pair really is the same
    photo and that the crop is axis-aligned; unverified pairs are skipped, and a stem with two
    candidate originals is rejected
  • Measured recovery error across three different crop positions: 0.000 normalised
  • A corrupt original skips that frame only, never the batch
  • Where each label came from is recorded per row (label_path in trainset.csv)

Robustness

  • The extraction cache is keyed by mask size, so switching 384/512/768 no longer reuses stale rows
  • The "not enough samples" error now reports the usable count (N/50)
  • A failed crop fit is reported as an error instead of a silent "done"

Choosing your input

What you have What to do
RAW + sidecar XMP Train tab → Add folder
Full-frame JPG + sidecar XMP Train tab → Add folder
Cropped exports, originals available Train tab → Add originals and JPEG exports
Cropped exports only Cannot train — the discarded part of the frame is gone

Download

Get iKunInsectStudio_v1.0.2.zip.001, .002 and join-parts.bat into one folder, run
join-parts.bat, unzip, and launch iKunInsectStudio.exe (keep the whole folder together).

Upgrading: replace exe and _internal\ only, keep data\.

Windows 10/11 with an NVIDIA GPU (4 GB VRAM; 2 GB works at 384).

Baidu Netdisk (code 8848):

iKun Insect Studio 1.0.1

Choose a tag to compare

@Inccc-zty Inccc-zty released this 25 Nov 03:17

1.0.1:小显存也能稳定跑,训练页按你的方式挑图,加数据不用重跑老图。

这版改了什么

更快、更省显存

  • 掩膜精度新增 384 档:2 GB 显存的机器也能稳定跑,实测 0.39 秒/张(768 是 0.77 秒)
  • 显存不够时依旧自动降级,结果标 degraded,不会静默给错框
  • 每张的耗时写进 data/perf.log,卡在哪一段一眼能看出来

训练页

  • 每个文件夹显示「(N 张)」——加入多少就显示多少,可以只训练你拖进来的那几张
  • 修复「明明几百张却提示少于 50 张无法拟合」:连拍去重把 533 对压成了 29 对
  • 提取结果会缓存,下次加新照片时旧图直接复用,不重跑
  • 支持暂停 / 继续训练
  • 训练完成自动切到新模型;模型文件被删会自动回落到内置
  • 「重置到初始状态」保留你训练/导入的模型

界面

  • 曝光预览跟随实时预览:关掉实时预览时自动关闭,再打开时恢复上次状态
  • 深色模式两条白缝修复(左右分栏、预览与拼版之间)
  • 图标改为透明底,只留虫体
  • 说明页新增「检查更新」,与 version.json 联动
  • 中英切换:版本行、未选择照片、训练列表等不再残留中文

下载

  1. 下载 iKunInsectStudio_v1.0.1.zip.001、.002 和 join-parts.bat,放同一个文件夹
  2. 双击 join-parts.bat,得到 iKunInsectStudio_v1.0.1.zip
  3. 解压 → 双击 iKunInsectStudio.exe(整个文件夹要一起留着)
  4. 从 1.0.0 升级:只替换 exe 和 _internal\,保留 data\(那里有你训练的模型和头点记忆)

需要 Windows 10/11 + NVIDIA 显卡(4 GB 显存起,2 GB 可跑 384 档)。

下载优先用上面的 GitHub 分卷。只有 GitHub 慢、或者下到一半断了,再用百度网盘(提取码 8848,固定文件夹):https://pan.baidu.com/netdisk/share?surl=NsJTkXQSqn07QVQm8iS_qQ


1.0.1: stable on small GPUs, training that works the way you pick photos, and no re-running old frames.

What changed

Faster, leaner on VRAM

  • New 384 px mask tier: a 2 GB card now runs steadily, 0.39 s per photo measured (768 is 0.77 s)
  • Out of VRAM still degrades gracefully and flags degraded — never a silently wrong box
  • Per-photo timing is written to data/perf.log

Training tab

  • Each folder shows (N photos) — exactly what you added, and you can train only the frames you picked
  • Fixed "hundreds of pairs but it says fewer than 50": burst de-duplication had collapsed 533 pairs into 29
  • Extraction results are cached; adding new photos no longer re-runs the old ones
  • Pause / resume while training
  • Switching to the freshly trained model is automatic; a deleted model file falls back to the built-in one
  • "Reset to initial state" keeps the models you trained

Interface

  • Exposure preview follows the live-preview switch, restoring its previous state
  • Two white seams in dark mode fixed (splitter handles)
  • Logo is now a transparent cut-out of the insect itself
  • About tab gained Check for updates, wired to version.json
  • Language switch no longer leaves Chinese in the version line, empty-selection label or training rows

Download

  1. Get iKunInsectStudio_v1.0.1.zip.001, .002 and join-parts.bat into one folder
  2. Run join-parts.bat → iKunInsectStudio_v1.0.1.zip
  3. Unzip, keep the whole folder together, double-click iKunInsectStudio.exe
  4. Upgrading from 1.0.0: replace exe and _internal\ only, keep data\ (your trained models and head corrections live there)

Windows 10/11 with an NVIDIA GPU (4 GB VRAM; 2 GB works at 384).

Prefer the GitHub parts above. Use the Baidu Netdisk mirror only when GitHub is slow or the transfer keeps dropping (code 8848, permanent folder): https://pan.baidu.com/netdisk/share?surl=NsJTkXQSqn07QVQm8iS_qQ

iKun Insect Studio 1.0.0

Choose a tag to compare

@Inccc-zty Inccc-zty released this 24 Nov 14:27

批量处理昆虫 RAW 原始照片:自动裁切 + 自动曝光,结果写成 Lightroom 的 .xmp,导入即生效。

外拍一天回来,每个个体都要留一张记录。微距题材里虫子天生在画面中偏小,于是最费时间的不是那几张大片,而是剩下几十上百张的重复裁切和重复调曝光。这个软件把那部分收成一步:拖进文件夹,每张给一个裁切框和一次曝光。

裁切和曝光都可能出错,没有一个是 100% 准的。它的价值不是"准",是把重复劳动从几小时压到几分钟。

下载

  1. 下载 iKunInsectStudio_v1.0.0.zip.001、.002 和 join-parts.bat,放同一个文件夹
  2. 双击 join-parts.bat,得到 iKunInsectStudio_v1.0.0.zip(2.62 GB)
  3. 解压 → 双击 iKunInsectStudio.exe(整个文件夹要一起留着)

需要 Windows 10/11 + NVIDIA 显卡(4 GB 显存起)。首次启动预读模型约 10–20 秒。

下载优先用上面的 GitHub 分卷。只有 GitHub 慢、或者下到一半断了,再用百度网盘(提取码 8848,固定文件夹):https://pan.baidu.com/netdisk/share?surl=NsJTkXQSqn07QVQm8iS_qQ


Batch-process insect RAW photos: automatic crop and exposure, written as a Lightroom .xmp that applies on import.

A day out shooting means one record frame per individual. In macro work the insect is always small in the frame, so the hours go into the ninety record shots — crop after crop, exposure after exposure — not the five keepers. This tool folds that into one step: drop a folder in, and every frame gets a crop box and an exposure value.

Crop and exposure can both be wrong — nothing here is 100%. The value is not accuracy, it is turning hours of repetitive editing into minutes.

Download

  1. Get iKunInsectStudio_v1.0.0.zip.001, .002 and join-parts.bat into one folder
  2. Run join-parts.bat → iKunInsectStudio_v1.0.0.zip (2.62 GB)
  3. Unzip, keep the whole folder together, double-click iKunInsectStudio.exe

Windows 10/11 with an NVIDIA GPU (4 GB VRAM and up). Models preload for ~10–20 s on first launch.

Prefer the GitHub parts above. Use the Baidu Netdisk mirror only when GitHub is slow or the transfer keeps dropping (code 8848, permanent folder): https://pan.baidu.com/netdisk/share?surl=NsJTkXQSqn07QVQm8iS_qQ