Spaces:
Running
Running
Alex Hortua
commited on
Commit
·
629cc05
1
Parent(s):
78b104c
Creating all bg with random people
Browse files- src/testing.py +3 -4
src/testing.py
CHANGED
|
@@ -17,12 +17,11 @@ def get_image_names():
|
|
| 17 |
random.shuffle(background_images)
|
| 18 |
random.shuffle(people_images)
|
| 19 |
|
| 20 |
-
|
| 21 |
|
| 22 |
# Get 10 random pairs
|
| 23 |
-
for
|
| 24 |
-
|
| 25 |
-
person = people_images[i]
|
| 26 |
generate_testing_list.append(list(( os.path.join(people_dir, person), os.path.join(background_dir, background), 10, 100)))
|
| 27 |
|
| 28 |
|
|
|
|
| 17 |
random.shuffle(background_images)
|
| 18 |
random.shuffle(people_images)
|
| 19 |
|
| 20 |
+
total_length = len(people_images)
|
| 21 |
|
| 22 |
# Get 10 random pairs
|
| 23 |
+
for background in background_images:
|
| 24 |
+
person = people_images[random.randint(0, total_length - 1)]
|
|
|
|
| 25 |
generate_testing_list.append(list(( os.path.join(people_dir, person), os.path.join(background_dir, background), 10, 100)))
|
| 26 |
|
| 27 |
|