-
Notifications
You must be signed in to change notification settings - Fork 4
SDKでリビジョン、バージョンを指定してデータセットを取得できる #194
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ReadMeにも仕様を追加してもらいたいです!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
READMEに追記してみました!
| version: str = None, | ||
| revision_id: str = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
両方指定されていたらエラーになるのが良いかなと思いましたがいかがでしょうか...?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
両方指定の場合はエラーとしました!
anegawa-j
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
すみません、1点コメントしました!
fastlabel/__init__.py
Outdated
| self, | ||
| dataset: str, | ||
| version: str = None, | ||
| tags: List[str] = [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| tags: List[str] = [], | |
| tags: List[str] = None, |
pythonにおいて、mutableなオブジェクトをデフォルト引数に与えると、副作用が発生する可能性があるので、Noneを指定して、関数内で tags = tags or [] という形で初期化する形で記述お願いします!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
対応済みです
(非常に勉強になります!!ありがとうございます。)
anegawa-j
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

概要
SDKでリビジョン、バージョンを指定してデータセットを取得できる
以下PRとセット
https://github.com/fastlabel/fastlabel-application/pull/4794
修正内容
その他仕様など
以下に記載
https://www.notion.so/fastlabel/SDK-578299c30b0f4152a4c41cdea562685e?pvs=4#c7a31ba0789843f58429048dfbb5925b