修改了 quick_start.sh和get_normal.py两个文件中存在错误的地方#8
Open
EchoTreee wants to merge 2 commits intoTHU-SI:mainfrom
Open
修改了 quick_start.sh和get_normal.py两个文件中存在错误的地方#8EchoTreee wants to merge 2 commits intoTHU-SI:mainfrom
EchoTreee wants to merge 2 commits intoTHU-SI:mainfrom
Conversation
quick_start.sh 的纯文本未注释:原脚本中有一行: RGB video interpolation 它不是注释,shell 会把它当命令执行。 解决方法: 已将相关说明文字修为注释。 原脚本写的是: ./CogVideo-X 但实际更合理的目录命名应为: ./CogVideoX-ft 否则 diffusers 会将 ./CogVideo-X 当作非法 Hugging Face repo id 处理。 解决方法: 已修正 quick_start.sh 中的默认路径。
原代码中硬编码: /home/lff/bigdata1/cjw/model_cache 这显然是作者本地机器路径,导致在当前机器上调用 StableNormal 时失败。 解决方法: 已将 get_normal.py 改为使用当前用户目录下的本地缓存: ~/.cache/langscenex_models 这让代码变为可移植状态。
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.
quick_start.sh 的纯文本未注释
原脚本中有一行:
RGB video interpolation
它不是注释,shell 会把它当命令执行。
解决方法:
已将相关说明文字修为注释。
quick_start.sh 中 CogVideo 目录名不正确
原脚本写的是:
./CogVideo-X
但实际更合理的目录命名应为:
./CogVideoX-ft
否则 diffusers 会将 ./CogVideo-X 当作非法 Hugging Face repo id 处理。
解决方法:
已修正 quick_start.sh 中的默认路径。
get_normal.py 使用作者机器上的绝对缓存路径
原代码中硬编码:
/home/lff/bigdata1/cjw/model_cache
这显然是作者本地机器路径,导致在当前机器上调用 StableNormal 时失败。
解决方法:
已将 get_normal.py 改为使用当前用户目录下的本地缓存:
~/.cache/langscenex_models
这让代码变为可移植状态。