์ฝ˜ํ…์ธ ๋กœ ๊ฑด๋„ˆ๋›ฐ๊ธฐ

Ultralytics HUB-SDK

Ultralytics HUB -SDK ๋ฌธ์„œ์— ์˜ค์‹  ๊ฒƒ์„ ํ™˜์˜ํ•ฉ๋‹ˆ๋‹ค! ๊ฐ•๋ ฅํ•œ ๋จธ์‹ ๋Ÿฌ๋‹ ๋„๊ตฌ์™€ ์„œ๋น„์Šค๋ฅผ Python ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์— ํ†ตํ•ฉํ•˜๊ณ ์ž ํ•œ๋‹ค๋ฉด ์ œ๋Œ€๋กœ ์ฐพ์•„ ์˜ค์…จ์Šต๋‹ˆ๋‹ค. AI ์• ํ˜ธ๊ฐ€, ์ˆ™๋ จ๋œ ๋จธ์‹  ๋Ÿฌ๋‹ ์‹ค๋ฌด์ž, Ultralytics ์„œ๋น„์Šค์˜ ๊ธฐ๋Šฅ์„ ํ™œ์šฉํ•˜๊ณ ์ž ํ•˜๋Š” ์†Œํ”„ํŠธ์›จ์–ด ๊ฐœ๋ฐœ์ž์ด๋“  ๊ด€๊ณ„์—†์ด SDK๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ์‰ฝ๊ณ  ํšจ์œจ์ ์œผ๋กœ ์ž‘์—…ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์นœ์ ˆํ•˜๊ณ  ์ „๋ฌธ์ ์ธ ์„ค๋ช…์„œ๊ฐ€ HUB-SDK ์„ค์น˜๋ถ€ํ„ฐ ์ˆ™๋‹ฌ๊นŒ์ง€์˜ ์—ฌ์ •์„ ์•ˆ๋‚ดํ•ฉ๋‹ˆ๋‹ค. ์ด์ œ ํ”„๋กœ์ ํŠธ์—์„œ Ultralytics ์ƒํƒœ๊ณ„์˜ ๋ชจ๋“  ๊ธฐ๋Šฅ์„ ํ™œ์šฉํ•ด ๋ณด์„ธ์š”!

์‹œ์ž‘ ์œ„์น˜

HUB-SDK๋กœ ์‹œ์ž‘ํ•  ์ค€๋น„๊ฐ€ ๋˜์…จ๋‚˜์š”? ๋น ๋ฅธ ์‹œ์ž‘ ๊ฐ€์ด๋“œ๋Š” Python ํ™˜๊ฒฝ์—์„œ SDK๋ฅผ ์„ค์น˜ํ•˜๊ณ  ์ž‘๋™์‹œํ‚ค๋Š” ๊ฐ„๋‹จํ•œ ๊ฒฝ๋กœ๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

  • ๋ฐฉ๋ฌธ์„ ํ†ตํ•ด ๊ฐœ๋ฐœ์„ ๊ฐ€์†ํ™”ํ•˜๊ณ  ์„ค์ •์„ ๊ฐ„์†Œํ™”ํ•˜์„ธ์š”: ํ€ต์Šคํƒ€ํŠธ.

PyPI์—์„œ ์„ค์น˜

PyPI๋ฅผ ํ†ตํ•ด HUB-SDK์˜ ์•ˆ์ •์ ์ธ ์ตœ์‹  ๋ฆด๋ฆฌ์Šค์— ์•ก์„ธ์Šคํ•˜์„ธ์š”. ํ„ฐ๋ฏธ๋„/์…ธ์—์„œ ์•„๋ž˜ ๋ช…๋ น์„ ์‹คํ–‰ํ•˜๊ธฐ๋งŒ ํ•˜๋ฉด Python ํ”„๋กœ์ ํŠธ์— SDK๋ฅผ ์›ํ™œํ•˜๊ฒŒ ์ถ”๊ฐ€ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค:

pip install hub-sdk

