Replies: 1 comment
-
probably old torch version or messed up python environment |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Traceback (most recent call last):
File "testAcc.py", line 7, in
from timm.loss import LabelSmoothingCrossEntropy
File "/usr/local/lib/python3.8/site-packages/timm/init.py", line 2, in
from .layers import is_scriptable, is_exportable, set_scriptable, set_exportable
File "/usr/local/lib/python3.8/site-packages/timm/layers/init.py", line 6, in
from .classifier import ClassifierHead, create_classifier, NormMlpClassifierHead
File "/usr/local/lib/python3.8/site-packages/timm/layers/classifier.py", line 14, in
from .create_act import get_act_layer
File "/usr/local/lib/python3.8/site-packages/timm/layers/create_act.py", line 7, in
from .activations_jit import *
File "/usr/local/lib/python3.8/site-packages/timm/layers/activations_jit.py", line 26, in
def mish_jit(x, _inplace: bool = False):
File "/usr/local/lib64/python3.8/site-packages/torch/jit/_script.py", line 939, in script
fn = torch._C._jit_script_compile(
TypeError: Object of type 'module' is not an instance of 'function'
HOW TO FIX IT!!!!!!!!!!!!!!!
Beta Was this translation helpful? Give feedback.
All reactions