Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

指令报错!

未关闭
#33 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
python, pytorch

调研方向

Start with inference.py at lines 39, 68, and 165, then inspect the safetensors/torch.py load_file call shown in the traceback. Run the exact inference command with the referenced checkpoint and verify that checkpoint loading completes without the device error and produces output in the requested folder.

由索引模型根据 Issue 内容生成。

描述

python inference.py --config_path configs/inference_yaml/inference_universal.yaml --checkpoint_path Matrix-Game-2.0 --img_path text2image.png --output_folder outputs --num_output_frames 150 --seed 42 --pretrained_model_path Matrix-Game-2.0
使用上面的指令 ,Matrix-Game-2.0 已经hf下来了

The config attributes {'inject_sample_info': False} were passed to CausalWanModel, but are not expected and will be ignored. Please verify your config.json configuration file.
KV inference with 3 frames per block
Loading Pretrained Model...
Traceback (most recent call last):
File "/home/dt/Matrix-Game/Matrix-Game-2/inference.py", line 169, in
main()
File "/home/dt/Matrix-Game/Matrix-Game-2/inference.py", line 165, in main
pipeline = InteractiveGameInference(args)
File "/home/dt/Matrix-Game/Matrix-Game-2/inference.py", line 39, in init
self._init_models()
File "/home/dt/Matrix-Game/Matrix-Game-2/inference.py", line 68, in _init_models
state_dict = load_file(self.args.checkpoint_path)
File "/home/dt/anaconda3/envs/unipic/lib/python3.10/site-packages/safetensors/torch.py", line 381, in load_file
with safe_open(filename, framework="pt", device=device) as f:
OSError: No such device (os error 19)

主要语言
Python
星标
2.4k
派生
257
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

SkyworkAI/Matrix-Game 的其他 Issue

查看 SkyworkAI/Matrix-Game 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。