์ด ๋ช…๋ น์„ ์‹คํ–‰ํ•˜๋ฉด SDK๊ฐ€ ๋‹ค์šด๋กœ๋“œ ๋ฐ ์„ค์น˜๋˜์–ด ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์—์„œ Ultralytics ์„œ๋น„์Šค์˜ ๊ธฐ๋Šฅ์„ ์ž ๊ธˆ ํ•ด์ œํ•ฉ๋‹ˆ๋‹ค.

HUBClient ์ดˆ๊ธฐํ™”

Ultralytics ์„œ๋น„์Šค์™€์˜ ํ†ตํ•ฉ์€ ์ดˆ๊ธฐํ™”๋ถ€ํ„ฐ ์‹œ์ž‘๋ฉ๋‹ˆ๋‹ค. HUBClient ๊ฐ์ฒด๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค. ์ด ์ค‘์ถ”์ ์ธ ๋‹จ๊ณ„๋Š” ํšŒ์›๋‹˜์˜ ์ฝ”๋“œ์™€ ์ €ํฌ API ์‚ฌ์ด์— ๋‹ค๋ฆฌ๋ฅผ ๋†“๋Š” ์—ญํ• ์„ ํ•˜๋ฉฐ, ์ธ์ฆ์„ ์œ„ํ•ด ์ ์ ˆํ•œ ์ž๊ฒฉ ์ฆ๋ช…์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค. ํ‘œ์ค€ API ํ‚ค ๋ฐฉ๋ฒ•์„ ์„ ํƒํ•˜๊ฑฐ๋‚˜ ์ด๋ฉ”์ผ๊ณผ ๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ํ•จ๊ป˜ ์„ค์ •ํ•ด ๋ด…์‹œ๋‹ค! ๐Ÿš€

์˜ต์…˜ 1: API ํ‚ค ์‚ฌ์šฉ

API ํ‚ค์˜ ๋‹จ์ˆœ์„ฑ์„ ํ™œ์šฉํ•˜๋ ค๋ฉด ๋‹ค์Œ๊ณผ ๊ฐ™์ด ํ‚ค๊ฐ€ ํฌํ•จ๋œ ์‚ฌ์ „์„ ์ค€๋น„ํ•˜์„ธ์š”:

credentials = {"api_key": "<YOUR-API-KEY>"}
# Replace <YOUR-API-KEY> with the actual key provided to you by Ultralytics.

API ํ‚ค๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ํ”„๋กœ๊ทธ๋ž˜๋งคํ‹ฑ ์•ก์„ธ์Šค์— ์ ํ•ฉํ•œ ์ผ๋ฐ˜์ ์ธ ์ธ์ฆ ๋ฐฉ๋ฒ•์„ ์„ ํƒํ•˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค. ์‹ ์†ํ•˜๊ณ  ์•ˆ์ „ํ•œ ์„œ๋น„์Šค ์ƒํ˜ธ ์ž‘์šฉ์„ ์œ„ํ•ด ํ‚ค๋ฅผ ํ”„๋ ˆ์ž„์›Œํฌ์— ์ง์ ‘ ํ†ตํ•ฉํ•ด์•ผ ํ•˜๋Š” ์‹œ๋‚˜๋ฆฌ์˜ค์— ์ ํ•ฉํ•ฉ๋‹ˆ๋‹ค.

์˜ต์…˜ 2: ์ด๋ฉ”์ผ ๋ฐ ๋น„๋ฐ€๋ฒˆํ˜ธ ์‚ฌ์šฉ

๊ณ„์ • ์ž๊ฒฉ ์ฆ๋ช…์„ ํ™œ์šฉํ•˜๊ณ  ์‹ถ์œผ์‹ ๊ฐ€์š”? ๋‹ค์Œ๊ณผ ๊ฐ™์ด HUBClient ์ž๊ฒฉ์ฆ๋ช… ์‚ฌ์ „์—์„œ ์ด๋ฉ”์ผ๊ณผ ๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค:

