Richard1231 commited on
Commit
6921844
·
1 Parent(s): 2c68f71

Update demo.py

Browse files
Files changed (1) hide show
  1. demo.py +3 -3
demo.py CHANGED
@@ -29,7 +29,7 @@ def get_latest_file(directory):
29
 
30
  def save_image(image):
31
 
32
- directory = '/tree/main/testdata'
33
 
34
 
35
  if not os.path.exists(directory):
@@ -45,10 +45,10 @@ def process_image(image):
45
 
46
  save_image(pil_image)
47
 
48
- program_path = '/blob/main/test.py'
49
  subprocess.run(['python3', program_path, '--data_path_test=./testdata'])
50
 
51
- directory_image = '/tree/main/flat'
52
  latest_file = get_latest_file(get_latest_file(directory_image))
53
  image_path = f'{latest_file}/144/test/new_image_1.jpg'
54
  new_image = Image.open(image_path)
 
29
 
30
  def save_image(image):
31
 
32
+ directory = './testdata'
33
 
34
 
35
  if not os.path.exists(directory):
 
45
 
46
  save_image(pil_image)
47
 
48
+ program_path = './test.py'
49
  subprocess.run(['python3', program_path, '--data_path_test=./testdata'])
50
 
51
+ directory_image = './flat'
52
  latest_file = get_latest_file(get_latest_file(directory_image))
53
  image_path = f'{latest_file}/144/test/new_image_1.jpg'
54
  new_image = Image.open(image_path)