Closed lpj0822 closed 2 years ago
@foww-0001 这个需要马上处理以下
Error compiling Cython file:
------------------------------------------------------------
...
from easyai.model_block.base_block.utility.utility_layer import FcLayer, ActivationLayer
from easyai.model_block.base_block.utility.utility_block import FcActivationBlock
from easyai.model_block.base_block.utility.pooling_layer import MultiROIPooling
class MultiROIBoxHead(BaseBlock):
^
------------------------------------------------------------
easyai/model_block/head/det2d/roi_box_head.py:12:22: undeclared name not builtin: BaseBlock
其他的也粘贴过来
Error compiling Cython file:
------------------------------------------------------------
...
self.fc1 = FcLayer(input_size, out_channels)
self.activate = ActivationLayer(activation_name=activation_name)
self.fc2 = FcActivationBlock(out_channels, out_channels,
activationName=activation_name)
self.cls_score = nn.Linear(out_channels, class_number)
^
------------------------------------------------------------
easyai/model_block/head/det2d/roi_box_head.py:28:25: undeclared name not builtin: nn
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/Cython/Build/Dependencies.py", line 1249, in cythonize_one_helper
return cythonize_one(*m)
File "/usr/local/lib/python3.6/dist-packages/Cython/Build/Dependencies.py", line 1225, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: easyai/model_block/head/det2d/roi_box_head.py
[354/547] Cythonizing easyai/model_block/head/det2d/rpn_head.py
Error compiling Cython file:
------------------------------------------------------------
...
from easyai.name_manager import ActivationType
from easyai.name_manager import HeadType
from easyai.model_block.base_block.utility.utility_block import ConvActivationBlock
class MultiRPNHead(BaseBlock):
^
------------------------------------------------------------
easyai/model_block/head/det2d/rpn_head.py:11:19: undeclared name not builtin: BaseBlock
Error compiling Cython file:
------------------------------------------------------------
...
kernel_size=1,
stride=1,
padding=0,
activationName=ActivationType.Sigmoid)
self.bbox_pred = nn.Conv2d(input_channle, anchor_number * 4,
^
------------------------------------------------------------
easyai/model_block/head/det2d/rpn_head.py:30:25: undeclared name not builtin: nn
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/Cython/Build/Dependencies.py", line 1249, in cythonize_one_helper
return cythonize_one(*m)
File "/usr/local/lib/python3.6/dist-packages/Cython/Build/Dependencies.py", line 1225, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: easyai/model_block/head/det2d/rpn_head.py
[355/547] Cythonizing easyai/model_block/head/det2d/ssd_box_head.py
[356/547] Cythonizing easyai/model_block/head/keypoint2d/face_landmark_head.py
Error compiling Cython file:
------------------------------------------------------------
...
from easyai.name_manager import HeadType
from easyai.name_manager import ActivationType
from easyai.model_block.base_block.utility.utility_block import FcActivationBlock
class FaceLandmarkHead(BaseBlock):
^
------------------------------------------------------------
easyai/model_block/head/keypoint2d/face_landmark_head.py:11:23: undeclared name not builtin: BaseBlock
Error compiling Cython file:
------------------------------------------------------------
...
class FaceLandmarkHead(BaseBlock):
def __init__(self, input_channle, class_number=3,
points_count=68, left_count=39):
super().__init__(HeadType.FaceLandmarkHead)
self.fc_ldmk = nn.Linear(input_channle, points_count*2)
^
------------------------------------------------------------
easyai/model_block/head/keypoint2d/face_landmark_head.py:16:23: undeclared name not builtin: nn
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/Cython/Build/Dependencies.py", line 1249, in cythonize_one_helper
return cythonize_one(*m)
File "/usr/local/lib/python3.6/dist-packages/Cython/Build/Dependencies.py", line 1225, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: easyai/model_block/head/keypoint2d/face_landmark_head.py
[357/547] Cythonizing easyai/model_block/head/keypoint2d/roi_keypoint_head.py
Error compiling Cython file:
------------------------------------------------------------
...
from easyai.model_block.base_block.utility.upsample_layer import Upsample
from easyai.model_block.base_block.utility.utility_block import ConvActivationBlock
from easyai.model_block.base_block.utility.pooling_layer import MultiROIPooling
class MultiROIKeypointHead(BaseBlock):
^
------------------------------------------------------------
easyai/model_block/head/keypoint2d/roi_keypoint_head.py:12:27: undeclared name not builtin: BaseBlock
Error compiling Cython file:
------------------------------------------------------------
...
temp_block = ConvActivationBlock(next_feature, layer_features,
kernel_size=3, stride=1, padding=1,
activationName=activation_name)
self.blocks.append((layer_name, temp_block))
next_feature = layer_features
self.conv_blocks = nn.Sequential(*blocks)
^
------------------------------------------------------------
easyai/model_block/head/keypoint2d/roi_keypoint_head.py:32:27: undeclared name not builtin: nn
Error compiling Cython file:
------------------------------------------------------------
...
activationName=activation_name)
self.blocks.append((layer_name, temp_block))
next_feature = layer_features
self.conv_blocks = nn.Sequential(*blocks)
self.keypoints_score = torch.nn.ConvTranspose2d(in_channels=next_feature,
^
------------------------------------------------------------
easyai/model_block/head/keypoint2d/roi_keypoint_head.py:34:31: undeclared name not builtin: torch
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/Cython/Build/Dependencies.py", line 1249, in cythonize_one_helper
return cythonize_one(*m)
File "/usr/local/lib/python3.6/dist-packages/Cython/Build/Dependencies.py", line 1225, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: easyai/model_block/head/keypoint2d/roi_keypoint_head.py
[358/547] Cythonizing easyai/model_block/head/ocr/seq2seq_head.py
[359/547] Cythonizing easyai/model_block/head/ocr/text_attention_head.py
[360/547] Cythonizing easyai/model_block/head/seg/db_head.py
[361/547] Cythonizing easyai/model_block/head/seg/roi_mask_head.py
Error compiling Cython file:
------------------------------------------------------------
...
from easyai.name_manager import HeadType
from easyai.model_block.base_block.utility.utility_block import ConvActivationBlock
from easyai.model_block.base_block.utility.pooling_layer import MultiROIPooling
class MultiROIMaskHead(BaseBlock):
^
------------------------------------------------------------
easyai/model_block/head/seg/roi_mask_head.py:11:23: undeclared name not builtin: BaseBlock
Error compiling Cython file:
------------------------------------------------------------
...
kernel_size=3, stride=1, padding=1,
dilation=1,
activationName=activation_name)
self.blocks.append((layer_name, temp_block))
next_feature = layer_features
self.conv_blocks = nn.Sequential(*blocks)
^
------------------------------------------------------------
easyai/model_block/head/seg/roi_mask_head.py:33:27: undeclared name not builtin: nn
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/Cython/Build/Dependencies.py", line 1249, in cythonize_one_helper
return cythonize_one(*m)
File "/usr/local/lib/python3.6/dist-packages/Cython/Build/Dependencies.py", line 1225, in cythonize_one
raise CompileError(None, pyx_file)
Error compiling Cython file:
------------------------------------------------------------
...
def get_input_names(self):
set_input = set()
set_initializer = set()
for ipt in self.model.graph.input:
set_input.add(ipt.name)
for x in model.graph.initializer:
^
------------------------------------------------------------
easy_converter/onnx_process/onnx_tools.py:28:17: undeclared name not builtin: model
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/Cython/Build/Dependencies.py", line 1249, in cythonize_one_helper
return cythonize_one(*m)
File "/usr/local/lib/python3.6/dist-packages/Cython/Build/Dependencies.py", line 1225, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: easy_converter/onnx_process/onnx_tools.py
这个已经打包完成。
1.easyai 2.easy_convert 3.easy_tools