Skip to content

add create_dataset_classifier.py#5

Open
TrifonovRoman wants to merge 2 commits into
mainfrom
task5
Open

add create_dataset_classifier.py#5
TrifonovRoman wants to merge 2 commits into
mainfrom
task5

Conversation

@TrifonovRoman

Copy link
Copy Markdown
Owner

No description provided.

@TrifonovRoman TrifonovRoman requested a review from Dann38 October 16, 2024 05:52

blocks = [ImageSegment(dict_p_size=bl) for bl in publaynet_rez]

subgraphs = get_subgraphs_from_blocks(blocks, graph)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add label from array [bl.label for bl in publaynet_rez]

Comment thread scr/create_dataset_classifier.py Outdated
N = len(files)

for i, json_file in enumerate(files):
subgraphs = get_graphs_from_file(os.path.join(args.path_dir_jsons, json_file))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add try for read json file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants