Skip to content

调试代码错误 #70391

Open
Open
@1yuechu1

Description

请提出你的问题 Please ask your question

使用vscode进行代码调试的时候会出现

LOAD_GLOBAL(utils.utils), LOAD_METHOD(load_entire_model), LOAD_FAST(model), LOAD_FAST(model_path), CALL_METHOD{2}, POP_TOP
LOAD_FAST(model), LOAD_METHOD(eval), CALL_METHOD, POP_TOP
LOAD_GLOBAL(paddle.distributed), LOAD_METHOD(get_world_size), CALL_METHOD, STORE_FAST(nranks)
LOAD_GLOBAL(paddle.distributed), LOAD_METHOD(get_rank), CALL_METHOD, STORE_FAST(local_rank)
LOAD_FAST(nranks), LOAD_CONST(1), COMPARE_OP(>), POP_JUMP_IF_FALSE{62}
img_lists = partition_list(image_list, nranks), JUMP_FORWARD(to 68)

LOAD_FAST(image_list), BUILD_LIST{1}, STORE_FAST(img_lists)

LOAD_GLOBAL(|68|os.path), LOAD_METHOD(join), LOAD_FAST(save_dir), LOAD_CONST('added_prediction'), CALL_METHOD{2}, STORE_FAST(added_saved_dir)
LOAD_GLOBAL(os.path), LOAD_METHOD(join), LOAD_FAST(save_dir), LOAD_CONST('pseudo_color_prediction'), CALL_METHOD{2}, STORE_FAST(pred_saved_dir)

LOAD_GLOBAL(logger), LOAD_METHOD(info), LOAD_CONST('Start to predict...'), CALL_METHOD{1}, POP_TOP
LOAD_GLOBAL(progbar.Progbar), LOAD_GLOBAL(len), LOAD_FAST(img_lists), LOAD_CONST(0), BINARY_SUBSCR, CALL_FUNCTION{1}, LOAD_CONST(1), LOAD_CONST(('target', 'verbose')), CALL_FUNCTION_KW{2}, STORE_FAST(progbar_pred)
LOAD_GLOBAL(visualize.get_color_map_list), LOAD_CONST(256), LOAD_FAST(custom_color), LOAD_CONST(('custom_color',)), CALL_FUNCTION_KW{2}, STORE_FAST(color_map)
LOAD_GLOBAL(paddle), LOAD_METHOD(no_grad), CALL_METHOD, EXTENDED_ARG{1}, SETUP_WITH(to 636), POP_TOP
LOAD_GLOBAL(enumerate), LOAD_FAST(img_lists), LOAD_FAST(local_rank), BINARY_SUBSCR, CALL_FUNCTION{1}, GET_ITER, EXTENDED_ARG{1}, FOR_ITER(to 632), UNPACK_SEQUENCE{2}, STORE_FAST(i), STORE_FAST(im_path)
data = preprocess(im_path, transforms)

LOAD_FAST(aug_pred), POP_JUMP_IF_FALSE{234}
LOAD_GLOBAL(infer.aug_inference), LOAD_CONST(('trans_info', 'scales', 'flip_horizontal', 'flip_vertical', 'is_slide', 'stride', 'crop_size', 'use_multilabel')), CALL_FUNCTION_KW{10}, UNPACK_SEQUENCE{2}, STORE_FAST(pred), STORE_FAST(_), JUMP_FORWARD(to 270)
LOAD_FAST(model)
LOAD_FAST(data), LOAD_CONST('img'), BINARY_SUBSCR
LOAD_FAST(data), LOAD_CONST('trans_info'), BINARY_SUBSCR
LOAD_FAST(scales)
LOAD_FAST(flip_horizontal)
LOAD_FAST(flip_vertical)
LOAD_FAST(is_slide)
LOAD_FAST(stride)
LOAD_FAST(crop_size)
LOAD_FAST(use_multilabel)

但是不能进去调试,如果我想要进去调试应该如何操作呢,可以正常训练

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions