Skip to content

Commit

Permalink
Fix small bug where images with the same id are not updated under web…
Browse files Browse the repository at this point in the history
…cam mode
  • Loading branch information
jerryli27 committed Oct 14, 2018
1 parent 8dc7062 commit f0b7552
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interface/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,12 @@ def automatic_retry(self, func, num_tries=3):
return succeed, paths

@staticmethod
def domain_transfer(transferred_image_file_format, images):
def domain_transfer(transferred_image_file_format, images, skip_existing_images=False):
ret = []
for i, image in enumerate(images):
image_path = transferred_image_file_format % i
ret.append(image_path)
if os.path.exists(image_path):
if skip_existing_images and os.path.exists(image_path):
continue
DT_CLIENT.do_inference(image_path, image_np=image)
DT_CLIENT.block_on_callback(image_path)
Expand Down

0 comments on commit f0b7552

Please sign in to comment.