HRNet-Image-Classification icon indicating copy to clipboard operation
HRNet-Image-Classification copied to clipboard

Torch.jit.script not working with this model

Open WaterKnight1998 opened this issue 5 years ago • 2 comments

I have tried to convert this model to TorchScript using torch.jit.script. However, I am getting this issue:

RuntimeError: 
Expected integer literal for index:
  File "/home/david/Documents/pry/models/archs/hrnet.py", line 228

        for i in range(self.num_branches):
            x[i] = self.branches[i](x[i])
                   ~~~~~~~~~~~~~~~ <--- HERE

        x_fuse = []

WaterKnight1998 avatar May 28 '20 16:05 WaterKnight1998

@WaterKnight1998 Did you manage to solve it?

kbegiedza avatar Jul 23 '20 08:07 kbegiedza

same problem

nistarlwc avatar Jun 01 '21 02:06 nistarlwc