credentials = {"email": "<YOUR-EMAIL>", "password": "<YOUR-PASSWORD>"}
# Replace <YOUR-EMAIL> with your email address and <YOUR-PASSWORD> with your password.

์ด๋ฉ”์ผ๊ณผ ๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์€ ๊ธฐ์กด ๋กœ๊ทธ์ธ ํ™˜๊ฒฝ์„ ์›ํ•˜๊ฑฐ๋‚˜ Ultralytics ๊ณ„์ •์— ์—ฐ๊ฒฐ๋œ ๊ฐœ์ธํ™”๋œ ๊ธฐ๋Šฅ์„ ํ™œ์šฉํ•˜๋ ค๋Š” ๊ฒฝ์šฐ ํŽธ๋ฆฌํ•œ ์„ ํƒ์ž…๋‹ˆ๋‹ค.

๋ชจ๋“  ๊ฒƒ์„ ํ•˜๋‚˜๋กœ ๋ชจ์œผ๊ธฐ

์ด์ œ ์ž๊ฒฉ ์ฆ๋ช…์ด ์ค€๋น„๋˜์—ˆ์œผ๋ฏ€๋กœ ๋‹ค์Œ์„ ์‹œ์ž‘ํ•˜์„ธ์š”. HUBClient:

client = HUBClient(credentials)
# The HUBClient is now initialized with your chosen authentication method.

์ด ์ค‘์š”ํ•œ ์ฝ”๋“œ ๋ผ์ธ์€ HUBClient์˜ ์ƒˆ๋กœ์šด ์ธ์Šคํ„ด์Šค๋ฅผ ์ƒ์„ฑํ•˜์—ฌ Ultralytics ํ”Œ๋žซํผ์—์„œ ์ œ๊ณตํ•˜๋Š” ๋ฐฉ๋Œ€ํ•œ ์„œ๋น„์Šค์— ์—ฐ๊ฒฐํ•ฉ๋‹ˆ๋‹ค. ์ธ์ฆ ์„ธ๋ถ€ ์ •๋ณด๊ฐ€ ์•ˆ์ „ํ•˜๊ฒŒ ์„ค์ •๋˜์—ˆ์œผ๋ฏ€๋กœ ์ด์ œ ๋ชจ๋“  ๊ธฐ๋Šฅ์„ ์†์‰ฝ๊ฒŒ ํƒ์ƒ‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค!


Ultralytics HUB -SDK๋ฅผ ์„ค์ •ํ•˜์‹  ๊ฒƒ์„ ์ถ•ํ•˜๋“œ๋ฆฝ๋‹ˆ๋‹ค! ์ด์ œ ์ตœ์ฒจ๋‹จ ๋จธ์‹  ๋Ÿฌ๋‹ ์„œ๋น„์Šค๋ฅผ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์— ํ†ตํ•ฉํ•˜๊ธฐ ์œ„ํ•œ ์—ฌ์ •์„ ์‹œ์ž‘ํ•  ์ค€๋น„๊ฐ€ ์™„๋ฃŒ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ํŠน์ • API ์‚ฌ์šฉ์— ๋Œ€ํ•œ ์ง€์นจ์€ ์ถ”๊ฐ€ ์„ค๋ช…์„œ๋ฅผ ์‚ดํŽด๋ณด๊ณ , ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•˜๋ฉด ์ปค๋ฎค๋‹ˆํ‹ฐ ํฌ๋Ÿผ์„ ์ฐธ์กฐํ•˜์„ธ์š”. ์ฆ๊ฑฐ์šด ์ฝ”๋”ฉ, ๊ทธ๋ฆฌ๊ณ  Ultralytics ์˜ ํž˜์œผ๋กœ ํ”„๋กœ์ ํŠธ๊ฐ€ ๋ฒˆ์ฐฝํ•˜๊ธธ ๋ฐ”๋ž๋‹ˆ๋‹ค! ๐ŸŒŸ


๋Œ“๊ธ€