Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行app.py时会删除下载好的与训练文件并重新下载 #27

Open
UraLee opened this issue Nov 22, 2024 · 1 comment
Open

Comments

@UraLee
Copy link

UraLee commented Nov 22, 2024

为什么我在hugging face上面手动下载好的checkpoint每次都会在运行app.py时都会被删除,并且又再次在线下载,结果就是导致在线下载文件太大,网络不稳定,下载不成功。有没有什么解决方法,感谢!

@sky24h
Copy link
Collaborator

sky24h commented Nov 22, 2024

app.py在最初会运行以下函数进行下载:

TANGO/app.py

Line 30 in e24a2f4

download_files_from_repo()

检测标准是最后一个所需文件是否下载完成,所以我猜你是下载了部分但不是全部的checkpoint导致每次重新下载。

last_ckpt_path = os.path.join(local_dir, "SMPLer-X/pretrained_models/smpler_x_s32.pth.tar")

如果你确定已经手动下载到所有需要的checkpoint,可以直接注释掉app.py里的这一行跳过下载过程。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants