質問編集履歴

1

エラーを追記

2023/11/29 03:44

投稿

yasuuu
yasuuu

スコア9

test CHANGED
File without changes
test CHANGED
@@ -16,6 +16,29 @@
16
16
  ### 発生している問題・エラーメッセージ
17
17
 
18
18
  ```
19
+ AttributeError: Can't get attribute 'Conv2dNormActivation' on <module 'torchvision.ops.misc' from '/usr/local/lib/python3.9/site-packages/torchvision/ops/misc.py'>
20
+
21
+
22
+
23
+ Traceback (most recent call last):
24
+ File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2190, in wsgi_app
25
+ response = self.full_dispatch_request()
26
+ File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1486, in full_dispatch_request
27
+ rv = self.handle_user_exception(e)
28
+ File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1484, in full_dispatch_request
29
+ rv = self.dispatch_request()
30
+ File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1469, in dispatch_request
31
+ return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
32
+ File "/usr/local/lib/python3.9/site-packages/flask_login/utils.py", line 290, in decorated_view
33
+ return current_app.ensure_sync(func)(*args, **kwargs)
34
+ File "/usr/src/apps/detector/views.py", line 113, in detect
35
+ tags, detected_image_file_name = exec_detect(target_image_path)
36
+ File "/usr/src/apps/detector/views.py", line 264, in exec_detect
37
+ model = torch.load(Path(current_app.root_path, "detector", "model.pt"))
38
+ File "/usr/local/lib/python3.9/site-packages/torch/serialization.py", line 592, in load
39
+ return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
40
+ File "/usr/local/lib/python3.9/site-packages/torch/serialization.py", line 851, in _load
41
+ result = unpickler.load()
19
42
  AttributeError: Can't get attribute 'Conv2dNormActivation' on <module 'torchvision.ops.misc' from '/usr/local/lib/python3.9/site-packages/torchvision/ops/misc.py'>
20
43
  ```
21
44