Sin descripción
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. import os
  2. import shutil
  3. files = './front_face/'
  4. for root, dirs, files in os.walk(files):
  5. for f in files:
  6. os.unlink(os.path.join(root, f))
  7. for d in dirs:
  8. shutil.rmtree(os.path.join(root, d))
  9. files = './output_unique_ALLUNQ/'
  10. for root, dirs, files in os.walk(files):
  11. for f in files:
  12. os.unlink(os.path.join(root, f))
  13. for d in dirs:
  14. shutil.rmtree(os.path.join(root, d))
  15. files = './sepration_cluster/'
  16. for root, dirs, files in os.walk(files):
  17. for f in files:
  18. os.unlink(os.path.join(root, f))
  19. for d in dirs:
  20. shutil.rmtree(os.path.join(root, d))
  21. files = './sepration_crop/'
  22. for root, dirs, files in os.walk(files):
  23. for f in files:
  24. os.unlink(os.path.join(root, f))
  25. for d in dirs:
  26. shutil.rmtree(os.path.join(root, d))
  27. files = './unique_1/'
  28. for root, dirs, files in os.walk(files):
  29. for f in files:
  30. os.unlink(os.path.join(root, f))
  31. for d in dirs:
  32. shutil.rmtree(os.path.join(root, d))
  33. files = './Allunq_People/'
  34. for root, dirs, files in os.walk(files):
  35. for f in files:
  36. os.unlink(os.path.join(root, f))
  37. for d in dirs:
  38. shutil.rmtree(os.path.join(root, d))
  39. files = './people_Allunq_zero_maingallery/'
  40. for root, dirs, files in os.walk(files):
  41. for f in files:
  42. os.unlink(os.path.join(root, f))
  43. for d in dirs:
  44. shutil.rmtree(os.path.join(root, d))
  45. # files = './unique_1/'
  46. # for root, dirs, files in os.walk(files):
  47. # for f in files:
  48. # os.unlink(os.path.join(root, f))
  49. # for d in dirs:
  50. # shutil.rmtree(os.path.join(root, d))
  51. # files = './Copy_Gallery/'
  52. #
  53. # for root, dirs, files in os.walk(files):
  54. # for f in files:
  55. # os.unlink(os.path.join(root, f))
  56. # for d in dirs:
  57. # shutil.rmtree(os.path.join(root, d))
  58. os.remove('known_encodings.pickle')
  59. os.remove('people_copyGallery_known_encodings.pickle')
  60. os.remove('Zero_gallery_known_encodings.pickle')