Tensorflow feature that consists of bounding boxes lists

文章推薦指數: 80 %
投票人數:10人

Now I want to use the tfa.losses. ... code ValueError: Dimension must be 4 but is 7876 for '{{node giou_loss/unstack}} = Unpack[T=DT_FLOAT, ... Home Public Questions Tags Users Companies Collectives ExploreCollectives Teams StackOverflowforTeams –Startcollaboratingandsharingorganizationalknowledge. CreateafreeTeam WhyTeams? Teams CreatefreeTeam Collectives™onStackOverflow Findcentralized,trustedcontentandcollaboratearoundthetechnologiesyouusemost. LearnmoreaboutCollectives Teams Q&Aforwork Connectandshareknowledgewithinasinglelocationthatisstructuredandeasytosearch. LearnmoreaboutTeams Tensorflowfeaturethatconsistsofboundingboxeslists AskQuestion Asked 10monthsago Modified 10monthsago Viewed 71times 0 New!Savequestionsoranswersandorganizeyourfavoritecontent.Learnmore. IamverynewtotensorflowandItrytobuildamodelforfacedetectionwiththewiderfacedataset,inwhichthepicturescanhavemultipleboundingboxes CurrentlyIsavethearraythatconsitsoftheboundingboxes(eachboundingboxisalsoanarrayinformat[x,y,width,height])flattendtoanarrayofthesizeofthemaxboundingboxes*4,andthereforetheoutputlayerofmodelalsohasthissize,whichiswiththisdataset7876. WiththisconstellationIreceiveprettygoodaccuracyonmytrainingdataset,butitperformansreallybadonthetestdataset.Itrainwith6epochs,batchesofsize64andashufflewithabuffersizethatisequaltotheamountofrecrodsinthetraindataset.Furthermore,IusetransferlearningwithMobileNetV2withweightsimagenetasabasemodel. NowIwanttousethetfa.losses.GIoULoss()lossfunction,inordertomakeitbetterperformon,theboundingboxregressionandtopreventoverfitting. Theproblemis,thatislossfunctionlikethisexceptionsaysonlywants4outputsofmynetwork.Likethedocumentationshows(https://www.tensorflow.org/addons/api_docs/python/tfa/losses/GIoULoss)thelossfunctiontakesnboundingboxesthatarelistsof4elementseachasparameter. ThereforeIgetthefolliwingerrorinmycode ValueError:Dimensionmustbe4butis7876for'{{nodegiou_loss/unstack}}=Unpack[T=DT_FLOAT,axis=-1,num=4](sequential/dense_2/BiasAdd)'withinputshapes:[?,1,1,7876]. HowcanIsolvethisproblem,eachneuronisonlyabletoputoutasinglevalue,isntit?Sobecauseofthis,Iwouldhavetomapmyoutputlayerbackintolistsandbutthemintothelossfunction,buthowcanIachivethat? IhavealsoreadaboutBboxFeatureinthepackagetensorflow-datasets,wouldthisbeabetterapproachetorealizemygoal?Ialsoplayedwiththisapproachabit,butIfailtocreateanestedfeature,soalistthatcontainsallofmyboundingboxeslist.Inthedocstheywrotethatwhenhavingmultipleboundingboxesitwouldbepossibletoputthemallinatfds.feature.SequencebutfromtheirdocumentationitonlyunderstoodhowtodefinetheSequencebutnothowtoputthecontentinit. tensorflowregressionobject-detectionbounding-boxtensorflow-hub Share Improvethisquestion Follow editedNov30,2021at14:14 vazun askedNov29,2021at10:42 vazunvazun 16511silverbadge1010bronzebadges Addacomment  |  0 Sortedby: Resettodefault Highestscore(default) Trending(recentvotescountmore) Datemodified(newestfirst) Datecreated(oldestfirst) Knowsomeonewhocananswer?Sharealinktothisquestionviaemail,Twitter,orFacebook. YourAnswer ThanksforcontributingananswertoStackOverflow!Pleasebesuretoanswerthequestion.Providedetailsandshareyourresearch!Butavoid…Askingforhelp,clarification,orrespondingtootheranswers.Makingstatementsbasedonopinion;backthemupwithreferencesorpersonalexperience.Tolearnmore,seeourtipsonwritinggreatanswers. Draftsaved Draftdiscarded Signuporlogin SignupusingGoogle SignupusingFacebook SignupusingEmailandPassword Submit Postasaguest Name Email Required,butnevershown PostYourAnswer Discard Byclicking“PostYourAnswer”,youagreetoourtermsofservice,privacypolicyandcookiepolicy Browseotherquestionstaggedtensorflowregressionobject-detectionbounding-boxtensorflow-huboraskyourownquestion. TheOverflowBlog Bewarethescammersposingastechrecruiters(Ep.497) Fasterfeedbackloopsmakeforfasterdevelopervelocity FeaturedonMeta BookmarkshaveevolvedintoSaves Inboximprovements:markingnotificationsasread/unread,andafiltered... CollectivesUpdate:RecognizedMembers,Articles,andGitLab The[script]tagisbeingburninated StagingGroundWorkflow:CannedComments Related 4 PolygonboundingboxwithTensorflow 3 GetridofoverlappingboundingboxesacrossdifferentclassesinTensorflowObjectDetectionAPI 4 HowtofindboundingboxescoordinatesinTensorflowObjectDetectionAPI 1 Howtomaketensorflowboundingboxestoshowupevery"n"seconds? 0 BoundingBoxesforKerasApplicationsMobileNetV2missing? 0 Howtopreparelabeldataformultipleboundingboxeswhichhasasingleclassforobjectdetection? 0 Dataaugmentationwithboundingboxes HotNetworkQuestions Isthereanybenefittoaseparatetablethatisone-to-onewiththeprimarydatatable? IsSATanexistentialquestion? WhichBleachproductionsarecanonandneededtounderstandBleach:Thousand-YearBloodWar? Whatanatomicalfeatureswouldenabletreeclimbinginsomeonewithnoopposablethumbs? CanmyISPcensormyinternet? Whyscreendisplaysdeadpixelsat144Hzbutnotat60Hz? IfmyICisblownthedecouplingcapacitorisshortwhenItestwithamultimeter NuclearPistonEngine-Isitpossible? ObjectOrientedProgrammingTic-tac-toe(only66lines)inPython Capitalcitywithtwoclues IsthereaFrenchequivalentforFYI(foryourinformation)? PostgreSQLCreateALineColumnFromTwoPointColumns Arethewidthsof𝐿,𝑌,and𝑍inTeXGyreTermesMathreallyequal? Stringsformyguitar-I'msupposedtotieaknot,buttheyhavealoop Computationalefficiencyofcharactersumsforcountingfinitefieldpointsonacurve Doesanythingpreventano-confidencevoteintheUKGovernmentatthistime? Isitagoodpracticetoaddhard-codedsalttoBCryptpasswords? Wouldcopper-basedbloodbemoreeffectiveatcarryingoxygenratherthaniron-based?Orwouldithinderthedeliveryofoxygen? Oldscifishortstoryaboutweirdactingrulersinadecrepitoutpostandalonebountyhunterthatuncoversthetruth,theyarecontrolledbyfungi Whyisitimportanttotestearth-to-liveresistanceathighvoltage? Giftsinluggage Apiecefulstandoff CanJunouseJupiter'sgravitytoalteritsorbitsothatitgoesclosetoHimalia? Triangularpolkadotnumbers morehotquestions Questionfeed SubscribetoRSS Questionfeed TosubscribetothisRSSfeed,copyandpastethisURLintoyourRSSreader. lang-py Yourprivacy Byclicking“Acceptallcookies”,youagreeStackExchangecanstorecookiesonyourdeviceanddiscloseinformationinaccordancewithourCookiePolicy. Acceptallcookies Customizesettings  



請為這篇文章評分?