bigmindapp
bigmindapp
By the way, if I loaded with a pretrained model, would i need to run pytorch.jit.trace before ct.convert? Confused
now i changed the input to tensor like below: ``` def forward(self, masked_frames, num_local_frames): l_t = num_local_frames.item() b, t, ori_c, ori_h, ori_w = masked_frames.size() # normalization before feeding into the...
> I'm a little confused here. I'm sure I understand all your questions. > > If you're getting the error: `ModuleNotFoundError: No module named 'torch'`, this is a problem with...
conda install pytorch==1.5.1 torchvision==0.6.1 torchaudio==0.7.2 cudatoolkit -c pytorch + coremltools=5.1 ``` File "/Users/mac/opt/anaconda3/envs/e2fgvi36/lib/python3.6/site-packages/coremltools/converters/mil/mil/builder.py", line 198, in placeholder return Placeholder(shape, dtype) File "/Users/mac/opt/anaconda3/envs/e2fgvi36/lib/python3.6/site-packages/coremltools/converters/mil/mil/program.py", line 92, in __init__ raise ValueError('Rank-0 (input {})...
Then i upgrade the pytorch to 1.7.1 conda install pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 cudatoolkit -c pytorch. With coremltools from 4.1 to 6.0b2 There are still many errors. Headache conda install pytorch==1.7.1...
> I'm a little confused here. I'm sure I understand all your questions. > > If you're getting the error: `ModuleNotFoundError: No module named 'torch'`, this is a problem with...
the ModulatedDeformConv2dFunction is subclass of torch.autograd.Function. I found there are many issues about exporting torch.autograd.Function failed. It might be a problem which should be solved.
> the ModulatedDeformConv2dFunction is subclass of torch.autograd.Function. > I found there are many issues about exporting torch.autograd.Function failed. > It might be a problem which should be solved. Thanks TobyRoseman,...
I encounter this problem, when convert to coreml. ``` File "/Users/mac/opt/anaconda3/envs/e2fgvi36/lib/python3.6/site-packages/coremltools/converters/mil/frontend/torch/ops.py", line 88, in convert_nodes "PyTorch convert function for op '{}' not implemented.".format(node.kind) RuntimeError: PyTorch convert function for op 'pythonop'...
I run the converter in Google Colab, with pytorch 1.11.0 + coremltools6.0b1, the error is the same, `%feat_prop.2 = pythonop[inplace=0](%x.20, %offset.2, %mask.2, %feat_prop_module.deform_align.backward_.weight, %feat_prop_module.deform_align.backward_.bias)` ``` File "/Users/mac/opt/anaconda3/envs/e2fgvi36/lib/python3.6/site-packages/coremltools/converters/mil/frontend/torch/ops.py", line 88, in...