hzwer / hzwer/Practical-RIFE

如何转换模型为TorchScript格式?

Open
#20 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1k
Forks
131
PR merge metrics
No merged PRs in 30d

Description

你好:

我写了个python脚本来转换模型为torchscript格式(cvtTorchScript.zip),当我用torch.script.trace()函数转换时发生错误,报告系统内存不够(错误信息,torch.jit.trace.zip),然后我改用torch.jit.script()来转换,同样发生错误(错误信息torch.jit.script.zip),所以请问下我该如何转换模型为TorchScript格式,谢谢!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining cvtTorchScript.zip and the attached torch.jit.trace.zip and torch.jit.script.zip error reports. Reproduce both conversion attempts with torch.jit.trace() and torch.jit.script(), then determine why each exhausts system memory. Done means the model converts successfully to TorchScript without the reported memory failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.