Spaces:
Running
on
Zero
Running
on
Zero
fix timm import error
Browse files
annotator/midas/midas/vit.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import torch
|
2 |
import torch.nn as nn
|
|
|
3 |
import timm
|
4 |
import types
|
5 |
import math
|
|
|
1 |
import torch
|
2 |
import torch.nn as nn
|
3 |
+
torch.jit.script = lambda f: f
|
4 |
import timm
|
5 |
import types
|
6 |
import math
|