Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

指令报错!

Aperta
#33 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python, pytorch

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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)

Lingua principale
Python
Stelle
2.3k
Fork
256
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di SkyworkAI/Matrix-Game

Tutte le issue di SkyworkAI/Matrix-Game

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.