Tensorflow feature that consists of bounding boxes lists
文章推薦指數: 80 %
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
延伸文章資訊
- 1tfa.losses.giou_loss | TensorFlow Addons
tfa.losses.giou_loss ... Implements the GIoU loss function. ... GIoU loss was first introduced in...
- 2Tensorflow feature that consists of bounding boxes lists
Now I want to use the tfa.losses. ... code ValueError: Dimension must be 4 but is 7876 for '{{nod...
- 3tfa.losses.GIoULoss | TensorFlow Addons
tfa.losses.GIoULoss ... Implements the GIoU loss function. ... GIoU loss was first introduced in ...
- 4tfaddons source: R/losses.R - Rdrr.io
@param margin Float, margin term in the loss definition. ... do.call(tfa$losses$LiftedStructLoss,...
- 5tfaddons.pdf
losses, optimizers, and more. ... See the docstring for tfa.seq2seq.monotonic_attention for more ...