fix: 修复 Anima 模型下载脚本创建嵌套目录的问题#23
Merged
wochenlong merged 1 commit intoMay 21, 2026
Merged
Conversation
wochenlong
approved these changes
May 21, 2026
Owner
wochenlong
left a comment
There was a problem hiding this comment.
修复思路正确:根据 bat 所在位置解析训练器根目录,避免固定拼接 SD-Trainer 导致套娃路径。已确认改动范围只影响 Download-Anima-Model.bat 模板,和当前启动脚本拆分无冲突。后续可再补回中英双语提示,但不阻塞合并。
wochenlong
added a commit
that referenced
this pull request
May 22, 2026
- Prefetch wd14-convnextv2-v2 on install-cn, run_gui_source, and portable build/launch - Add install_preflight.ps1; portable launchers under scripts/portable/ - Move legacy CLI/notebooks; autodl scripts under scripts/autodl/; docs layout cleanup - CONTRIBUTORS: credit niangao2331 for Download-Anima-Model.bat fix (#23) Co-authored-by: Cursor <cursoragent@cursor.com>
6 tasks
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.
Fixes #22
发现
反馈
Download-Anima-Model.bat在下载 Anima 模型时,会在训练器目录内再次创建一层SD-Trainer,形成类似SD-Trainer-v2.3.0\SD-Trainer\SD-Trainer的套娃目录。排查后发现,脚本原先固定使用
%~dp0SD-Trainer\sd-models\anima作为模型保存目录。当 bat 文件本身已经位于SD-Trainer目录内时,这个固定拼接会把路径变成SD-Trainer\SD-Trainer\sd-models\anima。改动
gui.py,则认为当前目录就是训练器目录。SD-Trainer\gui.py,则认为当前目录是整合包根目录。预期效果
无论用户从整合包根目录运行
Download-Anima-Model.bat,还是把它放在SD-Trainer目录内运行,模型都会下载到正确的sd-models\anima目录,不会再生成SD-Trainer\SD-Trainer嵌套目录。