diff --git a/app/core/config.py b/app/core/config.py index 5b1ef5a..f4b7583 100644 --- a/app/core/config.py +++ b/app/core/config.py @@ -27,16 +27,16 @@ MINIO_SECURE = False MINIO_ACCESS = "e8zc55mzDOh4IzRrZ9Oa" MINIO_SECRET = "uHfqJ7UkwA1PTDGfnA44Hp9ux5YkZTkzZLjeOYhE" -OM_TRITON_IP = "10.1.1.150" -OM_TRITON_PORT = "9000" +OM_TRITON_IP = "10.1.1.240" +OM_TRITON_PORT = "10010" ATT_TRITON_IP = "10.1.1.240" ATT_TRITON_PORT = "10020" # service env -# LOGS_PATH = "app/logs/errors.log" -# FASHION_CATEGORIES = "app/service/outfit_matcher/config/fashion_categories.json" -# FASHION_CATEGORIES_MAPPING = "app/service/outfit_matcher/config/fashion_category_mapping.json" +LOGS_PATH = "app/logs/errors.log" +FASHION_CATEGORIES = "app/service/outfit_matcher/config/fashion_categories.json" +FASHION_CATEGORIES_MAPPING = "app/service/outfit_matcher/config/fashion_category_mapping.json" # pycharm debug # LOGS_PATH = "logs/errors.log" @@ -44,6 +44,6 @@ ATT_TRITON_PORT = "10020" # FASHION_CATEGORIES_MAPPING = "service/outfit_matcher/config/fashion_category_mapping.json" -LOGS_PATH = "app/logs/errors.log" -FASHION_CATEGORIES = "./config/fashion_categories.json" -FASHION_CATEGORIES_MAPPING = "./config/fashion_category_mapping.json" \ No newline at end of file +# LOGS_PATH = "app/logs/errors.log" +# FASHION_CATEGORIES = "./config/fashion_categories.json" +# FASHION_CATEGORIES_MAPPING = "./config/fashion_category_mapping.json" \ No newline at end of file diff --git a/app/logs/errors.log b/app/logs/errors.log index 3619c22..500d6f5 100644 --- a/app/logs/errors.log +++ b/app/logs/errors.log @@ -1,3 +1,267 @@ +2024-03-25 17:26:03,804 decorator.py [line:11] INFO function:【load_image】,runtime:【0.13544344902038574】s +2024-03-25 17:26:03,804 decorator.py [line:11] INFO function:【load_image】,runtime:【0.13544344902038574】s +2024-03-25 17:26:03,901 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07622218132019043】s +2024-03-25 17:26:03,901 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07622218132019043】s +2024-03-25 17:26:04,003 decorator.py [line:11] INFO function:【load_image】,runtime:【0.085418701171875】s +2024-03-25 17:26:04,003 decorator.py [line:11] INFO function:【load_image】,runtime:【0.085418701171875】s +2024-03-25 17:26:04,112 decorator.py [line:11] INFO function:【load_image】,runtime:【0.09087872505187988】s +2024-03-25 17:26:04,112 decorator.py [line:11] INFO function:【load_image】,runtime:【0.09087872505187988】s +2024-03-25 17:26:04,213 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08513045310974121】s +2024-03-25 17:26:04,213 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08513045310974121】s +2024-03-25 17:26:04,316 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0855398178100586】s +2024-03-25 17:26:04,316 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0855398178100586】s +2024-03-25 17:26:04,416 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0831136703491211】s +2024-03-25 17:26:04,416 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0831136703491211】s +2024-03-25 17:26:04,522 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0894019603729248】s +2024-03-25 17:26:04,522 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0894019603729248】s +2024-03-25 17:26:04,618 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08012795448303223】s +2024-03-25 17:26:04,618 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08012795448303223】s +2024-03-25 17:26:04,696 decorator.py [line:11] INFO function:【load_image】,runtime:【0.061154842376708984】s +2024-03-25 17:26:04,696 decorator.py [line:11] INFO function:【load_image】,runtime:【0.061154842376708984】s +2024-03-25 17:26:04,792 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07929039001464844】s +2024-03-25 17:26:04,792 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07929039001464844】s +2024-03-25 17:26:04,889 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08129501342773438】s +2024-03-25 17:26:04,889 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08129501342773438】s +2024-03-25 17:26:04,990 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08388209342956543】s +2024-03-25 17:26:04,990 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08388209342956543】s +2024-03-25 17:26:05,111 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08608269691467285】s +2024-03-25 17:26:05,111 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08608269691467285】s +2024-03-25 17:26:05,212 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08114194869995117】s +2024-03-25 17:26:05,212 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08114194869995117】s +2024-03-25 17:26:05,321 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0930790901184082】s +2024-03-25 17:26:05,321 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0930790901184082】s +2024-03-25 17:26:05,423 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0852501392364502】s +2024-03-25 17:26:05,423 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0852501392364502】s +2024-03-25 17:26:05,503 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06423807144165039】s +2024-03-25 17:26:05,503 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06423807144165039】s +2024-03-25 17:26:05,601 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08154463768005371】s +2024-03-25 17:26:05,601 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08154463768005371】s +2024-03-25 17:26:05,694 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07657551765441895】s +2024-03-25 17:26:05,694 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07657551765441895】s +2024-03-25 17:26:05,792 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08262014389038086】s +2024-03-25 17:26:05,792 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08262014389038086】s +2024-03-25 17:26:05,888 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07956528663635254】s +2024-03-25 17:26:05,888 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07956528663635254】s +2024-03-25 17:26:05,991 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08670282363891602】s +2024-03-25 17:26:05,991 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08670282363891602】s +2024-03-25 17:26:06,073 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06363368034362793】s +2024-03-25 17:26:06,073 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06363368034362793】s +2024-03-25 17:26:06,167 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07943296432495117】s +2024-03-25 17:26:06,167 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07943296432495117】s +2024-03-25 17:26:06,254 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06969499588012695】s +2024-03-25 17:26:06,254 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06969499588012695】s +2024-03-25 17:26:06,349 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07853293418884277】s +2024-03-25 17:26:06,349 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07853293418884277】s +2024-03-25 17:26:06,442 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07658052444458008】s +2024-03-25 17:26:06,442 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07658052444458008】s +2024-03-25 17:26:06,538 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07888340950012207】s +2024-03-25 17:26:06,538 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07888340950012207】s +2024-03-25 17:26:06,659 decorator.py [line:11] INFO function:【load_image】,runtime:【0.10462403297424316】s +2024-03-25 17:26:06,659 decorator.py [line:11] INFO function:【load_image】,runtime:【0.10462403297424316】s +2024-03-25 17:26:06,755 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07874917984008789】s +2024-03-25 17:26:06,755 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07874917984008789】s +2024-03-25 17:26:06,876 decorator.py [line:11] INFO function:【load_image】,runtime:【0.10162854194641113】s +2024-03-25 17:26:06,876 decorator.py [line:11] INFO function:【load_image】,runtime:【0.10162854194641113】s +2024-03-25 17:26:06,975 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08113813400268555】s +2024-03-25 17:26:06,975 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08113813400268555】s +2024-03-25 17:26:07,083 decorator.py [line:11] INFO function:【load_image】,runtime:【0.09142470359802246】s +2024-03-25 17:26:07,083 decorator.py [line:11] INFO function:【load_image】,runtime:【0.09142470359802246】s +2024-03-25 17:26:07,179 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07859921455383301】s +2024-03-25 17:26:07,179 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07859921455383301】s +2024-03-25 17:26:07,273 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07798337936401367】s +2024-03-25 17:26:07,273 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07798337936401367】s +2024-03-25 17:26:07,370 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07990598678588867】s +2024-03-25 17:26:07,370 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07990598678588867】s +2024-03-25 17:26:07,462 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07477664947509766】s +2024-03-25 17:26:07,462 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07477664947509766】s +2024-03-25 17:26:07,560 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08201026916503906】s +2024-03-25 17:26:07,560 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08201026916503906】s +2024-03-25 17:26:07,652 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07555174827575684】s +2024-03-25 17:26:07,652 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07555174827575684】s +2024-03-25 17:26:07,749 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08008956909179688】s +2024-03-25 17:26:07,749 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08008956909179688】s +2024-03-25 17:26:07,835 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0698552131652832】s +2024-03-25 17:26:07,835 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0698552131652832】s +2024-03-25 17:26:07,931 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07860517501831055】s +2024-03-25 17:26:07,931 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07860517501831055】s +2024-03-25 17:26:08,028 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08061385154724121】s +2024-03-25 17:26:08,028 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08061385154724121】s +2024-03-25 17:26:08,122 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07770252227783203】s +2024-03-25 17:26:08,122 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07770252227783203】s +2024-03-25 17:26:08,217 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0805051326751709】s +2024-03-25 17:26:08,217 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0805051326751709】s +2024-03-25 17:26:08,312 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07836413383483887】s +2024-03-25 17:26:08,312 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07836413383483887】s +2024-03-25 17:26:08,401 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07299423217773438】s +2024-03-25 17:26:08,401 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07299423217773438】s +2024-03-25 17:26:08,494 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07680177688598633】s +2024-03-25 17:26:08,494 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07680177688598633】s +2024-03-25 17:26:08,577 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06699347496032715】s +2024-03-25 17:26:08,577 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06699347496032715】s +2024-03-25 17:26:08,668 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07812905311584473】s +2024-03-25 17:26:08,668 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07812905311584473】s +2024-03-25 17:26:08,752 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06776022911071777】s +2024-03-25 17:26:08,752 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06776022911071777】s +2024-03-25 17:26:08,847 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07918834686279297】s +2024-03-25 17:26:08,847 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07918834686279297】s +2024-03-25 17:26:08,962 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07796883583068848】s +2024-03-25 17:26:08,962 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07796883583068848】s +2024-03-25 17:26:09,058 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07951951026916504】s +2024-03-25 17:26:09,058 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07951951026916504】s +2024-03-25 17:26:09,149 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07912516593933105】s +2024-03-25 17:26:09,149 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07912516593933105】s +2024-03-25 17:26:09,216 decorator.py [line:11] INFO function:【load_image】,runtime:【0.05126023292541504】s +2024-03-25 17:26:09,216 decorator.py [line:11] INFO function:【load_image】,runtime:【0.05126023292541504】s +2024-03-25 17:26:09,314 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07914400100708008】s +2024-03-25 17:26:09,314 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07914400100708008】s +2024-03-25 17:26:09,470 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07927227020263672】s +2024-03-25 17:26:09,470 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07927227020263672】s +2024-03-25 17:26:09,540 decorator.py [line:11] INFO function:【load_image】,runtime:【0.054183244705200195】s +2024-03-25 17:26:09,540 decorator.py [line:11] INFO function:【load_image】,runtime:【0.054183244705200195】s +2024-03-25 17:26:09,635 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07704281806945801】s +2024-03-25 17:26:09,635 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07704281806945801】s +2024-03-25 17:26:09,721 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07037878036499023】s +2024-03-25 17:26:09,721 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07037878036499023】s +2024-03-25 17:26:09,817 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07882356643676758】s +2024-03-25 17:26:09,817 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07882356643676758】s +2024-03-25 17:26:09,976 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08074522018432617】s +2024-03-25 17:26:09,976 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08074522018432617】s +2024-03-25 17:26:10,059 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06736898422241211】s +2024-03-25 17:26:10,059 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06736898422241211】s +2024-03-25 17:26:10,156 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07848167419433594】s +2024-03-25 17:26:10,156 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07848167419433594】s +2024-03-25 17:26:10,231 decorator.py [line:11] INFO function:【load_image】,runtime:【0.05883073806762695】s +2024-03-25 17:26:10,231 decorator.py [line:11] INFO function:【load_image】,runtime:【0.05883073806762695】s +2024-03-25 17:26:23,135 decorator.py [line:11] INFO function:【load_image】,runtime:【0.12710237503051758】s +2024-03-25 17:26:23,135 decorator.py [line:11] INFO function:【load_image】,runtime:【0.12710237503051758】s +2024-03-25 17:26:23,224 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06662631034851074】s +2024-03-25 17:26:23,224 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06662631034851074】s +2024-03-25 17:26:23,324 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08097147941589355】s +2024-03-25 17:26:23,324 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08097147941589355】s +2024-03-25 17:26:23,429 decorator.py [line:11] INFO function:【load_image】,runtime:【0.086273193359375】s +2024-03-25 17:26:23,429 decorator.py [line:11] INFO function:【load_image】,runtime:【0.086273193359375】s +2024-03-25 17:26:23,527 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08147120475769043】s +2024-03-25 17:26:23,527 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08147120475769043】s +2024-03-25 17:26:23,625 decorator.py [line:11] INFO function:【load_image】,runtime:【0.082366943359375】s +2024-03-25 17:26:23,625 decorator.py [line:11] INFO function:【load_image】,runtime:【0.082366943359375】s +2024-03-25 17:26:23,726 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08403301239013672】s +2024-03-25 17:26:23,726 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08403301239013672】s +2024-03-25 17:26:23,828 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08577489852905273】s +2024-03-25 17:26:23,828 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08577489852905273】s +2024-03-25 17:26:23,927 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0817101001739502】s +2024-03-25 17:26:23,927 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0817101001739502】s +2024-03-25 17:26:24,005 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06269955635070801】s +2024-03-25 17:26:24,005 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06269955635070801】s +2024-03-25 17:26:24,117 decorator.py [line:11] INFO function:【load_image】,runtime:【0.09565091133117676】s +2024-03-25 17:26:24,117 decorator.py [line:11] INFO function:【load_image】,runtime:【0.09565091133117676】s +2024-03-25 17:26:24,217 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0811305046081543】s +2024-03-25 17:26:24,217 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0811305046081543】s +2024-03-25 17:26:24,315 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0818324089050293】s +2024-03-25 17:26:24,315 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0818324089050293】s +2024-03-25 17:26:24,399 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0679922103881836】s +2024-03-25 17:26:24,399 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0679922103881836】s +2024-03-25 17:26:24,496 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08090090751647949】s +2024-03-25 17:26:24,496 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08090090751647949】s +2024-03-25 17:26:24,602 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08986854553222656】s +2024-03-25 17:26:24,602 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08986854553222656】s +2024-03-25 17:26:24,734 decorator.py [line:11] INFO function:【load_image】,runtime:【0.10856080055236816】s +2024-03-25 17:26:24,734 decorator.py [line:11] INFO function:【load_image】,runtime:【0.10856080055236816】s +2024-03-25 17:26:24,813 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06293177604675293】s +2024-03-25 17:26:24,813 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06293177604675293】s +2024-03-25 17:26:24,911 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0809175968170166】s +2024-03-25 17:26:24,911 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0809175968170166】s +2024-03-25 17:26:24,999 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07146430015563965】s +2024-03-25 17:26:24,999 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07146430015563965】s +2024-03-25 17:26:25,096 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07970023155212402】s +2024-03-25 17:26:25,096 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07970023155212402】s +2024-03-25 17:26:25,181 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0693812370300293】s +2024-03-25 17:26:25,181 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0693812370300293】s +2024-03-25 17:26:25,278 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08121585845947266】s +2024-03-25 17:26:25,278 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08121585845947266】s +2024-03-25 17:26:25,356 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06267619132995605】s +2024-03-25 17:26:25,356 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06267619132995605】s +2024-03-25 17:26:25,454 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0814509391784668】s +2024-03-25 17:26:25,454 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0814509391784668】s +2024-03-25 17:26:25,540 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0692136287689209】s +2024-03-25 17:26:25,540 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0692136287689209】s +2024-03-25 17:26:25,634 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07789087295532227】s +2024-03-25 17:26:25,634 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07789087295532227】s +2024-03-25 17:26:25,728 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07637262344360352】s +2024-03-25 17:26:25,728 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07637262344360352】s +2024-03-25 17:26:25,824 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08127021789550781】s +2024-03-25 17:26:25,824 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08127021789550781】s +2024-03-25 17:26:25,942 decorator.py [line:11] INFO function:【load_image】,runtime:【0.10091018676757812】s +2024-03-25 17:26:25,942 decorator.py [line:11] INFO function:【load_image】,runtime:【0.10091018676757812】s +2024-03-25 17:26:26,041 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08182287216186523】s +2024-03-25 17:26:26,041 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08182287216186523】s +2024-03-25 17:26:26,153 decorator.py [line:11] INFO function:【load_image】,runtime:【0.09741401672363281】s +2024-03-25 17:26:26,153 decorator.py [line:11] INFO function:【load_image】,runtime:【0.09741401672363281】s +2024-03-25 17:26:26,251 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08347296714782715】s +2024-03-25 17:26:26,251 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08347296714782715】s +2024-03-25 17:26:26,357 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08902311325073242】s +2024-03-25 17:26:26,357 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08902311325073242】s +2024-03-25 17:26:26,453 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08002495765686035】s +2024-03-25 17:26:26,453 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08002495765686035】s +2024-03-25 17:26:26,547 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07843542098999023】s +2024-03-25 17:26:26,547 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07843542098999023】s +2024-03-25 17:26:26,650 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0851755142211914】s +2024-03-25 17:26:26,650 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0851755142211914】s +2024-03-25 17:26:26,742 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06921911239624023】s +2024-03-25 17:26:26,742 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06921911239624023】s +2024-03-25 17:26:26,839 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07952427864074707】s +2024-03-25 17:26:26,839 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07952427864074707】s +2024-03-25 17:26:26,958 decorator.py [line:11] INFO function:【load_image】,runtime:【0.10293054580688477】s +2024-03-25 17:26:26,958 decorator.py [line:11] INFO function:【load_image】,runtime:【0.10293054580688477】s +2024-03-25 17:26:27,068 decorator.py [line:11] INFO function:【load_image】,runtime:【0.09101676940917969】s +2024-03-25 17:26:27,068 decorator.py [line:11] INFO function:【load_image】,runtime:【0.09101676940917969】s +2024-03-25 17:26:27,152 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06808972358703613】s +2024-03-25 17:26:27,152 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06808972358703613】s +2024-03-25 17:26:27,249 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0805962085723877】s +2024-03-25 17:26:27,249 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0805962085723877】s +2024-03-25 17:26:27,344 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07995843887329102】s +2024-03-25 17:26:27,344 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07995843887329102】s +2024-03-25 17:26:27,444 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08270764350891113】s +2024-03-25 17:26:27,444 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08270764350891113】s +2024-03-25 17:26:27,577 decorator.py [line:11] INFO function:【load_image】,runtime:【0.11476516723632812】s +2024-03-25 17:26:27,577 decorator.py [line:11] INFO function:【load_image】,runtime:【0.11476516723632812】s +2024-03-25 17:26:27,679 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07893037796020508】s +2024-03-25 17:26:27,679 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07893037796020508】s +2024-03-25 17:26:27,768 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0707252025604248】s +2024-03-25 17:26:27,768 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0707252025604248】s +2024-03-25 17:26:27,872 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08806061744689941】s +2024-03-25 17:26:27,872 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08806061744689941】s +2024-03-25 17:26:27,967 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07721161842346191】s +2024-03-25 17:26:27,967 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07721161842346191】s +2024-03-25 17:26:28,068 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08118391036987305】s +2024-03-25 17:26:28,068 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08118391036987305】s +2024-03-25 17:26:28,153 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0673670768737793】s +2024-03-25 17:26:28,153 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0673670768737793】s +2024-03-25 17:26:28,277 decorator.py [line:11] INFO function:【load_image】,runtime:【0.09925365447998047】s +2024-03-25 17:26:28,277 decorator.py [line:11] INFO function:【load_image】,runtime:【0.09925365447998047】s +2024-03-25 17:26:28,445 decorator.py [line:11] INFO function:【load_image】,runtime:【0.12377762794494629】s +2024-03-25 17:26:28,445 decorator.py [line:11] INFO function:【load_image】,runtime:【0.12377762794494629】s +2024-03-25 17:26:28,552 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08925366401672363】s +2024-03-25 17:26:28,552 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08925366401672363】s +2024-03-25 17:26:28,647 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08093070983886719】s +2024-03-25 17:26:28,647 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08093070983886719】s +2024-03-25 17:26:28,811 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08128714561462402】s +2024-03-25 17:26:28,811 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08128714561462402】s +2024-03-25 17:26:28,966 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07812094688415527】s +2024-03-25 17:26:28,966 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07812094688415527】s +2024-03-25 17:26:29,127 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08026933670043945】s +2024-03-25 17:26:29,127 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08026933670043945】s +2024-03-25 17:26:29,205 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06108736991882324】s +2024-03-25 17:26:29,205 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06108736991882324】s +2024-03-25 17:26:29,302 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07897257804870605】s +2024-03-25 17:26:29,302 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07897257804870605】s +2024-03-25 17:26:29,459 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07853436470031738】s +2024-03-25 17:26:29,459 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07853436470031738】s +2024-03-25 17:26:29,533 decorator.py [line:11] INFO function:【load_image】,runtime:【0.05791950225830078】s +2024-03-25 17:26:29,533 decorator.py [line:11] INFO function:【load_image】,runtime:【0.05791950225830078】s +2024-03-25 17:26:29,629 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07919621467590332】s +2024-03-25 17:26:29,629 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07919621467590332】s +2024-03-25 17:26:29,701 decorator.py [line:11] INFO function:【load_image】,runtime:【0.05577659606933594】s +2024-03-25 17:26:29,701 decorator.py [line:11] INFO function:【load_image】,runtime:【0.05577659606933594】s 2024-03-21 13:51:37,818 decorator.py [line:11] INFO function:【load_image】,runtime:【1.2232704162597656】s 2024-03-21 13:51:37,818 decorator.py [line:11] INFO function:【load_image】,runtime:【1.2232704162597656】s 2024-03-21 13:51:38,052 decorator.py [line:11] INFO function:【load_image】,runtime:【0.19752931594848633】s @@ -138,3 +402,97 @@ 2024-03-21 13:52:09,530 decorator.py [line:11] INFO function:【load_image】,runtime:【0.7160646915435791】s 2024-03-21 13:52:09,813 decorator.py [line:11] INFO function:【load_image】,runtime:【0.25645899772644043】s 2024-03-21 13:52:09,813 decorator.py [line:11] INFO function:【load_image】,runtime:【0.25645899772644043】s +2024-03-27 11:28:51,362 decorator.py [line:11] INFO function:【load_image】,runtime:【0.14944052696228027】s +2024-03-27 11:28:51,362 decorator.py [line:11] INFO function:【load_image】,runtime:【0.14944052696228027】s +2024-03-27 11:28:51,561 decorator.py [line:11] INFO function:【load_image】,runtime:【0.09883594512939453】s +2024-03-27 11:28:51,561 decorator.py [line:11] INFO function:【load_image】,runtime:【0.09883594512939453】s +2024-03-27 11:28:54,385 decorator.py [line:11] INFO function:【get_result】,runtime:【3.172989845275879】s +2024-03-27 11:28:54,385 decorator.py [line:11] INFO function:【get_result】,runtime:【3.172989845275879】s +2024-03-27 11:28:54,501 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0939626693725586】s +2024-03-27 11:28:54,501 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0939626693725586】s +2024-03-27 11:28:54,627 decorator.py [line:11] INFO function:【load_image】,runtime:【0.10200977325439453】s +2024-03-27 11:28:54,627 decorator.py [line:11] INFO function:【load_image】,runtime:【0.10200977325439453】s +2024-03-27 11:28:57,010 decorator.py [line:11] INFO function:【get_result】,runtime:【2.6036272048950195】s +2024-03-27 11:28:57,010 decorator.py [line:11] INFO function:【get_result】,runtime:【2.6036272048950195】s +2024-03-27 11:28:57,107 decorator.py [line:11] INFO function:【load_image】,runtime:【0.09602761268615723】s +2024-03-27 11:28:57,107 decorator.py [line:11] INFO function:【load_image】,runtime:【0.09602761268615723】s +2024-03-27 11:28:57,212 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08440542221069336】s +2024-03-27 11:28:57,212 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08440542221069336】s +2024-03-27 11:28:57,324 decorator.py [line:11] INFO function:【load_image】,runtime:【0.09081506729125977】s +2024-03-27 11:28:57,324 decorator.py [line:11] INFO function:【load_image】,runtime:【0.09081506729125977】s +2024-03-27 11:28:57,430 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08171415328979492】s +2024-03-27 11:28:57,430 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08171415328979492】s +2024-03-27 11:28:57,567 decorator.py [line:11] INFO function:【load_image】,runtime:【0.11722540855407715】s +2024-03-27 11:28:57,567 decorator.py [line:11] INFO function:【load_image】,runtime:【0.11722540855407715】s +2024-03-27 11:28:57,678 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08625340461730957】s +2024-03-27 11:28:57,678 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08625340461730957】s +2024-03-27 11:28:57,824 decorator.py [line:11] INFO function:【get_result】,runtime:【0.8130843639373779】s +2024-03-27 11:28:57,824 decorator.py [line:11] INFO function:【get_result】,runtime:【0.8130843639373779】s +2024-03-27 11:28:57,895 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06562995910644531】s +2024-03-27 11:28:57,895 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06562995910644531】s +2024-03-27 11:28:58,000 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08478975296020508】s +2024-03-27 11:28:58,000 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08478975296020508】s +2024-03-27 11:28:58,034 decorator.py [line:11] INFO function:【get_result】,runtime:【0.2043590545654297】s +2024-03-27 11:28:58,034 decorator.py [line:11] INFO function:【get_result】,runtime:【0.2043590545654297】s +2024-03-27 11:28:58,101 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06698036193847656】s +2024-03-27 11:28:58,101 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06698036193847656】s +2024-03-27 11:28:58,242 decorator.py [line:11] INFO function:【load_image】,runtime:【0.11905717849731445】s +2024-03-27 11:28:58,242 decorator.py [line:11] INFO function:【load_image】,runtime:【0.11905717849731445】s +2024-03-27 11:28:58,285 decorator.py [line:11] INFO function:【get_result】,runtime:【0.2512340545654297】s +2024-03-27 11:28:58,285 decorator.py [line:11] INFO function:【get_result】,runtime:【0.2512340545654297】s +2024-03-27 11:28:58,367 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07999205589294434】s +2024-03-27 11:28:58,367 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07999205589294434】s +2024-03-27 11:28:58,463 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07760047912597656】s +2024-03-27 11:28:58,463 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07760047912597656】s +2024-03-27 11:28:58,543 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06173586845397949】s +2024-03-27 11:28:58,543 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06173586845397949】s +2024-03-27 11:28:58,636 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07255721092224121】s +2024-03-27 11:28:58,636 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07255721092224121】s +2024-03-27 11:28:58,723 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0690464973449707】s +2024-03-27 11:28:58,723 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0690464973449707】s +2024-03-27 11:28:58,813 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06989359855651855】s +2024-03-27 11:28:58,813 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06989359855651855】s +2024-03-27 11:28:58,907 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07435822486877441】s +2024-03-27 11:28:58,907 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07435822486877441】s +2024-03-27 11:28:58,997 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06914925575256348】s +2024-03-27 11:28:58,997 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06914925575256348】s +2024-03-27 11:28:59,089 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07468628883361816】s +2024-03-27 11:28:59,089 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07468628883361816】s +2024-03-27 11:28:59,342 decorator.py [line:11] INFO function:【get_result】,runtime:【1.055443286895752】s +2024-03-27 11:28:59,342 decorator.py [line:11] INFO function:【get_result】,runtime:【1.055443286895752】s +2024-03-27 11:28:59,419 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07607388496398926】s +2024-03-27 11:28:59,419 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07607388496398926】s +2024-03-27 11:28:59,523 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08356571197509766】s +2024-03-27 11:28:59,523 decorator.py [line:11] INFO function:【load_image】,runtime:【0.08356571197509766】s +2024-03-27 11:28:59,611 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07082462310791016】s +2024-03-27 11:28:59,611 decorator.py [line:11] INFO function:【load_image】,runtime:【0.07082462310791016】s +2024-03-27 11:28:59,695 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06639719009399414】s +2024-03-27 11:28:59,695 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06639719009399414】s +2024-03-27 11:28:59,782 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06848025321960449】s +2024-03-27 11:28:59,782 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06848025321960449】s +2024-03-27 11:28:59,861 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06321930885314941】s +2024-03-27 11:28:59,861 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06321930885314941】s +2024-03-27 11:28:59,949 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06985092163085938】s +2024-03-27 11:28:59,949 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06985092163085938】s +2024-03-27 11:29:00,036 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06791377067565918】s +2024-03-27 11:29:00,036 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06791377067565918】s +2024-03-27 11:29:00,124 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0706472396850586】s +2024-03-27 11:29:00,124 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0706472396850586】s +2024-03-27 11:29:00,171 decorator.py [line:11] INFO function:【get_result】,runtime:【0.8278758525848389】s +2024-03-27 11:29:00,171 decorator.py [line:11] INFO function:【get_result】,runtime:【0.8278758525848389】s +2024-03-27 11:29:00,235 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06318235397338867】s +2024-03-27 11:29:00,235 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06318235397338867】s +2024-03-27 11:29:00,322 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06962013244628906】s +2024-03-27 11:29:00,322 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06962013244628906】s +2024-03-27 11:29:00,405 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06734132766723633】s +2024-03-27 11:29:00,405 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06734132766723633】s +2024-03-27 11:29:00,481 decorator.py [line:11] INFO function:【load_image】,runtime:【0.05873560905456543】s +2024-03-27 11:29:00,481 decorator.py [line:11] INFO function:【load_image】,runtime:【0.05873560905456543】s +2024-03-27 11:29:00,560 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06250882148742676】s +2024-03-27 11:29:00,560 decorator.py [line:11] INFO function:【load_image】,runtime:【0.06250882148742676】s +2024-03-27 11:29:00,638 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0628812313079834】s +2024-03-27 11:29:00,638 decorator.py [line:11] INFO function:【load_image】,runtime:【0.0628812313079834】s +2024-03-27 11:29:00,679 decorator.py [line:11] INFO function:【get_result】,runtime:【0.5070171356201172】s +2024-03-27 11:29:00,679 decorator.py [line:11] INFO function:【get_result】,runtime:【0.5070171356201172】s +2024-03-27 11:29:00,680 api_outfit_matcher.py [line:43] INFO run time is : 9.467643737792969 +2024-03-27 11:29:00,680 api_outfit_matcher.py [line:43] INFO run time is : 9.467643737792969 diff --git a/app/schemas/similar_match.py b/app/schemas/similar_match.py index 5deb058..e5fb063 100644 --- a/app/schemas/similar_match.py +++ b/app/schemas/similar_match.py @@ -3,3 +3,4 @@ from pydantic import BaseModel class SimilarMatchMItem(BaseModel): image_path: str + result_number: int diff --git a/app/service/outfit_matcher/outfit_evaluator.py b/app/service/outfit_matcher/outfit_evaluator.py index 2404454..0392414 100644 --- a/app/service/outfit_matcher/outfit_evaluator.py +++ b/app/service/outfit_matcher/outfit_evaluator.py @@ -8,7 +8,7 @@ from matplotlib import pyplot as plt, image as mpimg from minio import Minio from torchvision import transforms -from app.core.config import MINIO_IP, MINIO_ACCESS, MINIO_SECRET, MINIO_SECURE, MINIO_PORT, OM_TRITON_PORT, OM_TRITON_IP +from app.core.config import * from app.service.outfit_matcher.foco import extract_main_colors from app.service.utils.decorator import RunTime diff --git a/app/service/outfit_matcher/test_param/test.json b/app/service/outfit_matcher/test_param/test.json new file mode 100644 index 0000000..a62fd97 --- /dev/null +++ b/app/service/outfit_matcher/test_param/test.json @@ -0,0 +1,19 @@ +{ + "topk": 1, + "max_outfits": 5, + "is_best": true, + "query": [ + { + "image_path": "mi-tu/26/BOTTOM/PANTS/MKTS27000_0BLK.jpg/3f4676db-98a1-44d4-947f-9d1f59828629.jpg", + "item_name": "MKTS27000", + "semantic_category": "BOTTOM/PANTS" + } + ], + "database": [ + { + "image_path": "mi-tu/26/TOP/BLOUSE/MKTS27002_0WHT.jpg/131cc29e-8f70-4134-a0e8-82f826b00058.jpg", + "item_name": "MKTS27002", + "semantic_category": "TOP/BLOUSE" + } + ] +} \ No newline at end of file diff --git a/app/service/similar_match/service.py b/app/service/similar_match/service.py index dae4af9..a071461 100644 --- a/app/service/similar_match/service.py +++ b/app/service/similar_match/service.py @@ -10,6 +10,8 @@ from pymilvus import MilvusClient from app.core.config import * from torchvision import transforms +from app.service.utils.decorator import RunTime + class SimilarMatch: def __init__(self): @@ -77,19 +79,20 @@ class SimilarMatch: features = results.as_numpy("output__1") # Shape (N, 64) return features + @RunTime def match_features(self, features): # 连接milvus # 连接milvus client = MilvusClient(uri="http://10.1.1.240:19530", db_name="mixi") try: - res = client.search( + search_response = client.search( collection_name="mixi_outfit", # Replace with the actual name of your collection # Replace with your query vector data=[features[0]], limit=5, # Max. number of search results to return output_fields=["id", "image_path"], # Search parameters ) - return res + return search_response finally: client.close() @@ -97,6 +100,6 @@ class SimilarMatch: if __name__ == '__main__': service = SimilarMatch() features = service.get_features(img_path="test/2024 SS/MKTS27000.jpg") - res = service.match_features(features) + search_response = service.match_features(features) - print(json.dumps(res, indent=4)) + print(json.dumps(search_response, indent=4)) diff --git a/app/service/utils/decorator.py b/app/service/utils/decorator.py index 294b54b..2e563fc 100644 --- a/app/service/utils/decorator.py +++ b/app/service/utils/decorator.py @@ -9,6 +9,7 @@ def RunTime(func): t2 = time.time() if t2 - t1 > 0.05: logging.info(f"function:【{func.__name__}】,runtime:【{str(t2 - t1)}】s") + print(f"function:【{func.__name__}】,runtime:【{str(t2 - t1)}】s") return res return wrapper diff --git a/requirements.txt b/requirements.txt index 084644b..0eb1ed8 100644 Binary files a/requirements.txt and b/requirements.txt differ diff --git a/test/attribute/infer_test.py b/test/attribute/infer_test.py new file mode 100644 index 0000000..e01b948 --- /dev/null +++ b/test/attribute/infer_test.py @@ -0,0 +1,110 @@ +import cv2 +import mmcv +import numpy as np +import tritonclient.http as httpclient +import torch + + +def preprocess(img): + img = mmcv.imread(img) + ori_shape = img.shape[:2] + img_scale = (224, 224) + scale_factor = [] + img, x, y = mmcv.imresize(img, img_scale, return_scale=True) + scale_factor.append(x) + scale_factor.append(y) + img = mmcv.imnormalize(img, mean=np.array([123.675, 116.28, 103.53]), std=np.array([58.395, 57.12, 57.375]), to_rgb=True) + preprocessed_img = np.expand_dims(img.transpose(2, 0, 1), axis=0) + return preprocessed_img, ori_shape + + +def get_attribute(model_save_name, sample): + triton_client = httpclient.InferenceServerClient(url=f"10.1.1.240:10020") + inputs = [ + httpclient.InferInput("input__0", sample.shape, datatype="FP32") + ] + inputs[0].set_data_from_numpy(sample, binary_data=True) + results = triton_client.infer(model_name=model_save_name, inputs=inputs) + inference_output = torch.from_numpy(results.as_numpy(f"output__0")) + scores = inference_output.detach().numpy() + print(f"{model} is ok") + + +image, shape = preprocess(cv2.imread("8365b04b-69d0-4f6d-a61b-a8cc136256263422b10ff45d4ae4e10be3fc25a9c36b.jpg")) +# get_attribute("attr_retrieve_D_sleeve_shape", image) + +model_list = ['top_length', + 'top_type', + 'top_Sleeve_length', + 'top_Sleeve_shape', + 'top_Sleeve_shoulder', + 'top_Neckline', + 'top_print', + 'top_material', + 'top_Softness', + 'top_Design', + 'top_optype', + 'top_Silhouette', + 'top_Collar', + 'bottom_sub-Type', + 'bottom_length', + 'bottom_print', + 'bottom_material', + 'bottom_Softness_B', + 'bottom_Silhouette_B', + 'bottom_OPType_B', + 'bottom_design', + 'outwear_outer_length', + # 'outwear_2_outer_type', + 'outwear_outer_sleeve_length', + 'outwear_outer_sleeve_shape', + 'outwear_outer_sleeve_shoulder', + 'outwear_outer_collar', + 'outwear_print', + 'outwear_material', + 'outwear_outer_softness', + 'outwear_outer_design', + # 'outwear_11_outer_opening', + 'outwear_outer_optype', + 'outwear_outer_silhouette', + 'jumpsuit_length', + 'jumpsuit_sleeve_length', + 'jumpsuit_sleeve_shape', + 'jumpsuit_sleeve_shoulder', + 'jumpsuit_neckline', + 'jumpsuit_collar', + 'jumpsuit_print', + 'jumpsuit_material', + 'jumpsuit_softness', + 'jumpsuit_design', + 'jumpsuit_optype', + 'jumpsuit_subtype', + 'dress_length', + 'dress_sleeve_length', + 'dress_sleeve_shape', + 'dress_sleeve_shoulder', + 'dress_neckline', + 'dress_print', + 'dress_collar', + 'dress_material', + 'dress_design', + 'dress_softness', + 'dress_silohouette12', + # 'dress_' + 'dress_type' + ] +except_model = [] +# 'attr_recong_B_optype', 'attr_recong_D_length', 'attr_recong_O_length', 'attr_recong_O_optype', 'attr_recong_material', +# 'attr_recong_print', 'attr_retrieve_D_collar', 'attr_retrieve_D_design', 'attr_retrieve_D_neckline', 'attr_retrieve_D_silohouette', +# 'attr_retrieve_D_sleeve_shape', 'attr_retrieve_D_sleeve_shoulder', 'attr_retrieve_D_type', 'attr_retrieve_T_length', 'attr_retrieve_T_optype' + +# for model in model_list: +# get_attribute(model, image) + +for model in model_list: + try: + get_attribute(model, image) + except Exception as e: + print(e) + except_model.append(model) +print(except_model) diff --git a/test/attribute/model.py b/test/attribute/model.py new file mode 100644 index 0000000..1c7ac6a --- /dev/null +++ b/test/attribute/model.py @@ -0,0 +1,56 @@ +var = ["bottom_OPType_B", + "bottom_Silhouette_B", + "bottom_Softness_B", + "bottom_design", + "bottom_length", + "bottom_material", + "bottom_print", + "bottom_sub-Type", + "category", + "dress_collar", + "dress_design", + "dress_length", + "dress_material", + "dress_neckline", + "dress_print", + "dress_silohouette2", + "dress_sleeve_length", + "dress_sleeve_shape", + "dress_sleeve_shoulder", + "dress_softness", + "dress_type", + "jumpsuit_collar", + "jumpsuit_design", + "jumpsuit_length", + "jumpsuit_material", + "jumpsuit_optype", + "jumpsuit_print", + "jumpsuit_sleeve_length", + "jumpsuit_sleeve_shape", + "jumpsuit_sleeve_shoulder", + "jumpsuit_softness", + "jumpsuit_subtype", + "outwear_material", + "outwear_outear_length", + "outwear_outer_collar", + "outwear_outer_design", + "outwear_outer_optype", + "outwear_outer_silhouette", + "outwear_outer_sleeve_length", + "outwear_outer_sleeve_shape", + "outwear_outer_sleeve_shoulder", + "outwear_outer_softness", + "outwear_print", + "top_Collar", + "top_Design", + "top_Neckline", + "top_Silhouette", + "top_Sleeve_length", + "top_Sleeve_shape", + "top_Sleeve_shoulder", + "top_Softness", + "top_length", + "top_material", + "top_optype", + "top_print", + "top_type", ] diff --git a/test/attribute_recognition_model_infer/attribute_recognition_model_infer.py b/test/attribute_recognition_model_infer/attribute_recognition_model_infer.py new file mode 100644 index 0000000..67a6c0b --- /dev/null +++ b/test/attribute_recognition_model_infer/attribute_recognition_model_infer.py @@ -0,0 +1,51 @@ +from pprint import pprint + +import cv2 +import mmcv +import numpy as np +import tritonclient.http as httpclient +import torch + +from app.core.config import ATT_TRITON_PORT, ATT_TRITON_IP + +model_list = ['bottom_design', 'bottom_length', 'bottom_material', 'bottom_OPType_B', 'bottom_print', 'bottom_Silhouette_B', 'bottom_Softness_B', 'bottom_sub-Type', 'category', 'dress_collar', 'dress_design', 'dress_length', 'dress_material', 'dress_neckline', 'dress_print', 'dress_silohouette12', 'dress_sleeve_length', 'dress_sleeve_shape', 'dress_sleeve_shoulder', 'dress_softness', 'dress_type', 'jumpsuit_collar', 'jumpsuit_design', 'jumpsuit_length', 'jumpsuit_material', 'jumpsuit_optype', + 'jumpsuit_print', 'jumpsuit_sleeve_length', 'jumpsuit_sleeve_shape', 'jumpsuit_sleeve_shoulder', 'jumpsuit_softness', 'jumpsuit_subtype', 'outwear_material', 'outwear_outear_length', 'outwear_outer_collar', 'outwear_outer_design', 'outwear_outer_optype', 'outwear_outer_silhouette', 'outwear_outer_sleeve_length', 'outwear_outer_sleeve_shape', 'outwear_outer_sleeve_shoulder', 'outwear_outer_softness', 'outwear_print', 'top_Collar', 'top_Design', 'top_length', 'top_material', + 'top_Neckline', 'top_optype', 'top_print', 'top_Silhouette', 'top_Sleeve_length', 'top_Sleeve_shape', 'top_Sleeve_shoulder', 'top_Softness', 'top_type'] + + +def preprocess(img): + img = mmcv.imread(img) + ori_shape = img.shape[:2] + img_scale = (224, 224) + scale_factor = [] + img, x, y = mmcv.imresize(img, img_scale, return_scale=True) + scale_factor.append(x) + scale_factor.append(y) + img = mmcv.imnormalize(img, mean=np.array([123.675, 116.28, 103.53]), std=np.array([58.395, 57.12, 57.375]), to_rgb=True) + preprocessed_img = np.expand_dims(img.transpose(2, 0, 1), axis=0) + return preprocessed_img, ori_shape + + +def get_attribute(model_save_name, sample): + triton_client = httpclient.InferenceServerClient(url=f"{ATT_TRITON_IP}:{ATT_TRITON_PORT}") + inputs = [ + httpclient.InferInput("input__0", sample.shape, datatype="FP32") + ] + inputs[0].set_data_from_numpy(sample, binary_data=True) + results = triton_client.infer(model_name=model_save_name, inputs=inputs) + inference_output = torch.from_numpy(results.as_numpy(f"output__0")) + scores = inference_output.detach().numpy() + pprint(scores) + print(f"{model_save_name} is ok") + + +image, shape = preprocess(cv2.imread("test_top1.jpg")) +except_model = [] + +for model in model_list: + try: + get_attribute(model, image) + except Exception as e: + print(e) + except_model.append(model) +print(except_model) diff --git a/test/json/outfit_response.py b/test/json/outfit_response.py new file mode 100644 index 0000000..c834f65 --- /dev/null +++ b/test/json/outfit_response.py @@ -0,0 +1,273 @@ +a = [{'best_outfits': [({'image_path': 'test/2024 SS/MKTS27047.jpg', + 'item_name': 'MKTS27047', + 'mapped_cate': 'all-body', + 'semantic_category': 'ONE PIECE/DRESS'}, + {'image_path': 'test/2024 SS/MLSS27156.jpg', + 'item_name': 'MLSS27156', + 'mapped_cate': 'outerwear', + 'semantic_category': 'TOP/VEST'}), + ({'image_path': 'test/2024 SS/MKTS27047.jpg', + 'item_name': 'MKTS27047', + 'mapped_cate': 'all-body', + 'semantic_category': 'ONE PIECE/DRESS'}, + {'image_path': 'test/2024 SS/MLSS27157.jpg', + 'item_name': 'MLSS27157', + 'mapped_cate': 'outerwear', + 'semantic_category': 'OUTERWEAR/WINDBREAKER'}), + ({'image_path': 'test/2024 SS/MKTS27047.jpg', + 'item_name': 'MKTS27047', + 'mapped_cate': 'all-body', + 'semantic_category': 'ONE PIECE/DRESS'}, + {'image_path': 'test/2024 SS/MLSS27150.jpg', + 'item_name': 'MLSS27150', + 'mapped_cate': 'outerwear', + 'semantic_category': 'OUTERWEAR/JACKET'}), + ({'image_path': 'test/2024 SS/MKTS27047.jpg', + 'item_name': 'MKTS27047', + 'mapped_cate': 'all-body', + 'semantic_category': 'ONE PIECE/DRESS'}, + {'image_path': 'test/2024 SS/MSE_56720.jpg', + 'item_name': 'MSE_56720', + 'mapped_cate': 'outerwear', + 'semantic_category': 'OUTERWEAR/BLAZER'}), + ({'image_path': 'test/2024 SS/MKTS27047.jpg', + 'item_name': 'MKTS27047', + 'mapped_cate': 'all-body', + 'semantic_category': 'ONE PIECE/DRESS'}, + {'image_path': 'test/2024 SS/MLSS27109.jpg', + 'item_name': 'MLSS27109', + 'mapped_cate': 'outerwear', + 'semantic_category': 'JEANS/JEANS JACKET'})], + 'best_scores': [-0.111208215, + -0.120505564, + -0.1213615, + -0.12190802, + -0.12419219]}, + {'best_outfits': [({'image_path': 'test/2024 SS/MKTS27028.jpg', + 'item_name': 'MKTS27028', + 'mapped_cate': 'outerwear', + 'semantic_category': 'OUTERWEAR/JACKET'}, + {'image_path': 'test/2024 SS/MSE_58107.jpg', + 'item_name': 'MSE_58107', + 'mapped_cate': 'tops', + 'semantic_category': 'TOP/SHIRT'}, + {'image_path': 'test/2024 SS/MLSS27133.jpg', + 'item_name': 'MLSS27133', + 'mapped_cate': 'bottoms', + 'semantic_category': 'BOTTOM/SKIRT'}), + ({'image_path': 'test/2024 SS/MKTS27028.jpg', + 'item_name': 'MKTS27028', + 'mapped_cate': 'outerwear', + 'semantic_category': 'OUTERWEAR/JACKET'}, + {'image_path': 'test/2024 SS/MLSS27132.jpg', + 'item_name': 'MLSS27132', + 'mapped_cate': 'tops', + 'semantic_category': 'TOP/TOP'}, + {'image_path': 'test/2024 SS/MLSS27159.jpg', + 'item_name': 'MLSS27159', + 'mapped_cate': 'bottoms', + 'semantic_category': 'BOTTOM/PANTS'}), + ({'image_path': 'test/2024 SS/MKTS27028.jpg', + 'item_name': 'MKTS27028', + 'mapped_cate': 'outerwear', + 'semantic_category': 'OUTERWEAR/JACKET'}, + {'image_path': 'test/2024 SS/MLSS27132.jpg', + 'item_name': 'MLSS27132', + 'mapped_cate': 'tops', + 'semantic_category': 'TOP/TOP'}, + {'image_path': 'test/2024 SS/MLSS27133.jpg', + 'item_name': 'MLSS27133', + 'mapped_cate': 'bottoms', + 'semantic_category': 'BOTTOM/SKIRT'}), + ({'image_path': 'test/2024 SS/MKTS27028.jpg', + 'item_name': 'MKTS27028', + 'mapped_cate': 'outerwear', + 'semantic_category': 'OUTERWEAR/JACKET'}, + {'image_path': 'test/2024 SS/MKTS27039.jpg', + 'item_name': 'MKTS27039', + 'mapped_cate': 'tops', + 'semantic_category': 'TOP/TOP'}, + {'image_path': 'test/2024 SS/MLSS27226.jpg', + 'item_name': 'MLSS27226', + 'mapped_cate': 'bottoms', + 'semantic_category': 'BOTTOM/SKIRT'}), + ({'image_path': 'test/2024 SS/MKTS27028.jpg', + 'item_name': 'MKTS27028', + 'mapped_cate': 'outerwear', + 'semantic_category': 'OUTERWEAR/JACKET'}, + {'image_path': 'test/2024 SS/MLSS27146.jpg', + 'item_name': 'MLSS27146', + 'mapped_cate': 'tops', + 'semantic_category': 'TOP/TOP'}, + {'image_path': 'test/2024 SS/MSE_58518.jpg', + 'item_name': 'MSE_58518', + 'mapped_cate': 'bottoms', + 'semantic_category': 'BOTTOM/SKIRT'})], + 'best_scores': [-0.111208215, + -0.11449928, + -0.11642833, + -0.120505564, + -0.1213615]}, + {'best_outfits': [({'image_path': 'test/2024 SS/MSE_58057.jpg', + 'item_name': 'MSE_58057', + 'mapped_cate': 'outerwear', + 'semantic_category': 'OUTERWEAR/BLAZER'}, + {'image_path': 'test/2024 SS/MKTS27046.jpg', + 'item_name': 'MKTS27046', + 'mapped_cate': 'tops', + 'semantic_category': 'TOP/SHIRT'}, + {'image_path': 'test/2024 SS/MSE_58518.jpg', + 'item_name': 'MSE_58518', + 'mapped_cate': 'bottoms', + 'semantic_category': 'BOTTOM/SKIRT'}), + ({'image_path': 'test/2024 SS/MSE_58057.jpg', + 'item_name': 'MSE_58057', + 'mapped_cate': 'outerwear', + 'semantic_category': 'OUTERWEAR/BLAZER'}, + {'image_path': 'test/2024 SS/MSE_58473.jpg', + 'item_name': 'MSE_58473', + 'mapped_cate': 'tops', + 'semantic_category': 'KNIT/KNIT TOP'}, + {'image_path': 'test/2024 SS/MKTS27031.jpg', + 'item_name': 'MKTS27031', + 'mapped_cate': 'bottoms', + 'semantic_category': 'BOTTOM/SKIRT'}), + ({'image_path': 'test/2024 SS/MSE_58057.jpg', + 'item_name': 'MSE_58057', + 'mapped_cate': 'outerwear', + 'semantic_category': 'OUTERWEAR/BLAZER'}, + {'image_path': 'test/2024 SS/MPO_SP7687.jpg', + 'item_name': 'MPO_SP7687', + 'mapped_cate': 'tops', + 'semantic_category': 'TOP/SHIRT'}, + {'image_path': 'test/2024 SS/MLSS27107.jpg', + 'item_name': 'MLSS27107', + 'mapped_cate': 'bottoms', + 'semantic_category': 'JEANS/JEANS'}), + ({'image_path': 'test/2024 SS/MSE_58057.jpg', + 'item_name': 'MSE_58057', + 'mapped_cate': 'outerwear', + 'semantic_category': 'OUTERWEAR/BLAZER'}, + {'image_path': 'test/2024 SS/MLSS27142.jpg', + 'item_name': 'MLSS27142', + 'mapped_cate': 'tops', + 'semantic_category': 'TOP/SHIRT'}, + {'image_path': 'test/2024 SS/MLSS27159.jpg', + 'item_name': 'MLSS27159', + 'mapped_cate': 'bottoms', + 'semantic_category': 'BOTTOM/PANTS'}), + ({'image_path': 'test/2024 SS/MSE_58057.jpg', + 'item_name': 'MSE_58057', + 'mapped_cate': 'outerwear', + 'semantic_category': 'OUTERWEAR/BLAZER'}, + {'image_path': 'test/2024 SS/MLSS27142.jpg', + 'item_name': 'MLSS27142', + 'mapped_cate': 'tops', + 'semantic_category': 'TOP/SHIRT'}, + {'image_path': 'test/2024 SS/MLSS27226.jpg', + 'item_name': 'MLSS27226', + 'mapped_cate': 'bottoms', + 'semantic_category': 'BOTTOM/SKIRT'})], + 'best_scores': [-0.111208215, + -0.11449928, + -0.11642833, + -0.120505564, + -0.1213615]}, + {'best_outfits': [({'image_path': 'test/2024 SS/MSE_58107.jpg', + 'item_name': 'MSE_58107', + 'mapped_cate': 'tops', + 'semantic_category': 'TOP/SHIRT'}, + {'image_path': 'test/2024 SS/MLSS27159.jpg', + 'item_name': 'MLSS27159', + 'mapped_cate': 'bottoms', + 'semantic_category': 'BOTTOM/PANTS'}, + {'image_path': 'test/2024 SS/MSE_58289.jpg', + 'item_name': 'MSE_58289', + 'mapped_cate': 'outerwear', + 'semantic_category': 'OUTERWEAR/BLAZER'}), + ({'image_path': 'test/2024 SS/MSE_58107.jpg', + 'item_name': 'MSE_58107', + 'mapped_cate': 'tops', + 'semantic_category': 'TOP/SHIRT'}, + {'image_path': 'test/2024 SS/MLSS27111.jpg', + 'item_name': 'MLSS27111', + 'mapped_cate': 'bottoms', + 'semantic_category': 'JEANS/JEANS PANTS'}), + ({'image_path': 'test/2024 SS/MSE_58107.jpg', + 'item_name': 'MSE_58107', + 'mapped_cate': 'tops', + 'semantic_category': 'TOP/SHIRT'}, + {'image_path': 'test/2024 SS/MLSS27104.jpg', + 'item_name': 'MLSS27104', + 'mapped_cate': 'bottoms', + 'semantic_category': 'BOTTOM/SHORTS'}), + ({'image_path': 'test/2024 SS/MSE_58107.jpg', + 'item_name': 'MSE_58107', + 'mapped_cate': 'tops', + 'semantic_category': 'TOP/SHIRT'}, + {'image_path': 'test/2024 SS/MLSS27159.jpg', + 'item_name': 'MLSS27159', + 'mapped_cate': 'bottoms', + 'semantic_category': 'BOTTOM/PANTS'}), + ({'image_path': 'test/2024 SS/MSE_58107.jpg', + 'item_name': 'MSE_58107', + 'mapped_cate': 'tops', + 'semantic_category': 'TOP/SHIRT'}, + {'image_path': 'test/2024 SS/MLSS27160.jpg', + 'item_name': 'MLSS27160', + 'mapped_cate': 'bottoms', + 'semantic_category': 'BOTTOM/PANTS'})], + 'best_scores': [-0.111208215, + -0.11449928, + -0.120505564, + -0.1213615, + -0.12190802]}, + {'best_outfits': [({'image_path': 'test/2024 SS/MSE_58495.jpg', + 'item_name': 'MSE_58495', + 'mapped_cate': 'tops', + 'semantic_category': 'TOP/SHIRT'}, + {'image_path': 'test/2024 SS/MLSS27159.jpg', + 'item_name': 'MLSS27159', + 'mapped_cate': 'bottoms', + 'semantic_category': 'BOTTOM/PANTS'}), + ({'image_path': 'test/2024 SS/MSE_58495.jpg', + 'item_name': 'MSE_58495', + 'mapped_cate': 'tops', + 'semantic_category': 'TOP/SHIRT'}, + {'image_path': 'test/2024 SS/MLSS27160.jpg', + 'item_name': 'MLSS27160', + 'mapped_cate': 'bottoms', + 'semantic_category': 'BOTTOM/PANTS'}), + ({'image_path': 'test/2024 SS/MSE_58495.jpg', + 'item_name': 'MSE_58495', + 'mapped_cate': 'tops', + 'semantic_category': 'TOP/SHIRT'}, + {'image_path': 'test/2024 SS/MLSS27159.jpg', + 'item_name': 'MLSS27159', + 'mapped_cate': 'bottoms', + 'semantic_category': 'BOTTOM/PANTS'}, + {'image_path': 'test/2024 SS/MLSS27109.jpg', + 'item_name': 'MLSS27109', + 'mapped_cate': 'outerwear', + 'semantic_category': 'JEANS/JEANS JACKET'}), + ({'image_path': 'test/2024 SS/MSE_58495.jpg', + 'item_name': 'MSE_58495', + 'mapped_cate': 'tops', + 'semantic_category': 'TOP/SHIRT'}, + {'image_path': 'test/2024 SS/MLSS27119.jpg', + 'item_name': 'MLSS27119', + 'mapped_cate': 'bottoms', + 'semantic_category': 'JEANS/JEANS SKIRT'}), + ({'image_path': 'test/2024 SS/MSE_58495.jpg', + 'item_name': 'MSE_58495', + 'mapped_cate': 'tops', + 'semantic_category': 'TOP/SHIRT'}, + {'image_path': 'test/2024 SS/MKTS27000.jpg', + 'item_name': 'MKTS27000', + 'mapped_cate': 'bottoms', + 'semantic_category': 'BOTTOM/PANTS'})], + 'best_scores': [-0.111208215, + -0.11449928, + -0.120505564, + -0.1213615, + -0.12190802]}] diff --git a/test/minio_client_test/minio_client.py b/test/minio_client_test/minio_client.py new file mode 100644 index 0000000..48f041c --- /dev/null +++ b/test/minio_client_test/minio_client.py @@ -0,0 +1,12 @@ +from minio import Minio + +from app.core.config import MINIO_PORT, MINIO_IP, MINIO_ACCESS, MINIO_SECRET, MINIO_SECURE + +minio_client = Minio( + f"{MINIO_IP}:{MINIO_PORT}", + access_key=MINIO_ACCESS, + secret_key=MINIO_SECRET, + secure=MINIO_SECURE) + +for i in minio_client.list_objects('test'): + print(i.object_name) diff --git a/test/outfit_matcher/triton_infer.py b/test/outfit_matcher/triton_infer.py new file mode 100644 index 0000000..e69de29