Skip to content

Conversation

@ijufumi
Copy link
Contributor

@ijufumi ijufumi commented Feb 23, 2022

対応内容

  • multi imageとvideoのupdate機能を追加
  • Formatterによるエラーの対応
  • typoの修正

関連Issue

関連PR

@ijufumi ijufumi self-assigned this Feb 23, 2022
@ijufumi ijufumi changed the title [WIP] Add update function of video and multi-image Add update function of video and multi-image Feb 25, 2022
project is slug of your project. (Required)
task_name is a task name. (Required)
project is slug of your project (Required).
Copy link
Contributor Author

Choose a reason for hiding this comment

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

linterで1つのパラメータが1行で収まらないものがあるので、パラメータごとの終わりを認識しやすいように、ピリオドを () の後につけるようにしました。

for p in glob.glob(
os.path.join(dataset_folder_path, "**/*"), recursive=True
)
if re.search(r"/*\.({})".format("|".join(image_types)), str(p))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

\. がlinterで警告出てたので、 r をつけるようにしました。

def find_image_classification_task(self, task_id: str) -> dict:
"""
Find a signle image classification task.
Find a single image classification task.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

気づいたところの typo を修正しました。

return self.api.get_request(endpoint)

def find_image_classification_task_by_name(self, project: str, task_name: str) -> dict:
def find_image_classification_task_by_name(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

formatter による差分です

) -> list:
"""
Returns a list of image tasks.
Returns up to 1000 at a time, to get more, set offset as the starting position to fetch.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

maxlength にかかったので、修正しています(他も同様)

for p in glob.glob(
os.path.join(dataset_folder_path, "**/*.txt"), recursive=True
)
if re.search(r"/*\.txt", str(p))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

\. がlinterで警告出てたので、 r をつけるようにしました。

eisuke-ueta
eisuke-ueta previously approved these changes Mar 4, 2022
Copy link
Contributor

@eisuke-ueta eisuke-ueta left a comment

Choose a reason for hiding this comment

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

LGTM

API側がproductionにマージされたらマージ。

@ryoKaz
Copy link
Contributor

ryoKaz commented Mar 5, 2022

@eisuke-ueta cc: @ijufumi
こちら動作確認完了してます!
9b8648d readmeの例そのまま使えるようにちょっと修正しました!)

@eisuke-ueta eisuke-ueta merged commit 384ad65 into develop Mar 5, 2022
@eisuke-ueta eisuke-ueta deleted the feature/1491-update-annotation branch March 5, 2022 08:03
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.

4 participants