AlibabaResearch / AlibabaResearch/AdvancedLiterateMachinery

TypeError in create_grid_input.py: Mismatch in save_pkl_file arguments

オープン
#157 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C++
スター
1.8k
フォーク
195
PR マージ指標
30日以内にマージされた PR はありません

説明

# TypeError in create_grid_input.py: Mismatch in save_pkl_file arguments

## Issue Summary
A TypeError is occurring in the `create_grid_input.py` script due to a mismatch between the number of arguments in the `save_pkl_file()` function definition and its usage.

## Detailed Description
When running the `create_grid_input.py` script, the following error is encountered:

```
File "/Users/i_manav.gupta/VGT_V4/VGT/object_detection/create_grid_input.py", line 215, in
save_pkl_file(grid, args.output, f"page_{page}", page, args.model)
TypeError: save_pkl_file() takes from 3 to 4 positional arguments but 5 were given
```

This error indicates that the `save_pkl_file()` function is being called with 5 arguments, but its definition only accepts 3 to 4 arguments.

## Root Cause
The root cause of this issue appears to be a discrepancy between how the `save_pkl_file()` function is defined and how it's being called in the script.

## Impact
This error prevents the script from executing successfully, which likely interrupts the process of creating grid inputs for the object detection module.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。