in src/get-feedback.py [0:0]
def run(self, args):
event = self.validateInput(args)
self.jobsFile = event["jobsFile"]
print("Jobs manifest file: {}".format(self.jobsFile))
outputBucket, jobsListFile = S3Helper.parseBucketAndDocumentName(self.jobsFile)
# print("Output bucket: {}, Jobs file: {}".format(outputBucket, jobsListFile))
self.inputParameters["outputBucket"] = outputBucket
self.inputParameters["jobsListFile"] = jobsListFile
jobs = self.processJobFile()
hasLabelResults = False
if(jobs["label-verification-job"]):
print("Processing label verification jobs...")
labelJobProcessor = LabelVerificationJobProcessor(self.inputParameters)
labelJobProcessor.run(jobs["label-verification-job"])
hasLabelResults = True
print("Processed label verification jobs...")
hasBBResults = False
if(jobs["bounding-box-verification-jobs"]):
print("Processing bounding box verification jobs...")
bbJobProcessor = BoundingBoxVerificationJobProcessor(self.inputParameters)
bbJobProcessor.run(jobs["bounding-box-verification-jobs"])
hasBBResults = True
print("Processed bounding box verification jobs...")
hasNoLabelResults = False
if(jobs["no-labels-manifest-file"]):
print("Processing no labels manifest...")
# print(jobs["no-labels-manifest-file"])
nlbBucket, self.inputParameters["noLabelsFile"] = S3Helper.parseBucketAndDocumentName(jobs["no-labels-manifest-file"])
hasNoLabelResults = True
print("Processed no labels manifest...")
self.mergeBBAndLabelsOutput(hasBBResults, hasLabelResults, hasNoLabelResults)