Skip to content

Commit 0798ba5

Browse files
committed
More logging
1 parent 0378104 commit 0798ba5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

datagen/generator.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def _rendering_loop(self, writer: Union[csv.DictWriter, None]) -> None:
190190
logging.info("Finished at max images")
191191
break
192192

193-
logging.info(f"Generated for {i + 1} input images")
193+
logging.info(f"Generated images for {i + 1} inputs")
194194

195195
def run(self) -> None:
196196
os.makedirs(os.path.join(self.dst, "images"))
@@ -202,6 +202,7 @@ def run(self) -> None:
202202
csv_file = open(os.path.join(self.dst, "map.csv"), "w")
203203
writer = csv.DictWriter(csv_file, ["base_img", "query_img"])
204204

205+
logging.info("Starting generation process")
205206
try:
206207
self._rendering_loop(writer)
207208
except Exception as e:
@@ -213,4 +214,7 @@ def run(self) -> None:
213214
logging.info("Map file closed")
214215

215216
if self.generate_meta:
217+
logging.info("Writing meta")
216218
self._write_meta()
219+
220+
logging.info("Done!")

0 commit comments

Comments
 (0)