YOLO11 Albumentationã䜿çšããŠåŠç¿ããããã®ããŒã¿ã»ããã®åŒ·å
ã³ã³ãã¥ãŒã¿ããžã§ã³ã¢ãã«ãæ§ç¯ããå ŽåãåŠç¿ããŒã¿ã®è³ªãšå€æ§æ§ãã¢ãã«ã®æ§èœã«å€§ãã圱é¿ããŸããAlbumentationsã¯ãã¢ãã«ã®å®äžçã·ããªãªãžã®é©å¿èœåãåäžããããå¹ åºãç»åå€æãé©çšããããã®é«éã§æè»ãã€å¹ççãªæ¹æ³ãæäŸããŸãããšç°¡åã«çµ±åã§ã Ultralytics YOLO11ãšç°¡åã«çµ±åã§ããç©äœæ€åºãã»ã°ã¡ã³ããŒã·ã§ã³ãããã³åé¡ã¿ã¹ã¯çšã®å ç¢ãªããŒã¿ã»ãããäœæããã®ã«åœ¹ç«ã¡ãŸãã
Albumentationsã䜿çšããããšã§ã幟äœåŠçå€æãè²èª¿æŽã®ãããªãã¯ããã¯ã䜿çšããŠãYOLO11 ãã¬ãŒãã³ã°ããŒã¿ã匷åããããšãã§ããŸãããã®èšäºã§ã¯ãAlbumentationsãã©ã®ããã«ããŒã¿å¢åŒ·ããã»ã¹ãæ¹åããYOLO11 ãããžã§ã¯ããããã«ã€ã³ãã¯ãã®ãããã®ã«ããããèŠãŠãããŸãããã£ããå§ããŸãããïŒ
ç»åè£åŒ·ã®ããã®ã¢ã«ãã¡ã³ããŒã·ã§ã³
Albumentationsã¯ã2018幎6æã«äœæããããªãŒãã³ãœãŒã¹ã®ç»åè£åŒ·ã©ã€ãã©ãªã§ããã³ã³ãã¥ãŒã¿ããžã§ã³ã«ãããç»åè£åŒ·ããã»ã¹ãç°¡çŽ åããé«éåããããã«èšèšãããŠããŸããããã©ãŒãã³ã¹ãšæè»æ§ã念é ã«äœæãããå転ãå転ã®ãããªåçŽãªå€æãããæãããã³ã³ãã©ã¹ãã®å€åã®ãããªè€éãªèª¿æŽãŸã§ãå€ãã®å€æ§ãªãªãŒã°ã¡ã³ããŒã·ã§ã³æè¡ããµããŒãããŠããŸããAlbumentationsã¯ãéçºè ãç»ååé¡ãç©äœæ€åºãã»ã°ã¡ã³ããŒã·ã§ã³ã®ãããªã¿ã¹ã¯ã®ããã®è±å¯ã§å€æ§ãªããŒã¿ã»ãããçæããã®ã«åœ¹ç«ã¡ãŸãã
Albumentationsã䜿çšãããšãç»åãã»ã°ã¡ã³ããŒã·ã§ã³ãã¹ã¯ãããŠã³ãã£ã³ã°ããã¯ã¹ãããŒãã€ã³ãã«ç°¡åã«ãªãŒã°ã¡ã³ããŒã·ã§ã³ãé©çšããããŒã¿ã»ããã®ãã¹ãŠã®èŠçŽ ãäžç·ã«å€æãããããã«ããããšãã§ããŸããã®ãããªäžè¬çãªãã£ãŒãã©ãŒãã³ã°ãã¬ãŒã ã¯ãŒã¯ãšã·ãŒã ã¬ã¹ã«åäœããŸãã PyTorchãã㊠TensorFlowå¹ åºããããžã§ã¯ãã§å©çšå¯èœã§ãã
ãŸããAlbumentationsã¯ãå°èŠæš¡ãªããŒã¿ã»ãããæ±ãå Žåã§ãã倧èŠæš¡ãªã³ã³ãã¥ãŒã¿ããžã§ã³ã¿ã¹ã¯ãæ±ãå Žåã§ããè£åŒ·ã®ããã®åªãããªãã·ã§ã³ã§ããé«éã§å¹ççãªåŠçãä¿èšŒããããŒã¿æºåã«è²»ããæéãåæžããŸããåæã«ãã¢ãã«ã®ããã©ãŒãã³ã¹ãåäžãããå®äžçã®ã¢ããªã±ãŒã·ã§ã³ã§ã¢ãã«ãããå¹æçã«ããŸãã
ã¢ã«ãã¡ã³ããŒã·ã§ã³ã®äž»ãªç¹åŸŽ
Albumentationsã¯ãå¹ åºãã³ã³ãã¥ãŒã¿ããžã§ã³ã¢ããªã±ãŒã·ã§ã³ã®ããã®è€éãªç»åè£åŒ·ãç°¡çŽ åããå€ãã®äŸ¿å©ãªæ©èœãæäŸããŸããäž»ãªæ©èœãããã€ã玹ä»ããŸãïŒ
- å¹ åºãå€æïŒAlbumentationsã¯ã幟äœåŠçå€åïŒå転ãå転ãªã©ïŒãè²èª¿æŽïŒæãããã³ã³ãã©ã¹ããªã©ïŒããã€ãºä»å ïŒã¬ãŠã¹ãã€ãºãªã©ïŒãå«ã70çš®é¡ä»¥äžã®å€æãæäŸããŸããè€æ°ã®ãªãã·ã§ã³ãæã€ããšã§ãéåžžã«å€æ§ã§ããã¹ããªãã¬ãŒãã³ã°ããŒã¿ã»ããã®äœæãå¯èœã«ãªããŸãã
-
é«æ§èœãªæé©åïŒOpenCVãšNumPyãããŒã¹ã«æ§ç¯ãããAlbumentationsã¯ãSIMDïŒSingle Instruction, Multiple DataïŒã®ãããªé«åºŠãªæé©åæè¡ã䜿çšããŠãããè€æ°ã®ããŒã¿ãã€ã³ããåæã«åŠçããŠåŠçãé«éåããŸãã倧èŠæš¡ãªããŒã¿ã»ãããè¿ éã«åŠçããç»åè£åŒ·ã®ããã®æéãªãã·ã§ã³ã®1ã€ãšãªã£ãŠããŸãã
-
è£åŒ·ã®3ã€ã®ã¬ãã«ïŒAlbumentationsã¯ããã¯ã»ã«ã¬ãã«ã®å€æã空éã¬ãã«ã®å€æãããã·ã³ã°ã¬ãã«ã®å€æãšãã3ã€ã®ã¬ãã«ã®ãªãŒã°ã¡ã³ããŒã·ã§ã³ããµããŒãããŠããŸãããã¯ã»ã«ã¬ãã«ã®å€æã¯ããã¹ã¯ãããŠã³ãã£ã³ã°ããã¯ã¹ãããŒãã€ã³ããå€æŽããããšãªããå ¥åç»åã«ã®ã¿åœ±é¿ããŸããäžæ¹ããã¹ã¯ãããŠã³ãã£ã³ã°ããã¯ã¹ã®ãããªç»åãšãã®èŠçŽ ã®äž¡æ¹ã¯ã空éã¬ãã«ã®å€æã䜿çšããŠå€æãããŸããããã«ãããã·ã³ã°ã¬ãã«ã®å€æã¯ãè€æ°ã®ç»åã1ã€ã«çµ±åãããããããŒã¿ãå¢åŒ·ãããŠããŒã¯ãªæ¹æ³ã§ãã
- ãã³ãããŒã¯çµæ:ãã³ãããŒã¯ã«é¢ããŠã¯ãAlbumentationsã¯ãç¹ã«å€§èŠæš¡ãªããŒã¿ã»ããã«ãããŠãåžžã«ä»ã®ã©ã€ãã©ãªãåé§ããŠããŸãã
ããžã§ã³AIãããžã§ã¯ãã«Albumentationsã䜿ãã¹ãçç±ãšã¯ïŒ
ç»åè£åŒ·ã«é¢ããŠãAlbumentationsã¯ã³ã³ãã¥ãŒã¿ããžã§ã³ã¿ã¹ã¯ã®ããã®ä¿¡é Œã§ããããŒã«ãšããŠéç«ã£ãŠããŸããããžã§ã³AIãããžã§ã¯ãã«Albumentationsã®äœ¿çšãæ€èšãã¹ãäž»ãªçç±ãããã€ãæããŸãïŒ
-
䜿ããããAPIïŒAlbumentationsã¯ãç»åããã¹ã¯ãããŠã³ãã£ã³ã°ããã¯ã¹ãããã³ããŒãã€ã³ãã«å¹ åºãè£åŒ·ãé©çšããããã®ãåäžã®ããããããAPIãæäŸããŸããããŸããŸãªããŒã¿ã»ããã«ç°¡åã«é©å¿ã§ããããã«èšèšãããŠãããããŒã¿äœæãããã·ã³ãã«ãã€å¹ççã«ããŸãã
-
å³å¯ãªãã°ãã¹ãïŒãªãŒã°ã¡ã³ããŒã·ã§ã³ã»ãã€ãã©ã€ã³ã®ãã°ã¯ãå ¥åããŒã¿ãç¡èšã®ãã¡ã«ç Žæãããå¯èœæ§ããããå€ãã®å Žåæ°ã¥ãããŸããããæçµçã«ã¯ã¢ãã«ã®ããã©ãŒãã³ã¹ãäœäžãããŸããAlbumentationsã¯ãéçºã®åæ段éã§ãã°ãçºèŠããããã®åŸ¹åºãããã¹ãã»ã¹ã€ãŒãã«ãã£ãŠããã®åé¡ã«å¯ŸåŠããŸãã
-
æ¡åŒµæ§ïŒAlbumentationsã¯ãçµã¿èŸŒã¿ã®å€æãšãšãã«ãåäžã®ã€ã³ã¿ãŒãã§ã€ã¹ãä»ããŠãæ°ããæ¡åŒµæ©èœãç°¡åã«è¿œå ããã³ã³ãã¥ãŒã¿ããžã§ã³ãã€ãã©ã€ã³ã§äœ¿çšããããã«äœ¿çšããããšãã§ããŸãã
YOLO11 ãã¬ãŒãã³ã°ã®ããã®ããŒã¿è£åŒ·ã«ã¢ã«ãã¡ã³ããŒã·ã§ã³ã䜿ãæ¹æ³
ããŠãAlbumentationsãšã¯äœããäœãã§ãããã説æããã®ã§ãYOLO11 ã¢ãã«ã®ãã¬ãŒãã³ã°ã®ããã«ããŒã¿ãè£åŒ·ããããã«Albumentationsãã©ã®ããã«äœ¿ãããèŠãŠã¿ãããããã¯Ultralytics ã® ãã¬ãŒãã³ã°ã¢ãŒãã«çŽæ¥çµ±åãããAlbumentations ããã±ãŒãžãã€ã³ã¹ããŒã«ãããŠããã°èªåçã«é©çšãããã®ã§ãã»ããã¢ããã¯ç°¡åã§ãã
ã€ã³ã¹ããŒã«
YOLO11 㧠Albumentations ã䜿çšããã«ã¯ãå¿ èŠãªããã±ãŒãžãã€ã³ã¹ããŒã«ãããŠããããšã確èªããããšããå§ãããAlbumentationsãã€ã³ã¹ããŒã«ãããŠããªããšããã¬ãŒãã³ã°äžã«è£åŒ·ãé©çšãããªããäžæŠã»ããã¢ããããã°ãAlbumentations ãã¢ãã«ãèªåçã«æ¡åŒµããããã«çµ±åãããããã¬ãŒãã³ã°çšã®æ¡åŒµããŒã¿ã»ãããäœæããæºåãæŽããŸãã
ã€ã³ã¹ããŒã«ããã»ã¹ã«é¢ãã詳现ãªèª¬æãšãã¹ããã©ã¯ãã£ã¹ã«ã€ããŠã¯ãUltralytics ã€ã³ã¹ããŒã«ã¬ã€ããã芧ãã ãããYOLO11 ã«å¿ èŠãªããã±ãŒãžãã€ã³ã¹ããŒã«ããéã«ãäœããã®åé¡ãçºçããå Žåã¯ã解決çããã³ãã«ã€ããŠãããããåé¡ã¬ã€ããåç §ããŠãã ããã
䜿çšæ¹æ³
å¿ èŠãªããã±ãŒãžãã€ã³ã¹ããŒã«ãããšãYOLO11 㧠Albumentations ã䜿ãå§ããæºåãæŽããŸããYOLO11 ããã¬ãŒãã³ã°ãããšãAlbumentations ãšã®çµ±åã«ãããäžé£ã®è£åŒ·ãèªåçã«é©çšãããã¢ãã«ã®æ§èœãç°¡åã«åäžãããããšãã§ããŸãã
䜿çšæ¹æ³
次ã«ããã¬ãŒãã³ã°äžã«æœãããå ·äœçãªè£åŒ·ã«ã€ããŠè©³ããèŠãŠã¿ããã
ãã©ãŒ
Albumentationsã®Blurå€æã¯ãå°ããªæ£æ¹åœ¢ã®é åïŒã«ãŒãã«ïŒå
ã®ãã¯ã»ã«å€ãå¹³ååããããšã«ãã£ãŠãç»åã«åçŽãªãŒããå¹æãé©çšããŸããããã¯OpenCVã® cv2.blur
ããã¯ãç»åã®ãã€ãºãæžããã®ã«åœ¹ç«ã€ããç»åã®ãã£ããŒã«ããããã«æžå°ããã
以äžã¯ããã®çµ±åã§äœ¿çšãããã©ã¡ãŒã¿ãšå€ã§ããïŒ
-
blur_limit: ãŒããå¹æã®ãµã€ãºç¯å²ãã³ã³ãããŒã«ããŸããããã©ã«ãã®ç¯å²ã¯(3, 7)ã§ããŒããã®ã«ãŒãã«ãµã€ãºã¯3ãã¯ã»ã«ãã7ãã¯ã»ã«ã®éã§å€åããŸãã
-
p:ãã©ãŒãé©çšããã確çãçµ±åã§ã¯ãp=0.01ãªã®ã§ããã®ãŒãããåç»åã«é©çšããã確çã¯1%ã§ãã確çãäœãããããšã§ãç»åããŒãããããããšãªãã¢ãã«ãäžè¬åããããã®ããªãšãŒã·ã§ã³ãå°ãå°å ¥ããææãŒããå¹æãé©çšããããšãã§ããŸãã
ã¡ãã£ã¢ã³ã»ãã©ãŒ
Albumentationsã®MedianBlurå€æã¯ãç»åã«ã¡ãã£ã¢ã³ãŒããå¹æãé©çšãããšããžãç¶æããªãããã€ãºãæžããã®ã«ç¹ã«åœ¹ç«ã¡ãŸããäžè¬çãªãŒããæ¹æ³ãšã¯ç°ãªããMedianBlurã¯ã¡ãã£ã¢ã³ãã£ã«ã¿ã䜿çšãããšããžåšèŸºã®ã·ã£ãŒããã¹ãç¶æããªãããœã«ãïŒããããŒãã€ãºãé€å»ããã®ã«ç¹ã«å¹æçã§ãã
以äžã¯ããã®çµ±åã§äœ¿çšãããã©ã¡ãŒã¿ãšå€ã§ããïŒ
-
blur_limit: ãã®ãã©ã¡ãŒã¿ã¯ããŒããã«ãŒãã«ã®æ倧ãµã€ãºãå¶åŸ¡ããŸããã€ãŸãããŒããã®ã«ãŒãã«ãµã€ãºã¯3ãã¯ã»ã«ãã7ãã¯ã»ã«ã®éã§ã©ã³ãã ã«éžã°ããé©åãªã¢ã©ã€ã¡ã³ãã確ä¿ããããã«å¥æ°å€ã®ã¿ãèš±å¯ãããŸãã
-
p:äžå€®å€ãŒãããé©çšãã確çãèšå®ããŸããããã§ã¯p=0.01ãªã®ã§ãå€æãåç»åã«é©çšããã確çã¯1%ã§ãããã®äœã確çã¯ãäžå€®å€ãŒãããæ§ããã«äœ¿çšãããããšãä¿èšŒãããã€ãºãæžå°ããšããžãä¿åãããç»åãææèŠãããšã«ãã£ãŠãã¢ãã«ã®äžè¬åãå©ããŸãã
äžã®ç»åã¯ããã®è£åŒ·ãç»åã«é©çšããäŸã§ããã
ã°ã¬ãŒã¹ã±ãŒã«
Albumentationsã®ToGrayå€æã¯ãç»åãã°ã¬ãŒã¹ã±ãŒã«ã«å€æããã·ã³ã°ã«ãã£ã³ãã«åœ¢åŒã«çž®å°ãããªãã·ã§ã³ã§æå®ãããåºåãã£ã³ãã«æ°ã«äžèŽããããã«ãã®ãã£ã³ãã«ãè€è£œããŸããã°ã¬ãŒã¹ã±ãŒã«ã®æããã®èšç®æ¹æ³ã調æŽããããã«ãåçŽãªå¹³ååãããã³ã³ãã©ã¹ããšæããããªã¢ã«ã«ç¥èŠããããã®é«åºŠãªãã¯ããã¯ãŸã§ãããŸããŸãªæ¹æ³ã䜿çšã§ããŸãã
以äžã¯ããã®çµ±åã§äœ¿çšãããã©ã¡ãŒã¿ãšå€ã§ããïŒ
-
num_output_channelsïŒåºåç»åã®ãã£ã³ãã«æ°ãèšå®ããããã®å€ã1以äžã®å Žåãåäžã®ã°ã¬ãŒã¹ã±ãŒã«ã»ãã£ã³ãã«ãè€è£œããããã«ããã£ã³ãã«ã®ã°ã¬ãŒã¹ã±ãŒã«ç»åã«ãªããŸããããã©ã«ãã§ã¯ 3 ã«èšå®ãããŠããã 3ã€ã®åããã£ã³ãã«ãæã€ã°ã¬ãŒã¹ã±ãŒã«ç»åãšãªããŸãã
-
ã¡ãœããã䜿çšããŸãïŒã°ã¬ãŒã¹ã±ãŒã«å€ææ¹æ³ãå®çŸ©ããŸããããã©ã«ãã®æ¹æ³ã§ãã "weighted_average "ã¯ã人éã®ç¥èŠã«è¿ãåŒïŒ0.299R + 0.587G + 0.114BïŒãé©çšããèªç¶ãªã°ã¬ãŒã¹ã±ãŒã«å¹æãæäŸããŸããfrom_lab"ã"desaturation"ã"average"ã"max"ãããã³ "pca "ãªã©ã®ä»ã®ãªãã·ã§ã³ã¯ãã¹ããŒããæããã®åŒ·èª¿ããŸãã¯ãã£ããŒã«ã®ä¿æãªã©ãããŸããŸãªããŒãºã«åºã¥ããŠã°ã¬ãŒã¹ã±ãŒã«ç»åãäœæãã代æ¿æ¹æ³ãæäŸããŸãã
-
p:ã°ã¬ãŒã¹ã±ãŒã«å€æãé©çšããé »åºŠãå¶åŸ¡ããŸããp=0.01ã®å Žåãåç»åãã°ã¬ãŒã¹ã±ãŒã«ã«å€æããã確çã¯1%ã«ãªããã«ã©ãŒç»åãšã°ã¬ãŒã¹ã±ãŒã«ç»åãæ··åšãããããšã§ãã¢ãã«ã®æ±åãããè¯ãããããšãã§ããŸãã
äžã®ç»åã¯ããã®ã°ã¬ãŒã¹ã±ãŒã«å€æãé©çšããäŸã§ããã
ã³ã³ãã©ã¹ãå¶éé©å¿ãã¹ãã°ã©ã çåïŒCLAHEïŒ
Albumentationsã®CLAHEå€æã¯ãContrast Limited Adaptive Histogram EqualizationïŒCLAHEïŒãé©çšããŸããCLAHEã¯ãç»åå šäœã§ã¯ãªããå±æçãªé åïŒã¿ã€ã«ïŒã§ãã¹ãã°ã©ã ãåçåããããšã§ãç»åã®ã³ã³ãã©ã¹ãã匷調ããææ³ã§ããCLAHEã¯ããã©ã³ã¹ã®åãã匷調å¹æãçã¿åºããæšæºçãªãã¹ãã°ã©ã åçåã®çµæãç¹ã«åæã®ã³ã³ãã©ã¹ããäœãé åã§ãã³ã³ãã©ã¹ããé床ã«å¢å¹ ãããã®ãé²ããŸãã
以äžã¯ããã®çµ±åã§äœ¿çšãããã©ã¡ãŒã¿ãšå€ã§ããïŒ
-
clip_limit: ã³ã³ãã©ã¹ãã®åŒ·èª¿ç¯å²ãå¶åŸ¡ããŸããããã©ã«ãã®ç¯å² (1, 4) ã«èšå®ãããåã¿ã€ã«ã§èš±å®¹ãããæ倧ã³ã³ãã©ã¹ãã決å®ãããé«ãå€ãèšå®ãããšã³ã³ãã©ã¹ããåäžããŸããããã€ãºãçºçããå¯èœæ§ããããŸãã
-
tile_grid_sizeïŒã¿ã€ã«ã®ã°ãªããã®å€§ãããå®çŸ©ããïŒé垞㯠(è¡, å)ïŒãããã©ã«ãå€ã¯ (8, 8) ã§ãç»å㯠8x8 ã®ã°ãªããã«åå²ãããŸããã¿ã€ã«ã®ãµã€ãºãå°ããã»ã©å±æçãªèª¿æŽãå¯èœã«ãªãã倧ããã»ã©ã°ããŒãã«ãªåçåã«è¿ãå¹æãåŸãããŸãã
-
p:CLAHEãé©çšãã確çãããã§ã¯ãp=0.01ã¯1%ã®ç¢ºçã§ãã匷調å¹æãå°å ¥ããªããããèšç·Žç»åã«ææèŠãããã°ãã€ãã«å¯ŸããŠã³ã³ãã©ã¹ã調æŽãæ§ããã«é©çšãããã
äžã®ç»åã¯CLAHEå€æãé©çšããäŸã§ããã
ã¢ã«ãã¡ã³ããŒã·ã§ã³ã«ã€ããŠåŠã³ç¶ãã
ã¢ã«ãã¡ã³ããŒã·ã§ã³ã«ã€ããŠãã詳ããç¥ãããæ¹ã¯ã以äžã®è³æã§ãã詳ãã説æãäŸãã芧ãã ããïŒ
-
ã¢ã«ãã¡ã³ããŒã·ã§ã³ã»ããã¥ã¡ã³ããŒã·ã§ã³:å ¬åŒããã¥ã¡ã³ãã§ã¯ããµããŒããããå€æã®å šç¯å²ãšé«åºŠãªäœ¿çšãã¯ããã¯ãæäŸããŠããŸãã
-
Ultralytics ã¢ã«ãã¡ã³ããŒã·ã§ã³ã»ã¬ã€ã:ãã®çµ±åãä¿é²ããæ©èœã®è©³çŽ°ãã芧ãã ããã
-
Albumentations GitHubãªããžããª:ãã®ãªããžããªã«ã¯ããªãŒã°ã¡ã³ãã®ã«ã¹ã¿ãã€ãºãå§ããã®ã«åœ¹ç«ã€ãµã³ãã«ããã³ãããŒã¯ããã£ã¹ã«ãã·ã§ã³ãå«ãŸããŠããŸãã
èŠç¹
ãã®ã¬ã€ãã§ã¯ãç»åè£åŒ·ã®ããã®åªããPython ã©ã€ãã©ãªã§ãã Albumentations ã®äž»èŠãªåŽé¢ãæ¢ã£ãããã®å¹ åºãå€æãæé©åãããããã©ãŒãã³ã¹ããããŠããªãã®æ¬¡ã®YOLO11 ãããžã§ã¯ãã§ã©ã®ããã«äœ¿çšã§ãããã«ã€ããŠèª¬æããŸããã
ãŸãããã®ä»ã®Ultralytics YOLO11 ã®çµ±åã«ã€ããŠè©³ãããç¥ãã«ãªãããå Žåã¯ãçµ±åã¬ã€ãããŒãžãã芧ãã ããã貎éãªãªãœãŒã¹ãæŽå¯ãèŠã€ãããŸãã
ããããã質å
ããŒã¿è£åŒ·ãæ¹åããããã«ãAlbumentationsãYOLO11 ãšçµ±åããã«ã¯ã©ãããã°ããã§ããïŒ
Albumentationsã¯ãYOLO11 ãšã·ãŒã ã¬ã¹ã«çµ±åãããããã±ãŒãžãã€ã³ã¹ããŒã«ãããŠããã°ããã¬ãŒãã³ã°äžã«èªåçã«é©çšãããŸããéå§æ¹æ³ã¯ä»¥äžã®éãã§ãïŒ
# Install required packages
# !pip install albumentations ultralytics
from ultralytics import YOLO
# Load and train model with automatic augmentations
model = YOLO("yolo11n.pt")
model.train(data="coco8.yaml", epochs=100)
ãã®çµ±åã«ã¯ããŒãããã¡ãã£ã¢ã³ãŒãããã°ã¬ãŒã¹ã±ãŒã«å€æãCLAHEãªã©ã®æé©åãããè£åŒ·ãå«ãŸããŠãããã¢ãã«ã®æ§èœãé«ããããã«æ éã«ç¢ºçã調æŽãããŠããã
ä»ã®è£åŒ·ã©ã€ãã©ãªãšæ¯èŒããŠãAlbumentationsã䜿çšããäž»ãªå©ç¹ã¯äœã§ããïŒ
Albumentationsãéç«ã£ãŠããçç±ã¯ããã€ãããïŒ
- ããã©ãŒãã³ã¹OpenCVãšNumPyãããŒã¹ã«SIMDæé©åã«ããé«éåãå®çŸ
- æè»æ§ïŒãã¯ã»ã«ã¬ãã«ã空éã¬ãã«ãããã·ã³ã°ã¬ãã«ã®70以äžã®å€åœ¢ããµããŒã
- äºææ§ïŒä»¥äžã®ãããªäžè¬çãªãã¬ãŒã ã¯ãŒã¯ãšã·ãŒã ã¬ã¹ã«åäœããŸãã PyTorchãã㊠TensorFlow
- ä¿¡é Œæ§ïŒåºç¯ãªãã¹ãã¹ã€ãŒãã«ãããç¡èšã®ããŒã¿ç Žæãé²æ¢
- 䜿ããããïŒãã¹ãŠã®è£åŒ·ã¿ã€ãã«åäžã®çµ±äžAPI
ã©ã®ãããªçš®é¡ã®ã³ã³ãã¥ãŒã¿ã»ããžã§ã³ã»ã¿ã¹ã¯ã«ã¢ã«ãã¡ã³ããŒã·ã§ã³è£åŒ·ãæå¹ã§ããïŒ
Albumentationsã¯ã以äžã®ãããªæ§ã ãªã³ã³ãã¥ãŒã¿ããžã§ã³ã¿ã¹ã¯ã匷åããïŒ
- ãªããžã§ã¯ãæ€åºïŒç §æãã¹ã±ãŒã«ãæ¹åã®å€åã«å¯Ÿããã¢ãã«ã®ããã¹ãæ§ãåäžããŸãã
- ã€ã³ã¹ã¿ã³ã¹åå²ïŒå€æ§ãªå€æã«ãããã¹ã¯äºæž¬ç²ŸåºŠãåäž
- åé¡ïŒè²ãšå¹ŸäœåŠçãªè£åŒ·ã§ã¢ãã«ã®æ±åæ§ãé«ãã
- ããŒãºæšå®ïŒã¢ãã«ãç°ãªãèŠç¹ãç §ææ¡ä»¶ã«é©å¿ããã®ãå©ãã
ãã®ã©ã€ãã©ãªã«ã¯å€æ§ãªæ¡åŒµãªãã·ã§ã³ãçšæãããŠãããããããã¹ããªã¢ãã«æ§èœãå¿ èŠãšããããããããžã§ã³ã¿ã¹ã¯ã«å©çšã§ããã