def manifest_reader()

in gt_converter/converter.py [0:0]


    def manifest_reader(self, manifest_path, localpathname="output_manifest"):
        """
        Generator to return each image GT annotations
        :param manifest_path: Path of manifest file
        """
        manifest_path, cleanup, self.manifestcount = self._maybe_download_from_s3(
            manifest_path, localpathname
        )

        for line in open(manifest_path, mode="r"):
            yield json.loads(line)

        if cleanup:
            os.remove(manifest_path)