Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

调试代码错误 #70391

Open
1yuechu1 opened this issue Dec 21, 2024 · 2 comments
Open

调试代码错误 #70391

1yuechu1 opened this issue Dec 21, 2024 · 2 comments
Assignees
Labels

Comments

@1yuechu1
Copy link

请提出你的问题 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)

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

@FrostML
Copy link
Contributor

FrostML commented Dec 21, 2024

具体想要做什么?

@1yuechu1
Copy link
Author

具体想要做什么?

你好,我想进行调试,但是调试过程中会出现这个代码,不能跳转到具体调试的位置上

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants