Skip to content

Commit e3b28aa

Browse files
Update dense_file_manager.py
Enhanced the JSON validation error dialogs for dense description file managers by appending modality-specific Hugging Face download links to guide users to the correct dataset formats.
1 parent 89ed62f commit e3b28aa

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

annotation_tool/controllers/dense_description/dense_file_manager.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,18 @@ def load_project(self, data, file_path):
7272
if len(error_msg) > 1000:
7373
error_msg = error_msg[:1000] + "\n... (truncated)"
7474

75+
error_text = (
76+
"The imported JSON contains critical errors and cannot be loaded.\n\n"
77+
f"{error_msg}\n\n"
78+
"--------------------------------------------------\n"
79+
"💡 Please download the correct Dense Description JSON format from:\n"
80+
"https://huggingface.co/datasets/OpenSportsLab/soccernetpro-densedescription-sndvc"
81+
)
82+
7583
QMessageBox.critical(
7684
self.main,
7785
"Validation Error (Dense Description)",
78-
"The imported JSON contains critical errors and cannot be loaded.\n\n" + error_msg,
86+
error_text,
7987
)
8088
return False
8189

0 commit comments

Comments
 (0)