  from pathlib import Path
  from scandir import scandir
  
  image_extensions = [".jpg", ".jpeg", ".png", ".tif", ".tiff"]
  
  def get_folder(path):
 
</s>
import os
  from pathlib import Path
  from scandir import scandir
import os
  
  image_extensions = [".jpg", ".jpeg", ".png", ".tif", ".tiff"]
  
  def get_folder(path):
keep add keep keep keep keep
 Model backups before saving (#349)

* Sort images properly (to make the frame range parameter meaningfull)

* Add backup mechanism for model weights.

* Replace 'print' call by 'tqdm.write' call.
lib/utils.py