Comments (4)
Unfortunately I have no plans to support TorchScript at the moment. I'm also not convinced that's the only problem, for example the computation of same padding could raise an error. If that's the case I suspect it would also be necessary to train the models from scratch in pytorch.
from movinet-pytorch.
The type hint issue was easy to get around but even more problematic is the use of einops
which appears to be noncompat with torchscript
from torch import nn
import torch
from einops import rearrange
class Foo(nn.Module):
def __init__(self):
super(Foo, self).__init__()
def forward(self, x):
return rearrange(x, 'a b -> b a')
torch.jit.script(Foo())
...
NotSupportedError: Compiled functions can't take variable number of arguments or use keyword-only arguments with defaults:
File "/Users/sean/standard/.env/lib/python3.6/site-packages/einops/einops.py", line 393
def rearrange(tensor, pattern: str, **axes_lengths):
~~~~~~~~~~~~~ <--- HERE
It looks like tracing may be compatible, though is more restrictive, per the issue on einops arogozhnikov/einops#115
foo = Foo()
traced_foo = torch.jit.trace(foo, torch.rand(3, 3))
from movinet-pytorch.
Is there any solution to this problem?
from movinet-pytorch.
I have a fork that modifies the models so that it can be exported to TorchScript or ONNX.
https://github.com/Subalzero/MoViNet-pytorch
from movinet-pytorch.
Related Issues (20)
- Using MoViNet in a dataset with variable-length videos HOT 1
- why don't you use 'T.Normalize' when you train HMDB51? HOT 1
- Neural network arch displayed by Netron is wrong HOT 7
- Tips for Implementing a3 ,a4,a5 movinets streaming version HOT 3
- Test model based on 'evaluate_stream' is ok, but do inference frame by frame is very different? HOT 2
- Validation Loss did not decrease in the HMDB51 notebook? HOT 9
- Modifying for binary classification HOT 2
- Kinetics 400 models HOT 1
- Very low validation accuracy with pretrained models! HOT 1
- F.ToFloatTensorInZeroOne not exist HOT 2
- 。
- There seems no implementation of positional_encoding HOT 4
- How can we access the stream buffer? HOT 1
- need to process HMDB51 dataset?
- got wrong results during test
- weight
- The parameters that trained on Charades.
- Kinetics400/600
- Training
- Training on the custom dataset HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from movinet-pytorch.