Upload demo code
Browse files- revision_gen_sample_mscoco.sh +21 -0
- revision_gen_sample_t2i_comp.sh +15 -0
- util/.DS_Store +0 -0
- util/blender_above_below_floor.py +176 -0
- util/blender_depth_high.py +171 -0
- util/blender_left_right_floor.py +170 -0
- util/blender_left_right_near_floor.py +186 -0
- util/py_gen_above_below.py +71 -0
- util/py_gen_front_behind.py +75 -0
- util/py_gen_left_right.py +82 -0
- util/py_gen_left_right_near.py +82 -0
- util/py_gen_t2i_comp_floor.py +113 -0
- util/t2i_prompt_spatial_all.txt +1000 -0
revision_gen_sample_mscoco.sh
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
|
3 |
+
### we assume the blender object assets are located in assets/blender_assets/ and assets/blender_assets_non_coco/
|
4 |
+
|
5 |
+
( python ./util/py_gen_above_below.py --partition 0 --num_partition 1 --num_variants 2 --num_background 3 --output_folder output/mscoco_above_below ) &
|
6 |
+
pid1=$!
|
7 |
+
( python ./util/py_gen_left_right.py --partition 0 --num_partition 1 --num_variants 2 --num_background 3 --output_folder output/mscoco_left_right ) &
|
8 |
+
pid2=$!
|
9 |
+
( python ./util/py_gen_front_behind.py --partition 0 --num_partition 1 --num_variants 2 --num_background 3 --output_folder output/mscoco_front_behind ) &
|
10 |
+
pid3=$!
|
11 |
+
( python ./util/py_gen_left_right_near.py --partition 0 --num_partition 1 --num_variants 2 --num_background 3 --output_folder output/mscoco_near ) &
|
12 |
+
pid4=$!
|
13 |
+
### wait for the termination of all 3 programs runs
|
14 |
+
wait $pid1 $pid2 $pid3 $pid4
|
15 |
+
|
16 |
+
chmod -R 755 output/mscoco_above_below
|
17 |
+
chmod -R 755 output/mscoco_left_right
|
18 |
+
chmod -R 755 output/mscoco_front_behind
|
19 |
+
chmod -R 755 output/mscoco_front_near
|
20 |
+
|
21 |
+
echo "Complete!"
|
revision_gen_sample_t2i_comp.sh
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
|
3 |
+
### we assume the blender object assets are located in assets/blender_assets/ and assets/blender_assets_non_coco/
|
4 |
+
|
5 |
+
( python ./util/py_gen_t2i_comp_floor.py --partition 0 --num_partition 2 --num_variants 2 --num_background 3 --output_folder output/t2i_comp ) &
|
6 |
+
pid1=$!
|
7 |
+
( python ./util/py_gen_t2i_comp_floor.py --partition 1 --num_partition 2 --num_variants 2 --num_background 3 --output_folder output/t2i_comp ) &
|
8 |
+
pid2=$!
|
9 |
+
|
10 |
+
### wait for the termination of all 3 programs runs
|
11 |
+
wait $pid1 $pid2
|
12 |
+
|
13 |
+
chmod -R 755 output/t2i_comp
|
14 |
+
|
15 |
+
echo "Complete!"
|
util/.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
util/blender_above_below_floor.py
ADDED
@@ -0,0 +1,176 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import blenderproc as bproc
|
2 |
+
import argparse
|
3 |
+
import numpy as np
|
4 |
+
|
5 |
+
from glob import glob
|
6 |
+
import random
|
7 |
+
from datetime import datetime
|
8 |
+
random.seed(datetime.now().timestamp())
|
9 |
+
|
10 |
+
import sys
|
11 |
+
import math
|
12 |
+
|
13 |
+
|
14 |
+
parser = argparse.ArgumentParser()
|
15 |
+
parser.add_argument('obj1', default="apple", help="Name of object 1")
|
16 |
+
parser.add_argument('obj2', default="banana", help="Name of object 2")
|
17 |
+
parser.add_argument('bg_path', default="background/autumn_park_2k.hdr", help="Path to the background hdr image")
|
18 |
+
parser.add_argument('output_dir', default="output/above_below/", help="Path to where the final files, will be saved")
|
19 |
+
parser.add_argument('pair_index', default=-1, help="Non-Random Pair index")
|
20 |
+
parser.add_argument('debug', default=0)
|
21 |
+
args = parser.parse_args()
|
22 |
+
|
23 |
+
pair_index = int(args.pair_index)
|
24 |
+
|
25 |
+
# obj_list = ["apple", "banana", "bed", "bicycle", "book", "car", "chair", "laptop", "person", "tv"]
|
26 |
+
|
27 |
+
obj_list = ["apple", "banana", "bicycle", "book", "chair", "laptop", "person", "tv"]
|
28 |
+
big_list = ['bicycle', 'person']
|
29 |
+
medium_list = ['chair', 'tv']
|
30 |
+
tiny_list = ['apple', 'banana']
|
31 |
+
small_list = ['book', 'laptop']
|
32 |
+
tall_list = ['person']
|
33 |
+
|
34 |
+
coco_objects = ['airplane', 'apple', 'backpack', 'banana', 'baseball_bat', 'baseball_glove', 'bear', 'bed', 'bench', 'bicycle', 'bird', 'boat', 'book', 'bottle', 'bowl', 'broccoli', 'bus', 'cake', 'car', 'carrot', 'cat', 'cell_phone', 'chair', 'clock', 'couch', 'cow', 'cup', 'dining_table', 'dog', 'donut', 'elephant', 'fire_hydrant', 'fork', 'frisbee', 'giraffe', 'hair_drier', 'handbag', 'horse', 'hot_dog', 'keyboard', 'kite', 'knife', 'laptop', 'microwave', 'motorcycle', 'mouse', 'orange', 'oven', 'parking_meter', 'person', 'pizza', 'potted_plant', 'refrigerator', 'remote', 'sandwich', 'scissors', 'sheep', 'sink', 'skateboard', 'skis', 'snowboard', 'spoon', 'sports_ball', 'stop_sign', 'suitcase', 'surfboard', 'teddy_bear', 'tennis_racket', 'tie', 'toaster', 'toilet', 'toothbrush', 'traffic_light', 'train', 'truck', 'tv', 'umbrella', 'vase', 'wine_glass', 'zebra']
|
35 |
+
|
36 |
+
tall_objects = ['man', 'person', 'woman']
|
37 |
+
|
38 |
+
|
39 |
+
|
40 |
+
def get_obj_scale(obj_name):
|
41 |
+
return 1.0
|
42 |
+
|
43 |
+
def retrieve2obj(obj1="apple", obj2="banana", index=-1,
|
44 |
+
asset_path="assets/blender_assets/",
|
45 |
+
noncoco_asset_path = "assets/blender_assets_non_coco/"):
|
46 |
+
|
47 |
+
if obj1 in coco_objects:
|
48 |
+
obj1_list = sorted(glob(f'{asset_path}/{obj1}/*.blend'))
|
49 |
+
else:
|
50 |
+
obj1_list = sorted(glob(f'{noncoco_asset_path}/{obj1}/*.blend'))
|
51 |
+
if obj2 in coco_objects:
|
52 |
+
obj2_list = sorted(glob(f'{asset_path}/{obj2}/*.blend'))
|
53 |
+
else:
|
54 |
+
obj2_list = sorted(glob(f'{noncoco_asset_path}/{obj2}/*.blend'))
|
55 |
+
|
56 |
+
if index == -1:
|
57 |
+
obj1_path = random.choice(obj1_list)
|
58 |
+
obj2_path = random.choice(obj2_list)
|
59 |
+
else:
|
60 |
+
obj1_path = obj1_list[index]
|
61 |
+
obj2_path = obj2_list[index]
|
62 |
+
return obj1_path, obj2_path, f'{obj1}_{obj2}'
|
63 |
+
|
64 |
+
def retrieve_floor(bgpath):
|
65 |
+
if 'white' in bgpath:
|
66 |
+
floor_path = "floor/floor_white.blend"
|
67 |
+
elif 'autumn' in bgpath:
|
68 |
+
floor_path = "floor/floor_grass_brass.blend"
|
69 |
+
elif 'studio' in bgpath:
|
70 |
+
floor_path = 'floor/floor_wood.blend'
|
71 |
+
return floor_path
|
72 |
+
|
73 |
+
bproc.init()
|
74 |
+
|
75 |
+
# activate normal and depth rendering
|
76 |
+
# bproc.renderer.enable_normals_output()
|
77 |
+
# bproc.renderer.enable_depth_output(activate_antialiasing=False)
|
78 |
+
# set realistic background
|
79 |
+
# haven_hdri_path = bproc.loader.get_random_world_background_hdr_img_path_from_haven('/home/lawrence/Documents/3dscene/')
|
80 |
+
haven_hdri_path = args.bg_path
|
81 |
+
|
82 |
+
for i in range(1):
|
83 |
+
|
84 |
+
path1, path2, output_name = retrieve2obj(args.obj1, args.obj2, index=pair_index)
|
85 |
+
|
86 |
+
if args.bg_path != "None":
|
87 |
+
# bproc.world.set_world_background_hdr_img(haven_hdri_path)
|
88 |
+
bproc.world.set_world_background_hdr_img(haven_hdri_path, rotation_euler=[0.0, 0.0, random.uniform(-np.pi, np.pi)])
|
89 |
+
|
90 |
+
|
91 |
+
print('Generating', output_name)
|
92 |
+
|
93 |
+
r = random.uniform(4.5, 5.5)
|
94 |
+
if args.obj2 in tall_objects :
|
95 |
+
height_offset = random.uniform(-0.75, -0.6)
|
96 |
+
else:
|
97 |
+
height_offset = 0.0
|
98 |
+
# offset = 1.35
|
99 |
+
# elif args.obj2 in medium_list:
|
100 |
+
# offset = 0.5
|
101 |
+
# else:
|
102 |
+
# offset = 0.5
|
103 |
+
|
104 |
+
# Set the scale of the objects
|
105 |
+
obj1_scale = get_obj_scale(args.obj1)
|
106 |
+
obj2_scale = get_obj_scale(args.obj2)
|
107 |
+
|
108 |
+
# if args.obj1 in small_list and args.obj2 in small_list:
|
109 |
+
# obj1_scale = random.uniform(4.0, 5.0)
|
110 |
+
# obj2_scale = obj1_scale
|
111 |
+
# elif args.obj1 in small_list:
|
112 |
+
# obj1_scale = random.uniform(4.0, 5.0)
|
113 |
+
# elif args.obj2 in small_list:
|
114 |
+
# obj2_scale = random.uniform(4.0, 5.0)
|
115 |
+
floor_z = height_offset + random.uniform(-0.5, -0.75)
|
116 |
+
floor = bproc.loader.load_blend(retrieve_floor(args.bg_path), obj_types= ['armature','mesh', 'empty', 'hair'] )
|
117 |
+
floor = bproc.object.merge_objects(floor)
|
118 |
+
floor.set_location([0,0,floor_z+random.uniform(-0.25, -0.05)])
|
119 |
+
|
120 |
+
obj1 = bproc.loader.load_blend(path1, obj_types= ['armature','mesh', 'empty', 'hair'] )
|
121 |
+
poi1 = bproc.object.compute_poi(bproc.filter.all_with_type(obj1, bproc.types.MeshObject))
|
122 |
+
obj1 = bproc.object.merge_objects(obj1)
|
123 |
+
obj1.set_location([random.uniform(-0.05, 0.05), random.uniform(-0.05, 0.05), random.uniform(0.5, 0.75)]) # up
|
124 |
+
# obj1.set_location([0, random.uniform(-1.0, 0.0), 0]) # left
|
125 |
+
obj1.set_scale([obj1_scale, obj1_scale, obj1_scale])
|
126 |
+
obj1.set_rotation_euler([0, 0, random.uniform(-np.pi/16, np.pi/16)])
|
127 |
+
|
128 |
+
obj2 = bproc.loader.load_blend(path2, obj_types= ['armature', 'mesh', 'empty', 'hair'])
|
129 |
+
poi2 = bproc.object.compute_poi(bproc.filter.all_with_type(obj2, bproc.types.MeshObject))
|
130 |
+
obj2 = bproc.object.merge_objects(obj2)
|
131 |
+
|
132 |
+
obj2.set_location([random.uniform(-0.05, 0.05), random.uniform(-0.05, 0.05), floor_z]) # down
|
133 |
+
# obj2.set_location([0, random.uniform(0.0, 1.0), 0]) # right
|
134 |
+
obj2.set_scale([obj2_scale, obj2_scale, obj2_scale])
|
135 |
+
obj2.set_rotation_euler([0, 0, random.uniform(-np.pi/16, np.pi/16)])
|
136 |
+
|
137 |
+
poi = (poi1 + poi2) / 2.0
|
138 |
+
|
139 |
+
|
140 |
+
|
141 |
+
|
142 |
+
# define a light and set its location and energy level
|
143 |
+
light = bproc.types.Light()
|
144 |
+
light.set_type("POINT")
|
145 |
+
light.set_location([0, random.uniform(-5.0, 5.0), 5])
|
146 |
+
light.set_energy(3000)
|
147 |
+
|
148 |
+
# random camera angle
|
149 |
+
alpha = random.uniform(-np.pi / 8, np.pi / 8)
|
150 |
+
# r = 3.0
|
151 |
+
cam_x = r * math.cos(alpha)
|
152 |
+
cam_y = r * math.sin(alpha)
|
153 |
+
|
154 |
+
# Set camera pose
|
155 |
+
|
156 |
+
# Set output resolution to 1024x1024
|
157 |
+
bproc.camera.set_resolution(1024, 1024)
|
158 |
+
# Sample random camera location around the object
|
159 |
+
location = bproc.sampler.part_sphere([cam_x, cam_y, 1.25], radius=0.25, part_sphere_dir_vector=[1, 0, 0], mode="SURFACE")
|
160 |
+
# Compute rotation based on vector going from location towards poi
|
161 |
+
rotation_matrix = bproc.camera.rotation_from_forward_vec(poi - location)
|
162 |
+
# Add homog cam pose based on location an rotation
|
163 |
+
cam2world_matrix = bproc.math.build_transformation_mat(location, rotation_matrix)
|
164 |
+
bproc.camera.add_camera_pose(cam2world_matrix)
|
165 |
+
|
166 |
+
|
167 |
+
# Render the scene
|
168 |
+
bproc.renderer.set_max_amount_of_samples(24)
|
169 |
+
data = bproc.renderer.render()
|
170 |
+
|
171 |
+
# Write the rendering into an hdf5 file
|
172 |
+
bproc.writer.write_hdf5(args.output_dir + output_name, data, append_to_existing_output=True)
|
173 |
+
# bproc.clean_up()
|
174 |
+
|
175 |
+
print('Objects chosen:\n', path1, '\n', path2)
|
176 |
+
print('Background:\n', haven_hdri_path)
|
util/blender_depth_high.py
ADDED
@@ -0,0 +1,171 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import blenderproc as bproc
|
2 |
+
import argparse
|
3 |
+
import numpy as np
|
4 |
+
from mathutils import Vector
|
5 |
+
from mathutils.bvhtree import BVHTree
|
6 |
+
from glob import glob
|
7 |
+
import random
|
8 |
+
from datetime import datetime
|
9 |
+
random.seed(datetime.now().timestamp())
|
10 |
+
|
11 |
+
import sys
|
12 |
+
import math
|
13 |
+
|
14 |
+
parser = argparse.ArgumentParser()
|
15 |
+
parser.add_argument('obj1', default="apple", help="Name of object 1, the one in the front")
|
16 |
+
parser.add_argument('obj2', default="banana", help="Name of object 2, the one behind")
|
17 |
+
parser.add_argument('bg_path', default="hdris/autumn/autumn_park_2k.hdr", help="Path to the background hdr image")
|
18 |
+
parser.add_argument('output_dir', default="output/above_below/", help="Path to where the final files, will be saved")
|
19 |
+
parser.add_argument('pair_index', default=-1, help="Non-Random Pair index")
|
20 |
+
parser.add_argument('debug', default=0)
|
21 |
+
args = parser.parse_args()
|
22 |
+
|
23 |
+
pair_index = int(args.pair_index)
|
24 |
+
|
25 |
+
# obj_list = ["apple", "banana", "bed", "bicycle", "book", "car", "chair", "laptop", "person", "tv"]
|
26 |
+
|
27 |
+
|
28 |
+
coco_objects = ['airplane', 'apple', 'backpack', 'banana', 'baseball_bat', 'baseball_glove', 'bear', 'bed', 'bench', 'bicycle', 'bird', 'boat', 'book', 'bottle', 'bowl', 'broccoli', 'bus', 'cake', 'car', 'carrot', 'cat', 'cell_phone', 'chair', 'clock', 'couch', 'cow', 'cup', 'dining_table', 'dog', 'donut', 'elephant', 'fire_hydrant', 'fork', 'frisbee', 'giraffe', 'hair_drier', 'handbag', 'horse', 'hot_dog', 'keyboard', 'kite', 'knife', 'laptop', 'microwave', 'motorcycle', 'mouse', 'orange', 'oven', 'parking_meter', 'person', 'pizza', 'potted_plant', 'refrigerator', 'remote', 'sandwich', 'scissors', 'sheep', 'sink', 'skateboard', 'skis', 'snowboard', 'spoon', 'sports_ball', 'stop_sign', 'suitcase', 'surfboard', 'teddy_bear', 'tennis_racket', 'tie', 'toaster', 'toilet', 'toothbrush', 'traffic_light', 'train', 'truck', 'tv', 'umbrella', 'vase', 'wine_glass', 'zebra']
|
29 |
+
|
30 |
+
big_obj = ['airplane', 'bus', 'car', 'boat', 'train', 'truck']
|
31 |
+
|
32 |
+
|
33 |
+
def retrieve_floor(bgpath):
|
34 |
+
if 'white' in bgpath:
|
35 |
+
floor_path = "floor/floor_white.blend"
|
36 |
+
elif 'autumn' in bgpath:
|
37 |
+
floor_path = "floor/floor_grass_brass.blend"
|
38 |
+
elif 'studio' in bgpath:
|
39 |
+
floor_path = 'floor/floor_wood.blend'
|
40 |
+
return floor_path
|
41 |
+
|
42 |
+
def get_obj_scale(obj_name, is_front=True):
|
43 |
+
if is_front:
|
44 |
+
if obj_name in big_obj:
|
45 |
+
return random.uniform(0.5, 0.6)
|
46 |
+
else:
|
47 |
+
return random.uniform(0.8, 0.9)
|
48 |
+
else:
|
49 |
+
if obj_name in big_obj:
|
50 |
+
return random.uniform(1.4, 1.6)
|
51 |
+
else:
|
52 |
+
return random.uniform(1.8, 2.0)
|
53 |
+
# return 1.0
|
54 |
+
|
55 |
+
def retrieve2obj(obj1="apple", obj2="banana", index=-1,
|
56 |
+
asset_path="assets/blender_assets/",
|
57 |
+
noncoco_asset_path = "assets/blender_assets_non_coco/"):
|
58 |
+
|
59 |
+
if obj1 in coco_objects:
|
60 |
+
obj1_list = sorted(glob(f'{asset_path}/{obj1}/*.blend'))
|
61 |
+
else:
|
62 |
+
obj1_list = sorted(glob(f'{noncoco_asset_path}/{obj1}/*.blend'))
|
63 |
+
if obj2 in coco_objects:
|
64 |
+
obj2_list = sorted(glob(f'{asset_path}/{obj2}/*.blend'))
|
65 |
+
else:
|
66 |
+
obj2_list = sorted(glob(f'{noncoco_asset_path}/{obj2}/*.blend'))
|
67 |
+
|
68 |
+
if index == -1:
|
69 |
+
obj1_path = random.choice(obj1_list)
|
70 |
+
obj2_path = random.choice(obj2_list)
|
71 |
+
else:
|
72 |
+
obj1_path = obj1_list[index]
|
73 |
+
obj2_path = obj2_list[index]
|
74 |
+
return obj1_path, obj2_path, f'{obj1}_{obj2}'
|
75 |
+
|
76 |
+
bproc.init()
|
77 |
+
|
78 |
+
# activate normal and depth rendering
|
79 |
+
# bproc.renderer.enable_normals_output()
|
80 |
+
# bproc.renderer.enable_depth_output(activate_antialiasing=False)
|
81 |
+
# set realistic background
|
82 |
+
# haven_hdri_path = bproc.loader.get_random_world_background_hdr_img_path_from_haven('/home/lawrence/Documents/3dscene/')
|
83 |
+
haven_hdri_path = args.bg_path
|
84 |
+
|
85 |
+
for i in range(1):
|
86 |
+
|
87 |
+
path1, path2, output_name = retrieve2obj(args.obj1, args.obj2, index=pair_index)
|
88 |
+
|
89 |
+
if args.bg_path != "None":
|
90 |
+
# bproc.world.set_world_background_hdr_img(haven_hdri_path)
|
91 |
+
bproc.world.set_world_background_hdr_img(haven_hdri_path, rotation_euler=[0.0, 0.0, random.uniform(-np.pi, np.pi)])
|
92 |
+
|
93 |
+
|
94 |
+
print('Generating', output_name)
|
95 |
+
|
96 |
+
r = random.uniform(4.5, 5.5)
|
97 |
+
|
98 |
+
height_offset = 0.0
|
99 |
+
|
100 |
+
# Set the scale of the objects
|
101 |
+
obj1_scale = get_obj_scale(args.obj1)
|
102 |
+
obj2_scale = get_obj_scale(args.obj2, False)
|
103 |
+
|
104 |
+
|
105 |
+
obj1 = bproc.loader.load_blend(path1, obj_types= ['armature','mesh', 'empty', 'hair'] )
|
106 |
+
poi1 = bproc.object.compute_poi(bproc.filter.all_with_type(obj1, bproc.types.MeshObject))
|
107 |
+
obj1 = bproc.object.merge_objects(obj1)
|
108 |
+
obj1_y = random.uniform(-0.6, 0.6)
|
109 |
+
obj1.set_location([random.uniform(0.5, 0.75), obj1_y, random.uniform(-0.05, 0.05)])
|
110 |
+
|
111 |
+
obj1.set_scale([obj1_scale, obj1_scale, obj1_scale])
|
112 |
+
obj1.set_rotation_euler([0, 0, random.uniform(-np.pi/16, np.pi/16)])
|
113 |
+
|
114 |
+
obj2 = bproc.loader.load_blend(path2, obj_types= ['armature', 'mesh', 'empty', 'hair'])
|
115 |
+
poi2 = bproc.object.compute_poi(bproc.filter.all_with_type(obj2, bproc.types.MeshObject))
|
116 |
+
obj2 = bproc.object.merge_objects(obj2)
|
117 |
+
obj2.set_location([random.uniform(-2.5, -2.0), obj1_y*-1, random.uniform(-0.05, 0.05)])
|
118 |
+
|
119 |
+
obj2.set_scale([obj2_scale, obj2_scale, obj2_scale])
|
120 |
+
obj2.set_rotation_euler([0, 0, random.uniform(-np.pi/16, np.pi/16)])
|
121 |
+
|
122 |
+
poi = (poi1 + poi2) / 2.0
|
123 |
+
|
124 |
+
offset_z = random.uniform(0.0, 0.5)
|
125 |
+
offset_2 = random.uniform(-0.5, 0.0)
|
126 |
+
|
127 |
+
floor = bproc.loader.load_blend(retrieve_floor(args.bg_path), obj_types= ['armature','mesh', 'empty', 'hair'] )
|
128 |
+
floor = bproc.object.merge_objects(floor)
|
129 |
+
floor.set_location([0,0,min(offset_2, offset_z)])
|
130 |
+
|
131 |
+
|
132 |
+
|
133 |
+
# define a light and set its location and energy level
|
134 |
+
light = bproc.types.Light()
|
135 |
+
light.set_type("POINT")
|
136 |
+
light.set_location([0, random.uniform(-5.0, 5.0), 5])
|
137 |
+
light.set_energy(3000)
|
138 |
+
|
139 |
+
# random camera angle
|
140 |
+
alpha = random.uniform(-np.pi / 8, np.pi / 8)
|
141 |
+
# r = 3.0
|
142 |
+
cam_x = r * math.cos(alpha)
|
143 |
+
cam_y = r * math.sin(alpha)
|
144 |
+
|
145 |
+
if cam_y * obj1_y < 0:
|
146 |
+
cam_y = -cam_y
|
147 |
+
|
148 |
+
# Set camera pose
|
149 |
+
|
150 |
+
# Set output resolution to 1024x1024
|
151 |
+
bproc.camera.set_resolution(1024, 1024)
|
152 |
+
# Sample random camera location around the object
|
153 |
+
location = bproc.sampler.part_sphere([cam_x, cam_y, 1.25], radius=0.25, part_sphere_dir_vector=[1, 0, 0], mode="SURFACE")
|
154 |
+
# Compute rotation based on vector going from location towards poi
|
155 |
+
rotation_matrix = bproc.camera.rotation_from_forward_vec(poi - location)
|
156 |
+
# Add homog cam pose based on location an rotation
|
157 |
+
cam2world_matrix = bproc.math.build_transformation_mat(location, rotation_matrix)
|
158 |
+
bproc.camera.add_camera_pose(cam2world_matrix)
|
159 |
+
|
160 |
+
|
161 |
+
# Render the scene
|
162 |
+
bproc.renderer.set_max_amount_of_samples(24)
|
163 |
+
data = bproc.renderer.render()
|
164 |
+
|
165 |
+
# Write the rendering into an hdf5 file
|
166 |
+
bproc.writer.write_hdf5(args.output_dir + output_name, data, append_to_existing_output=True)
|
167 |
+
# bproc.clean_up()
|
168 |
+
|
169 |
+
print('Objects chosen:\n', path1, '\n', path2)
|
170 |
+
print('Background:\n', haven_hdri_path)
|
171 |
+
|
util/blender_left_right_floor.py
ADDED
@@ -0,0 +1,170 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import blenderproc as bproc
|
2 |
+
import argparse
|
3 |
+
import numpy as np
|
4 |
+
|
5 |
+
from glob import glob
|
6 |
+
import random
|
7 |
+
from datetime import datetime
|
8 |
+
random.seed(datetime.now().timestamp())
|
9 |
+
|
10 |
+
import sys
|
11 |
+
import math
|
12 |
+
|
13 |
+
|
14 |
+
parser = argparse.ArgumentParser()
|
15 |
+
parser.add_argument('obj1', default="apple", help="Name of object 1")
|
16 |
+
parser.add_argument('obj2', default="banana", help="Name of object 2")
|
17 |
+
parser.add_argument('bg_path', default="background/autumn_park_2k.hdr", help="Path to the background hdr image")
|
18 |
+
parser.add_argument('output_dir', default="output/above_below/", help="Path to where the final files, will be saved")
|
19 |
+
parser.add_argument('pair_index', default=-1, help="Non-Random Pair index")
|
20 |
+
parser.add_argument('debug', default=0)
|
21 |
+
args = parser.parse_args()
|
22 |
+
|
23 |
+
pair_index = int(args.pair_index)
|
24 |
+
# obj_list = ["apple", "banana", "bed", "bicycle", "book", "car", "chair", "laptop", "person", "tv"]
|
25 |
+
|
26 |
+
|
27 |
+
obj_list = ["apple", "banana", "bicycle", "book", "chair", "laptop", "person", "tv"]
|
28 |
+
big_list = ['bicycle', 'person']
|
29 |
+
medium_list = ['chair', 'tv']
|
30 |
+
tiny_list = ['apple', 'banana']
|
31 |
+
small_list = ['book', 'laptop']
|
32 |
+
|
33 |
+
coco_objects = ['airplane', 'apple', 'backpack', 'banana', 'baseball_bat', 'baseball_glove', 'bear', 'bed', 'bench', 'bicycle', 'bird', 'boat', 'book', 'bottle', 'bowl', 'broccoli', 'bus', 'cake', 'car', 'carrot', 'cat', 'cell_phone', 'chair', 'clock', 'couch', 'cow', 'cup', 'dining_table', 'dog', 'donut', 'elephant', 'fire_hydrant', 'fork', 'frisbee', 'giraffe', 'hair_drier', 'handbag', 'horse', 'hot_dog', 'keyboard', 'kite', 'knife', 'laptop', 'microwave', 'motorcycle', 'mouse', 'orange', 'oven', 'parking_meter', 'person', 'pizza', 'potted_plant', 'refrigerator', 'remote', 'sandwich', 'scissors', 'sheep', 'sink', 'skateboard', 'skis', 'snowboard', 'spoon', 'sports_ball', 'stop_sign', 'suitcase', 'surfboard', 'teddy_bear', 'tennis_racket', 'tie', 'toaster', 'toilet', 'toothbrush', 'traffic_light', 'train', 'truck', 'tv', 'umbrella', 'vase', 'wine_glass', 'zebra']
|
34 |
+
wide_objects = ['airplane', 'bear', 'bus', 'bicycle','car', 'cat', 'couch', 'cup', 'cow', 'desk', 'dining_table', 'train', 'pig', 'giraffe', 'truck', 'tv', 'suitcase', 'motorcycle', 'horse']
|
35 |
+
|
36 |
+
|
37 |
+
def get_obj_scale(obj_name):
|
38 |
+
return 1.0
|
39 |
+
|
40 |
+
def retrieve2obj(obj1="apple", obj2="banana", index=-1,
|
41 |
+
asset_path="assets/blender_assets/",
|
42 |
+
noncoco_asset_path = "assets/blender_assets_non_coco/"):
|
43 |
+
|
44 |
+
if obj1 in coco_objects:
|
45 |
+
obj1_list = sorted(glob(f'{asset_path}/{obj1}/*.blend'))
|
46 |
+
else:
|
47 |
+
obj1_list = sorted(glob(f'{noncoco_asset_path}/{obj1}/*.blend'))
|
48 |
+
if obj2 in coco_objects:
|
49 |
+
obj2_list = sorted(glob(f'{asset_path}/{obj2}/*.blend'))
|
50 |
+
else:
|
51 |
+
obj2_list = sorted(glob(f'{noncoco_asset_path}/{obj2}/*.blend'))
|
52 |
+
|
53 |
+
if index == -1:
|
54 |
+
obj1_path = random.choice(obj1_list)
|
55 |
+
obj2_path = random.choice(obj2_list)
|
56 |
+
else:
|
57 |
+
obj1_path = obj1_list[index]
|
58 |
+
obj2_path = obj2_list[index]
|
59 |
+
return obj1_path, obj2_path, f'{obj1}_{obj2}'
|
60 |
+
|
61 |
+
def retrieve_floor(bgpath):
|
62 |
+
if 'white' in bgpath:
|
63 |
+
floor_path = "floor/floor_white.blend"
|
64 |
+
elif 'autumn' in bgpath:
|
65 |
+
floor_path = "floor/floor_grass_brass.blend"
|
66 |
+
elif 'studio' in bgpath:
|
67 |
+
floor_path = 'floor/floor_wood.blend'
|
68 |
+
return floor_path
|
69 |
+
|
70 |
+
def get_obj_cam_coords(left, right, cam):
|
71 |
+
"""
|
72 |
+
cam +x, left -y , right +y
|
73 |
+
cam -x, left +y, right -y
|
74 |
+
cam +y, left +x, right -x
|
75 |
+
cam -y, left -x, right +x
|
76 |
+
"""
|
77 |
+
positions = list()
|
78 |
+
positions.append((cam, 0, 0, -left, 0, right))
|
79 |
+
|
80 |
+
return random.choice(positions)
|
81 |
+
|
82 |
+
bproc.init()
|
83 |
+
|
84 |
+
# activate normal and depth rendering
|
85 |
+
# bproc.renderer.enable_normals_output()
|
86 |
+
# bproc.renderer.enable_depth_output(activate_antialiasing=False)
|
87 |
+
# set realistic background
|
88 |
+
# haven_hdri_path = bproc.loader.get_random_world_background_hdr_img_path_from_haven('/home/lawrence/Documents/3dscene/')
|
89 |
+
haven_hdri_path = args.bg_path
|
90 |
+
|
91 |
+
for i in range(1):
|
92 |
+
|
93 |
+
path1, path2, output_name = retrieve2obj(args.obj1, args.obj2, index=pair_index)
|
94 |
+
|
95 |
+
bproc.world.set_world_background_hdr_img(haven_hdri_path, rotation_euler=[0.0, 0.0, random.uniform(-np.pi, np.pi)])
|
96 |
+
|
97 |
+
|
98 |
+
print('Generating', output_name)
|
99 |
+
|
100 |
+
offset = 0.0
|
101 |
+
if args.obj2 in big_list :
|
102 |
+
offset = 0.5
|
103 |
+
|
104 |
+
offset = random.uniform(0.3, 0.5)
|
105 |
+
|
106 |
+
r = random.uniform(5.25, 6.25)
|
107 |
+
|
108 |
+
cam_x, cam_y, left_x, left_y, right_x, right_y = get_obj_cam_coords(random.uniform(1.0, 1.5), random.uniform(1.0, 1.5), r)
|
109 |
+
if args.obj1 in wide_objects:
|
110 |
+
left_y = left_y - random.uniform(0.15, 0.25)
|
111 |
+
if args.obj2 in wide_objects:
|
112 |
+
right_y = right_y + random.uniform(0.15, 0.25)
|
113 |
+
|
114 |
+
# Set the scale of the objects
|
115 |
+
obj1_scale = get_obj_scale(args.obj1)
|
116 |
+
obj2_scale = get_obj_scale(args.obj2)
|
117 |
+
|
118 |
+
obj1 = bproc.loader.load_blend(path1, obj_types= ['armature','mesh', 'empty', 'hair'] )
|
119 |
+
poi1 = bproc.object.compute_poi(bproc.filter.all_with_type(obj1, bproc.types.MeshObject))
|
120 |
+
obj1 = bproc.object.merge_objects(obj1)
|
121 |
+
obj1.set_scale([obj1_scale, obj1_scale, obj1_scale])
|
122 |
+
|
123 |
+
obj1.set_location([left_x, left_y, 0])
|
124 |
+
obj1.set_rotation_euler([0, 0, random.uniform(-np.pi/8, np.pi/8)])
|
125 |
+
|
126 |
+
obj2 = bproc.loader.load_blend(path2, obj_types= ['armature', 'mesh', 'empty', 'hair'])
|
127 |
+
poi2 = bproc.object.compute_poi(bproc.filter.all_with_type(obj2, bproc.types.MeshObject))
|
128 |
+
obj2 = bproc.object.merge_objects(obj2)
|
129 |
+
obj2.set_scale([obj2_scale, obj2_scale, obj2_scale])
|
130 |
+
obj2.set_location([right_x, right_y, 0])
|
131 |
+
|
132 |
+
floor = bproc.loader.load_blend(retrieve_floor(args.bg_path), obj_types= ['armature','mesh', 'empty', 'hair'] )
|
133 |
+
floor = bproc.object.merge_objects(floor)
|
134 |
+
floor.set_location([0,0,0])
|
135 |
+
|
136 |
+
|
137 |
+
obj2.set_rotation_euler([0, 0, random.uniform(-np.pi/8, np.pi/8)])
|
138 |
+
|
139 |
+
# define a light and set its location and energy level
|
140 |
+
light = bproc.types.Light()
|
141 |
+
light.set_type("POINT")
|
142 |
+
light.set_location([0, random.uniform(-5.0, 5.0), 5])
|
143 |
+
light.set_energy(3000)
|
144 |
+
|
145 |
+
poi = (np.array([left_x, left_y, 0]) + np.array([right_x, right_y, 0])) / 2
|
146 |
+
poi[2] = poi[2] + offset
|
147 |
+
|
148 |
+
|
149 |
+
|
150 |
+
# Set camera pose
|
151 |
+
|
152 |
+
# Set output resolution to 1024x1024
|
153 |
+
bproc.camera.set_resolution(1024, 1024)
|
154 |
+
# Sample random camera location around the object
|
155 |
+
location = bproc.sampler.part_sphere([cam_x, cam_y, 1.25], radius=0.25, part_sphere_dir_vector=[1, 0, 0], mode="SURFACE")
|
156 |
+
# Compute rotation based on vector going from location towards poi
|
157 |
+
rotation_matrix = bproc.camera.rotation_from_forward_vec(poi - location)
|
158 |
+
# Add homog cam pose based on location an rotation
|
159 |
+
cam2world_matrix = bproc.math.build_transformation_mat(location, rotation_matrix)
|
160 |
+
bproc.camera.add_camera_pose(cam2world_matrix)
|
161 |
+
|
162 |
+
|
163 |
+
# Render the scene
|
164 |
+
bproc.renderer.set_max_amount_of_samples(24)
|
165 |
+
data = bproc.renderer.render()
|
166 |
+
|
167 |
+
# Write the rendering into an hdf5 file
|
168 |
+
bproc.writer.write_hdf5(args.output_dir + output_name, data, append_to_existing_output=True)
|
169 |
+
print(path1, path2)
|
170 |
+
|
util/blender_left_right_near_floor.py
ADDED
@@ -0,0 +1,186 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import blenderproc as bproc
|
2 |
+
import argparse
|
3 |
+
import numpy as np
|
4 |
+
from glob import glob
|
5 |
+
import random
|
6 |
+
from datetime import datetime
|
7 |
+
random.seed(datetime.now().timestamp())
|
8 |
+
|
9 |
+
import sys
|
10 |
+
import math
|
11 |
+
|
12 |
+
|
13 |
+
|
14 |
+
parser = argparse.ArgumentParser()
|
15 |
+
parser.add_argument('obj1', default="apple", help="Name of object 1")
|
16 |
+
parser.add_argument('obj2', default="banana", help="Name of object 2")
|
17 |
+
parser.add_argument('bg_path', default="background/autumn_park_2k.hdr", help="Path to the background hdr image")
|
18 |
+
parser.add_argument('output_dir', default="output/above_below/", help="Path to where the final files, will be saved")
|
19 |
+
parser.add_argument('pair_index', default=-1, help="Non-Random Pair index")
|
20 |
+
parser.add_argument('debug', default=0)
|
21 |
+
args = parser.parse_args()
|
22 |
+
|
23 |
+
pair_index = int(args.pair_index)
|
24 |
+
# obj_list = ["apple", "banana", "bed", "bicycle", "book", "car", "chair", "laptop", "person", "tv"]
|
25 |
+
|
26 |
+
|
27 |
+
obj_list = ["apple", "banana", "bicycle", "book", "chair", "laptop", "person", "tv"]
|
28 |
+
big_list = ['bicycle', 'person']
|
29 |
+
medium_list = ['chair', 'tv']
|
30 |
+
tiny_list = ['apple', 'banana']
|
31 |
+
small_list = ['book', 'laptop']
|
32 |
+
|
33 |
+
coco_objects = ['airplane', 'apple', 'backpack', 'banana', 'baseball_bat', 'baseball_glove', 'bear', 'bed', 'bench', 'bicycle', 'bird', 'boat', 'book', 'bottle', 'bowl', 'broccoli', 'bus', 'cake', 'car', 'carrot', 'cat', 'cell_phone', 'chair', 'clock', 'couch', 'cow', 'cup', 'dining_table', 'dog', 'donut', 'elephant', 'fire_hydrant', 'fork', 'frisbee', 'giraffe', 'hair_drier', 'handbag', 'horse', 'hot_dog', 'keyboard', 'kite', 'knife', 'laptop', 'microwave', 'motorcycle', 'mouse', 'orange', 'oven', 'parking_meter', 'person', 'pizza', 'potted_plant', 'refrigerator', 'remote', 'sandwich', 'scissors', 'sheep', 'sink', 'skateboard', 'skis', 'snowboard', 'spoon', 'sports_ball', 'stop_sign', 'suitcase', 'surfboard', 'teddy_bear', 'tennis_racket', 'tie', 'toaster', 'toilet', 'toothbrush', 'traffic_light', 'train', 'truck', 'tv', 'umbrella', 'vase', 'wine_glass', 'zebra']
|
34 |
+
wide_objects = ['airplane', 'bear', 'bus', 'bicycle','car', 'cat', 'couch', 'cup', 'cow', 'desk', 'dining_table', 'train', 'pig', 'giraffe', 'truck', 'tv', 'suitcase', 'motorcycle', 'horse']
|
35 |
+
|
36 |
+
def get_obj_scale(obj_name):
|
37 |
+
"""
|
38 |
+
if obj_name in small_list:
|
39 |
+
return random.uniform(1.75, 2.25)
|
40 |
+
elif obj_name in tiny_list:
|
41 |
+
return random.uniform(3.75, 4.25)
|
42 |
+
else:
|
43 |
+
return 1.0
|
44 |
+
"""
|
45 |
+
return 1.0
|
46 |
+
|
47 |
+
def retrieve_floor(bgpath):
|
48 |
+
if 'white' in bgpath:
|
49 |
+
floor_path = "floor/floor_white.blend"
|
50 |
+
elif 'autumn' in bgpath:
|
51 |
+
floor_path = "floor/floor_grass_brass.blend"
|
52 |
+
elif 'studio' in bgpath:
|
53 |
+
floor_path = 'floor/floor_wood.blend'
|
54 |
+
return floor_path
|
55 |
+
|
56 |
+
def retrieve2obj(obj1="apple", obj2="banana", index=-1,
|
57 |
+
asset_path="assets/blender_assets/",
|
58 |
+
noncoco_asset_path = "assets/blender_assets_non_coco/"):
|
59 |
+
|
60 |
+
if obj1 in coco_objects:
|
61 |
+
obj1_list = sorted(glob(f'{asset_path}/{obj1}/*.blend'))
|
62 |
+
else:
|
63 |
+
obj1_list = sorted(glob(f'{noncoco_asset_path}/{obj1}/*.blend'))
|
64 |
+
if obj2 in coco_objects:
|
65 |
+
obj2_list = sorted(glob(f'{asset_path}/{obj2}/*.blend'))
|
66 |
+
else:
|
67 |
+
obj2_list = sorted(glob(f'{noncoco_asset_path}/{obj2}/*.blend'))
|
68 |
+
|
69 |
+
if index == -1:
|
70 |
+
obj1_path = random.choice(obj1_list)
|
71 |
+
obj2_path = random.choice(obj2_list)
|
72 |
+
else:
|
73 |
+
obj1_path = obj1_list[index]
|
74 |
+
obj2_path = obj2_list[index]
|
75 |
+
return obj1_path, obj2_path, f'{obj1}_{obj2}'
|
76 |
+
|
77 |
+
def get_obj_cam_coords(left, right, cam):
|
78 |
+
"""
|
79 |
+
cam +x, left -y , right +y
|
80 |
+
cam -x, left +y, right -y
|
81 |
+
cam +y, left +x, right -x
|
82 |
+
cam -y, left -x, right +x
|
83 |
+
"""
|
84 |
+
positions = list()
|
85 |
+
positions.append((cam, 0, random.uniform(-0.5, 0.5), -left, random.uniform(-0.5, 0.5), right))
|
86 |
+
# positions.append((-cam, 0, 0, left, 0, -right))
|
87 |
+
# positions.append((0, cam, left, 0, -right, 0))
|
88 |
+
# positions.append((0, -cam, -left, 0, right, 0))
|
89 |
+
|
90 |
+
return random.choice(positions)
|
91 |
+
|
92 |
+
bproc.init()
|
93 |
+
|
94 |
+
# activate normal and depth rendering
|
95 |
+
# bproc.renderer.enable_normals_output()
|
96 |
+
# bproc.renderer.enable_depth_output(activate_antialiasing=False)
|
97 |
+
# set realistic background
|
98 |
+
# haven_hdri_path = bproc.loader.get_random_world_background_hdr_img_path_from_haven('/home/lawrence/Documents/3dscene/')
|
99 |
+
haven_hdri_path = args.bg_path
|
100 |
+
|
101 |
+
for i in range(1):
|
102 |
+
|
103 |
+
path1, path2, output_name = retrieve2obj(args.obj1, args.obj2, index=pair_index)
|
104 |
+
|
105 |
+
swap = random.uniform(-1.0, 1.0)
|
106 |
+
if swap < 0:
|
107 |
+
path1, path2 = path2, path1
|
108 |
+
|
109 |
+
bproc.world.set_world_background_hdr_img(haven_hdri_path, rotation_euler=[0.0, 0.0, random.uniform(-np.pi, np.pi)])
|
110 |
+
|
111 |
+
offset = 0.0
|
112 |
+
if args.obj2 in big_list :
|
113 |
+
offset = 0.5
|
114 |
+
|
115 |
+
offset_z = random.uniform(0.0, 0.0)
|
116 |
+
offset_2 = random.uniform(-0.0, 0.0)
|
117 |
+
|
118 |
+
r = random.uniform(5.25, 6.25)
|
119 |
+
|
120 |
+
cam_x, cam_y, left_x, left_y, right_x, right_y = get_obj_cam_coords(random.uniform(0.4, 0.6), random.uniform(0.4, 0.6), r)
|
121 |
+
|
122 |
+
right_y = left_y + random.uniform(0.7, 1.0)
|
123 |
+
|
124 |
+
if args.obj1 in wide_objects:
|
125 |
+
left_y = left_y - random.uniform(0.15, 0.25)
|
126 |
+
if args.obj2 in wide_objects:
|
127 |
+
right_y = right_y + random.uniform(0.15, 0.25)
|
128 |
+
|
129 |
+
# Set the scale of the objects
|
130 |
+
obj1_scale = get_obj_scale(args.obj1)
|
131 |
+
obj2_scale = get_obj_scale(args.obj2)
|
132 |
+
|
133 |
+
obj1 = bproc.loader.load_blend(path1, obj_types= ['armature','mesh', 'empty', 'hair'] )
|
134 |
+
poi1 = bproc.object.compute_poi(bproc.filter.all_with_type(obj1, bproc.types.MeshObject))
|
135 |
+
obj1 = bproc.object.merge_objects(obj1, 'merged_obj1')
|
136 |
+
obj1.set_scale([obj1_scale, obj1_scale, obj1_scale])
|
137 |
+
obj1.set_location([left_x, left_y, offset_z])
|
138 |
+
obj1.set_rotation_euler([0, 0, random.uniform(-np.pi/8, np.pi/8)])
|
139 |
+
|
140 |
+
|
141 |
+
obj2 = bproc.loader.load_blend(path2, obj_types= ['armature', 'mesh', 'empty', 'hair'])
|
142 |
+
poi2 = bproc.object.compute_poi(bproc.filter.all_with_type(obj2, bproc.types.MeshObject))
|
143 |
+
obj2 = bproc.object.merge_objects(obj2, 'merged_obj2')
|
144 |
+
obj2.set_scale([obj2_scale, obj2_scale, obj2_scale])
|
145 |
+
obj2.set_location([right_x, right_y, offset_z + offset_2])
|
146 |
+
|
147 |
+
|
148 |
+
|
149 |
+
obj2.set_rotation_euler([0, 0, random.uniform(-np.pi/8, np.pi/8)])
|
150 |
+
|
151 |
+
floor = bproc.loader.load_blend(retrieve_floor(args.bg_path), obj_types= ['armature','mesh', 'empty', 'hair'] )
|
152 |
+
floor = bproc.object.merge_objects(floor)
|
153 |
+
floor.set_location([0,0,min(offset_2, offset_z)])
|
154 |
+
|
155 |
+
# define a light and set its location and energy level
|
156 |
+
light = bproc.types.Light()
|
157 |
+
light.set_type("POINT")
|
158 |
+
light.set_location([0, random.uniform(-5.0, 5.0), 5])
|
159 |
+
light.set_energy(3000)
|
160 |
+
|
161 |
+
poi = (np.array([left_x, left_y, 0]) + np.array([right_x, right_y, 0])) / 2
|
162 |
+
poi[2] = poi[2] + offset
|
163 |
+
|
164 |
+
|
165 |
+
|
166 |
+
# Set camera pose
|
167 |
+
|
168 |
+
# Set output resolution to 1024x1024
|
169 |
+
bproc.camera.set_resolution(1024, 1024)
|
170 |
+
# Sample random camera location around the object
|
171 |
+
location = bproc.sampler.part_sphere([cam_x, cam_y, 1.25], radius=0.25, part_sphere_dir_vector=[1, 0, 0], mode="SURFACE")
|
172 |
+
# Compute rotation based on vector going from location towards poi
|
173 |
+
rotation_matrix = bproc.camera.rotation_from_forward_vec(poi - location)
|
174 |
+
# Add homog cam pose based on location an rotation
|
175 |
+
cam2world_matrix = bproc.math.build_transformation_mat(location, rotation_matrix)
|
176 |
+
bproc.camera.add_camera_pose(cam2world_matrix)
|
177 |
+
|
178 |
+
|
179 |
+
# Render the scene
|
180 |
+
bproc.renderer.set_max_amount_of_samples(24)
|
181 |
+
data = bproc.renderer.render()
|
182 |
+
|
183 |
+
# Write the rendering into an hdf5 file
|
184 |
+
bproc.writer.write_hdf5(args.output_dir + output_name, data, append_to_existing_output=True)
|
185 |
+
print(path1, path2)
|
186 |
+
|
util/py_gen_above_below.py
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import subprocess
|
2 |
+
import os
|
3 |
+
from tqdm import tqdm
|
4 |
+
import argparse
|
5 |
+
from datetime import datetime
|
6 |
+
|
7 |
+
relation = "above_below"
|
8 |
+
|
9 |
+
def divide_list_into_partitions(lst, num_partitions):
|
10 |
+
partition_size = len(lst) // num_partitions
|
11 |
+
partitions = [lst[i:i + partition_size] for i in range(0, len(lst), partition_size)]
|
12 |
+
return partitions
|
13 |
+
|
14 |
+
parser = argparse.ArgumentParser()
|
15 |
+
parser.add_argument('--partition', default=0, type=int, help="Partition 0 - 7")
|
16 |
+
parser.add_argument('--num_partition', default=8, type=int, help="Total number of parallel jobs")
|
17 |
+
parser.add_argument('--num_variants', default=5, type=int, help="Number of variants per 2-object scene")
|
18 |
+
parser.add_argument('--num_background', default=3, type=int, help="Number of variants of backgrounds")
|
19 |
+
parser.add_argument('--obj1_asset_folder', default="assets/blender_assets/", help="Object1 Asset Location")
|
20 |
+
parser.add_argument('--obj2_asset_folder', default="assets/blender_assets/", help="Object2 Asset Location")
|
21 |
+
parser.add_argument('--output_folder', default="/scratch/yluo97/3dscene_output_ver3_debug/", help="hdf5 files output location")
|
22 |
+
parser.add_argument('--non_random', action='store_true', help='Description for flag1')
|
23 |
+
parser.add_argument('--dry_run', action='store_true', help='Perform dry run only')
|
24 |
+
args = parser.parse_args()
|
25 |
+
|
26 |
+
asset_folder = args.obj1_asset_folder
|
27 |
+
output_folder = args.output_folder
|
28 |
+
background_info = [("background/white-background.hdr", "bg_white"),
|
29 |
+
("background/autumn_park_2k.hdr", "bg_real_outdoors"),
|
30 |
+
("background/photo_studio_loft_hall_2k.hdr", "bg_real_indoors"),
|
31 |
+
("background/black-background.hdr", "bg_black")]
|
32 |
+
background_info = background_info[:args.num_background]
|
33 |
+
num_variants = args.num_variants
|
34 |
+
|
35 |
+
object_names = sorted([name for name in os.listdir(args.obj1_asset_folder) if os.path.isdir(os.path.join(args.obj1_asset_folder, name))])
|
36 |
+
object2_names = sorted([name for name in os.listdir(args.obj2_asset_folder) if os.path.isdir(os.path.join(args.obj2_asset_folder, name))])
|
37 |
+
# Command and arguments
|
38 |
+
command = ["blenderproc", "run", f'./util/blender_{relation}_floor.py']
|
39 |
+
|
40 |
+
obj2_partition = divide_list_into_partitions(object_names, args.num_partition)[args.partition]
|
41 |
+
print('Generating partition of ', obj2_partition)
|
42 |
+
|
43 |
+
if args.dry_run:
|
44 |
+
print('List of obj1 is', object_names)
|
45 |
+
os.exit(0)
|
46 |
+
|
47 |
+
for obj1 in object_names:
|
48 |
+
for obj2 in obj2_partition:
|
49 |
+
if obj1 != obj2:
|
50 |
+
for background_path, background_name in background_info:
|
51 |
+
success = 0
|
52 |
+
if args.non_random:
|
53 |
+
arguments = [obj1, obj2, background_path, f'{output_folder}/{relation}_{background_name}/', str(success), '0']
|
54 |
+
else:
|
55 |
+
arguments = [obj1, obj2, background_path, f'{output_folder}/{relation}_{background_name}/', '-1', '0']
|
56 |
+
|
57 |
+
while success < args.num_variants :
|
58 |
+
|
59 |
+
# Run the command
|
60 |
+
try:
|
61 |
+
completed_process = subprocess.run(command + arguments, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=False, check=True)
|
62 |
+
success += 1
|
63 |
+
if args.non_random:
|
64 |
+
arguments = [obj1, obj2, background_path, f'{output_folder}/{relation}_{background_name}/', str(success), '0']
|
65 |
+
else:
|
66 |
+
arguments = [obj1, obj2, background_path, f'{output_folder}/{relation}_{background_name}/', '-1', '0']
|
67 |
+
|
68 |
+
except subprocess.CalledProcessError as e:
|
69 |
+
print("Error:", e)
|
70 |
+
|
71 |
+
print(f'Templates of {obj1}+{obj2} is complete!', f'{datetime.now():%Y-%m-%d %H:%M:%S%z}')
|
util/py_gen_front_behind.py
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import subprocess
|
2 |
+
import os
|
3 |
+
import sys
|
4 |
+
from tqdm import tqdm
|
5 |
+
import argparse
|
6 |
+
from datetime import datetime
|
7 |
+
|
8 |
+
relation = "depth"
|
9 |
+
|
10 |
+
def divide_list_into_partitions(lst, num_partitions):
|
11 |
+
partition_size = len(lst) // num_partitions
|
12 |
+
partitions = [lst[i:i + partition_size] for i in range(0, len(lst), partition_size)]
|
13 |
+
return partitions
|
14 |
+
|
15 |
+
parser = argparse.ArgumentParser()
|
16 |
+
parser.add_argument('--partition', default=0, type=int, help="Partition 0 - 7")
|
17 |
+
parser.add_argument('--num_partition', default=8, type=int, help="Total number of parallel jobs")
|
18 |
+
parser.add_argument('--num_variants', default=5, type=int, help="Number of variants per 2-object scene")
|
19 |
+
parser.add_argument('--num_background', default=3, type=int, help="Number of variants of backgrounds")
|
20 |
+
parser.add_argument('--obj1_asset_folder', default="assets/blender_assets/", help="Object1 Asset Location")
|
21 |
+
parser.add_argument('--obj2_asset_folder', default="assets/blender_assets/", help="Object2 Asset Location")
|
22 |
+
parser.add_argument('--output_folder', default="/scratch/yluo97/3dscene_output_depth_coco/", help="hdf5 files output location")
|
23 |
+
parser.add_argument('--non_random', action='store_true', help='Description for flag1')
|
24 |
+
parser.add_argument('--dry_run', action='store_true', help='Perform dry run only')
|
25 |
+
args = parser.parse_args()
|
26 |
+
|
27 |
+
|
28 |
+
asset_folder = args.obj1_asset_folder
|
29 |
+
output_folder = args.output_folder
|
30 |
+
background_info = [("background/white-background.hdr", "bg_white"),
|
31 |
+
("background/autumn_park_2k.hdr", "bg_real_outdoors"),
|
32 |
+
("background/photo_studio_loft_hall_2k.hdr", "bg_real_indoors"),
|
33 |
+
("background/black-background.hdr", "bg_black")]
|
34 |
+
background_info = background_info[:args.num_background]
|
35 |
+
num_variants = args.num_variants
|
36 |
+
|
37 |
+
object_names = sorted([name for name in os.listdir(args.obj1_asset_folder) if os.path.isdir(os.path.join(args.obj1_asset_folder, name))])
|
38 |
+
object2_names = sorted([name for name in os.listdir(args.obj2_asset_folder) if os.path.isdir(os.path.join(args.obj2_asset_folder, name))])
|
39 |
+
# Command and arguments
|
40 |
+
command = ["blenderproc", "run", f'./util/blender_depth_high.py']
|
41 |
+
|
42 |
+
obj2_partition = divide_list_into_partitions(object2_names, args.num_partition)[args.partition]
|
43 |
+
print('Generating partition of ', obj2_partition)
|
44 |
+
|
45 |
+
if args.dry_run:
|
46 |
+
print('List of obj1 is', object_names)
|
47 |
+
sys.exit(0)
|
48 |
+
|
49 |
+
for obj1 in object_names:
|
50 |
+
for obj2 in obj2_partition:
|
51 |
+
if obj1 != obj2:
|
52 |
+
for background_path, background_name in background_info:
|
53 |
+
success = 0
|
54 |
+
if args.non_random:
|
55 |
+
arguments = [obj1, obj2, background_path, f'{output_folder}/{relation}_{background_name}/', str(success), '0']
|
56 |
+
else:
|
57 |
+
arguments = [obj1, obj2, background_path, f'{output_folder}/{relation}_{background_name}/', '-1', '0']
|
58 |
+
|
59 |
+
|
60 |
+
|
61 |
+
while success < args.num_variants :
|
62 |
+
|
63 |
+
# Run the command
|
64 |
+
try:
|
65 |
+
completed_process = subprocess.run(command + arguments, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=False, check=True)
|
66 |
+
success += 1
|
67 |
+
if args.non_random:
|
68 |
+
arguments = [obj1, obj2, background_path, f'{output_folder}/{relation}_{background_name}/', str(success), '0']
|
69 |
+
else:
|
70 |
+
arguments = [obj1, obj2, background_path, f'{output_folder}/{relation}_{background_name}/', '-1', '0']
|
71 |
+
|
72 |
+
except subprocess.CalledProcessError as e:
|
73 |
+
print("Error:", e)
|
74 |
+
|
75 |
+
print(f'Templates of {obj1}+{obj2} is complete!', f'{datetime.now():%Y-%m-%d %H:%M:%S%z}')
|
util/py_gen_left_right.py
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import subprocess
|
2 |
+
import os
|
3 |
+
from tqdm import tqdm
|
4 |
+
import argparse
|
5 |
+
from datetime import datetime
|
6 |
+
|
7 |
+
relation = "left_right"
|
8 |
+
|
9 |
+
def divide_list_into_partitions(lst, num_partitions):
|
10 |
+
partition_size = len(lst) // num_partitions
|
11 |
+
partitions = [lst[i:i + partition_size] for i in range(0, len(lst), partition_size)]
|
12 |
+
return partitions
|
13 |
+
|
14 |
+
parser = argparse.ArgumentParser()
|
15 |
+
parser.add_argument('--partition', default=0, type=int, help="Partition 0 - 7")
|
16 |
+
parser.add_argument('--num_partition', default=8, type=int, help="Total number of parallel jobs")
|
17 |
+
parser.add_argument('--num_variants', default=5, type=int, help="Number of variants per 2-object scene")
|
18 |
+
parser.add_argument('--num_background', default=3, type=int, help="Number of variants of backgrounds")
|
19 |
+
pparser.add_argument('--obj1_asset_folder', default="assets/blender_assets/", help="Object1 Asset Location")
|
20 |
+
parser.add_argument('--obj2_asset_folder', default="assets/blender_assets/", help="Object2 Asset Location")
|
21 |
+
parser.add_argument('--output_folder', default="/scratch/yluo97/3dscene_output_ver3_debug/", help="hdf5 files output location")
|
22 |
+
parser.add_argument('--non_random', action='store_true', help='Description for flag1')
|
23 |
+
parser.add_argument('--dry_run', action='store_true', help='Perform dry run only')
|
24 |
+
args = parser.parse_args()
|
25 |
+
|
26 |
+
|
27 |
+
asset_folder = args.obj1_asset_folder
|
28 |
+
output_folder = args.output_folder
|
29 |
+
background_info = [("background/white-background.hdr", "bg_white"),
|
30 |
+
("background/autumn_park_2k.hdr", "bg_real_outdoors"),
|
31 |
+
("background/photo_studio_loft_hall_2k.hdr", "bg_real_indoors"),
|
32 |
+
("background/black-background.hdr", "bg_black")]
|
33 |
+
background_info = background_info[:args.num_background]
|
34 |
+
num_variants = args.num_variants
|
35 |
+
|
36 |
+
object_names = sorted([name for name in os.listdir(args.obj1_asset_folder) if os.path.isdir(os.path.join(args.obj1_asset_folder, name))])
|
37 |
+
object2_names = sorted([name for name in os.listdir(args.obj2_asset_folder) if os.path.isdir(os.path.join(args.obj2_asset_folder, name))])
|
38 |
+
# Command and arguments
|
39 |
+
command = ["blenderproc", "run", f'./util/blender_{relation}_floor.py']
|
40 |
+
|
41 |
+
obj2_partition = divide_list_into_partitions(object2_names, args.num_partition)[args.partition]
|
42 |
+
print('Generating partition of ', obj2_partition)
|
43 |
+
|
44 |
+
if args.dry_run:
|
45 |
+
print('List of obj1 is', object_names)
|
46 |
+
os.exit(0)
|
47 |
+
|
48 |
+
for obj1 in object_names:
|
49 |
+
for obj2 in obj2_partition:
|
50 |
+
if obj1 != obj2:
|
51 |
+
for background_path, background_name in background_info:
|
52 |
+
success = 0
|
53 |
+
if args.non_random:
|
54 |
+
arguments = [obj1, obj2, background_path, f'{output_folder}/{relation}_{background_name}/', str(success), '0']
|
55 |
+
else:
|
56 |
+
arguments = [obj1, obj2, background_path, f'{output_folder}/{relation}_{background_name}/', '-1', '0']
|
57 |
+
|
58 |
+
|
59 |
+
|
60 |
+
while success < args.num_variants :
|
61 |
+
|
62 |
+
# Run the command
|
63 |
+
try:
|
64 |
+
completed_process = subprocess.run(command + arguments, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=False, check=True)
|
65 |
+
success += 1
|
66 |
+
if args.non_random:
|
67 |
+
arguments = [obj1, obj2, background_path, f'{output_folder}/{relation}_{background_name}/', str(success), '0']
|
68 |
+
else:
|
69 |
+
arguments = [obj1, obj2, background_path, f'{output_folder}/{relation}_{background_name}/', '-1', '0']
|
70 |
+
|
71 |
+
# Print the standard output
|
72 |
+
# print("Standard Output:")
|
73 |
+
# print(completed_process.stdout)
|
74 |
+
|
75 |
+
# Print the standard error
|
76 |
+
# print("Standard Error:")
|
77 |
+
# print(completed_process.stderr)
|
78 |
+
|
79 |
+
except subprocess.CalledProcessError as e:
|
80 |
+
print("Error:", e)
|
81 |
+
|
82 |
+
print(f'Templates of {obj1}+{obj2} is complete!', f'{datetime.now():%Y-%m-%d %H:%M:%S%z}')
|
util/py_gen_left_right_near.py
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import subprocess
|
2 |
+
import os
|
3 |
+
from tqdm import tqdm
|
4 |
+
import argparse
|
5 |
+
from datetime import datetime
|
6 |
+
|
7 |
+
relation = "left_right"
|
8 |
+
|
9 |
+
def divide_list_into_partitions(lst, num_partitions):
|
10 |
+
partition_size = len(lst) // num_partitions
|
11 |
+
partitions = [lst[i:i + partition_size] for i in range(0, len(lst), partition_size)]
|
12 |
+
return partitions
|
13 |
+
|
14 |
+
parser = argparse.ArgumentParser()
|
15 |
+
parser.add_argument('--partition', default=0, type=int, help="Partition 0 - 7")
|
16 |
+
parser.add_argument('--num_partition', default=8, type=int, help="Total number of parallel jobs")
|
17 |
+
parser.add_argument('--num_variants', default=5, type=int, help="Number of variants per 2-object scene")
|
18 |
+
parser.add_argument('--num_background', default=3, type=int, help="Number of variants of backgrounds")
|
19 |
+
pparser.add_argument('--obj1_asset_folder', default="assets/blender_assets/", help="Object1 Asset Location")
|
20 |
+
parser.add_argument('--obj2_asset_folder', default="assets/blender_assets/", help="Object2 Asset Location")
|
21 |
+
parser.add_argument('--output_folder', default="/scratch/yluo97/3dscene_output_ver3_debug/", help="hdf5 files output location")
|
22 |
+
parser.add_argument('--non_random', action='store_true', help='Description for flag1')
|
23 |
+
parser.add_argument('--dry_run', action='store_true', help='Perform dry run only')
|
24 |
+
args = parser.parse_args()
|
25 |
+
|
26 |
+
|
27 |
+
asset_folder = args.obj1_asset_folder
|
28 |
+
output_folder = args.output_folder
|
29 |
+
background_info = [("background/white-background.hdr", "bg_white"),
|
30 |
+
("background/autumn_park_2k.hdr", "bg_real_outdoors"),
|
31 |
+
("background/photo_studio_loft_hall_2k.hdr", "bg_real_indoors"),
|
32 |
+
("background/black-background.hdr", "bg_black")]
|
33 |
+
background_info = background_info[:args.num_background]
|
34 |
+
num_variants = args.num_variants
|
35 |
+
|
36 |
+
object_names = sorted([name for name in os.listdir(args.obj1_asset_folder) if os.path.isdir(os.path.join(args.obj1_asset_folder, name))])
|
37 |
+
object2_names = sorted([name for name in os.listdir(args.obj2_asset_folder) if os.path.isdir(os.path.join(args.obj2_asset_folder, name))])
|
38 |
+
# Command and arguments
|
39 |
+
command = ["blenderproc", "run", f'./util/blender_{relation}_near_floor.py']
|
40 |
+
|
41 |
+
obj2_partition = divide_list_into_partitions(object2_names, args.num_partition)[args.partition]
|
42 |
+
print('Generating partition of ', obj2_partition)
|
43 |
+
|
44 |
+
if args.dry_run:
|
45 |
+
print('List of obj1 is', object_names)
|
46 |
+
os.exit(0)
|
47 |
+
|
48 |
+
for obj1 in object_names:
|
49 |
+
for obj2 in obj2_partition:
|
50 |
+
if obj1 != obj2:
|
51 |
+
for background_path, background_name in background_info:
|
52 |
+
success = 0
|
53 |
+
if args.non_random:
|
54 |
+
arguments = [obj1, obj2, background_path, f'{output_folder}/{relation}_{background_name}/', str(success), '0']
|
55 |
+
else:
|
56 |
+
arguments = [obj1, obj2, background_path, f'{output_folder}/{relation}_{background_name}/', '-1', '0']
|
57 |
+
|
58 |
+
|
59 |
+
|
60 |
+
while success < args.num_variants :
|
61 |
+
|
62 |
+
# Run the command
|
63 |
+
try:
|
64 |
+
completed_process = subprocess.run(command + arguments, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=False, check=True)
|
65 |
+
success += 1
|
66 |
+
if args.non_random:
|
67 |
+
arguments = [obj1, obj2, background_path, f'{output_folder}/{relation}_{background_name}/', str(success), '0']
|
68 |
+
else:
|
69 |
+
arguments = [obj1, obj2, background_path, f'{output_folder}/{relation}_{background_name}/', '-1', '0']
|
70 |
+
|
71 |
+
# Print the standard output
|
72 |
+
# print("Standard Output:")
|
73 |
+
# print(completed_process.stdout)
|
74 |
+
|
75 |
+
# Print the standard error
|
76 |
+
# print("Standard Error:")
|
77 |
+
# print(completed_process.stderr)
|
78 |
+
|
79 |
+
except subprocess.CalledProcessError as e:
|
80 |
+
print("Error:", e)
|
81 |
+
|
82 |
+
print(f'Templates of {obj1}+{obj2} is complete!', f'{datetime.now():%Y-%m-%d %H:%M:%S%z}')
|
util/py_gen_t2i_comp_floor.py
ADDED
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import subprocess
|
2 |
+
import os
|
3 |
+
from tqdm import tqdm
|
4 |
+
import argparse
|
5 |
+
from datetime import datetime
|
6 |
+
|
7 |
+
rel_list_above = ['on the top of', 'on the bottom of']
|
8 |
+
rel_list_left = ['on the left of', 'on the right of']
|
9 |
+
rel_list_near = ['on side of', 'next to', 'near']
|
10 |
+
|
11 |
+
swap_table = {
|
12 |
+
'bag': 'handbag',
|
13 |
+
'sofa': 'couch',
|
14 |
+
'television': 'tv',
|
15 |
+
'table': 'dining_table',
|
16 |
+
'phone': 'cell_phone'
|
17 |
+
}
|
18 |
+
|
19 |
+
with open('util/t2i_prompt_spatial_all.txt', 'r') as f:
|
20 |
+
texts = f.read().splitlines()
|
21 |
+
# texts = list(set(texts))
|
22 |
+
# texts = ['a book on the left of a bird', 'a man on the bottom of a sofa','a painting on the right of a pig','a pig on the bottom of a wallet']
|
23 |
+
|
24 |
+
def get_obj_t2i(prompt):
|
25 |
+
first_obj = prompt.split(' ')[1]
|
26 |
+
second_obj = prompt.split(' ')[-1]
|
27 |
+
|
28 |
+
if first_obj in swap_table:
|
29 |
+
first_obj = swap_table[first_obj]
|
30 |
+
if second_obj in swap_table:
|
31 |
+
second_obj = swap_table[second_obj]
|
32 |
+
return first_obj, second_obj
|
33 |
+
|
34 |
+
def get_blender_command(prompt):
|
35 |
+
relation = ''
|
36 |
+
script = ''
|
37 |
+
obj1, obj2 = get_obj_t2i(prompt)
|
38 |
+
if 'right' in prompt or 'bottom' in prompt:
|
39 |
+
obj1, obj2 = obj2, obj1
|
40 |
+
for rel in rel_list_above:
|
41 |
+
if rel in prompt:
|
42 |
+
script = './util/blender_above_below_floor.py'
|
43 |
+
for rel in rel_list_left:
|
44 |
+
if rel in prompt:
|
45 |
+
script = './util/blender_left_right_floor.py'
|
46 |
+
if len(script) == 0:
|
47 |
+
script = './util/blender_left_right_near_floor.py'
|
48 |
+
|
49 |
+
return obj1, obj2, prompt, script
|
50 |
+
|
51 |
+
def divide_list_into_partitions(lst, num_partitions):
|
52 |
+
partition_size = len(lst) // num_partitions
|
53 |
+
partitions = [lst[i:i + partition_size] for i in range(0, len(lst), partition_size)]
|
54 |
+
return partitions
|
55 |
+
|
56 |
+
parser = argparse.ArgumentParser()
|
57 |
+
parser.add_argument('--partition', default=0, type=int, help="Partition 0 - 7")
|
58 |
+
parser.add_argument('--num_partition', default=7, type=int, help="Total number of parallel jobs")
|
59 |
+
parser.add_argument('--num_variants', default=5, type=int, help="Number of variants per 2-object scene")
|
60 |
+
parser.add_argument('--num_background', default=3, type=int, help="Number of variants of backgrounds")
|
61 |
+
parser.add_argument('--obj1_asset_folder', default="assets/blender_assets/", help="Object1 Asset Location")
|
62 |
+
parser.add_argument('--obj2_asset_folder', default="assets/blender_assets/", help="Object2 Asset Location")
|
63 |
+
parser.add_argument('--output_folder', default="/scratch/yluo97/3dscene_output_ver3_debug/", help="hdf5 files output location")
|
64 |
+
parser.add_argument('--non_random', action='store_true', help='Description for flag1')
|
65 |
+
parser.add_argument('--dry_run', action='store_true', help='Perform dry run only')
|
66 |
+
args = parser.parse_args()
|
67 |
+
|
68 |
+
asset_folder = args.obj1_asset_folder
|
69 |
+
output_folder = args.output_folder
|
70 |
+
background_info = [("background/white-background.hdr", "bg_white"),
|
71 |
+
("background/autumn_park_2k.hdr", "bg_real_outdoors"),
|
72 |
+
("background/photo_studio_loft_hall_2k.hdr", "bg_real_indoors"),
|
73 |
+
("background/black-background.hdr", "bg_black")]
|
74 |
+
background_info = background_info[:args.num_background]
|
75 |
+
num_variants = args.num_variants
|
76 |
+
|
77 |
+
# object_names = sorted([name for name in os.listdir(args.obj1_asset_folder) if os.path.isdir(os.path.join(args.obj1_asset_folder, name))])
|
78 |
+
# object2_names = sorted([name for name in os.listdir(args.obj2_asset_folder) if os.path.isdir(os.path.join(args.obj2_asset_folder, name))])
|
79 |
+
# Command and arguments
|
80 |
+
# command = ["blenderproc", "run", f'blender_{relation}_small.py']
|
81 |
+
|
82 |
+
texts_partition = divide_list_into_partitions(texts, args.num_partition)[args.partition]
|
83 |
+
# print('Generating partition of ', texts_partition)
|
84 |
+
|
85 |
+
for prompt in texts_partition:
|
86 |
+
obj1, obj2, text, script = get_blender_command(prompt)
|
87 |
+
command = ["blenderproc", "run", script]
|
88 |
+
text = '_'.join(text.split())
|
89 |
+
for background_path, background_name in background_info:
|
90 |
+
success = 0
|
91 |
+
if args.non_random:
|
92 |
+
arguments = [obj1, obj2, background_path, f'{output_folder}/{background_name}/{text}/', str(success), '0']
|
93 |
+
else:
|
94 |
+
arguments = [obj1, obj2, background_path, f'{output_folder}/{background_name}/{text}/', '-1', '0']
|
95 |
+
|
96 |
+
while success < args.num_variants :
|
97 |
+
|
98 |
+
# Run the command
|
99 |
+
try:
|
100 |
+
if args.dry_run:
|
101 |
+
print(command + arguments)
|
102 |
+
else:
|
103 |
+
completed_process = subprocess.run(command + arguments, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=False, check=True)
|
104 |
+
success += 1
|
105 |
+
if args.non_random:
|
106 |
+
arguments = [obj1, obj2, background_path, f'{output_folder}/{background_name}/{text}/', str(success), '0']
|
107 |
+
else:
|
108 |
+
arguments = [obj1, obj2, background_path, f'{output_folder}/{background_name}/{text}/', '-1', '0']
|
109 |
+
|
110 |
+
except subprocess.CalledProcessError as e:
|
111 |
+
print("Error:", e)
|
112 |
+
|
113 |
+
print(f'Templates of {text} is complete!', f'{datetime.now():%Y-%m-%d %H:%M:%S%z}')
|
util/t2i_prompt_spatial_all.txt
ADDED
@@ -0,0 +1,1000 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
a balloon on the top of a giraffe
|
2 |
+
a suitcase on the top of a frog
|
3 |
+
a horse on the right of a man
|
4 |
+
a rabbit next to a balloon
|
5 |
+
a rabbit on the top of a bicycle
|
6 |
+
a bee on the left of a girl
|
7 |
+
a mouse on the bottom of a painting
|
8 |
+
a fish on side of a painting
|
9 |
+
a chicken on the bottom of a desk
|
10 |
+
a chicken near a desk
|
11 |
+
a chicken on the top of a balloon
|
12 |
+
a horse near a lamp
|
13 |
+
a cow next to a train
|
14 |
+
a vase on the left of a pig
|
15 |
+
a sheep on the top of a airplane
|
16 |
+
a cow on the bottom of a man
|
17 |
+
a painting on the right of a bee
|
18 |
+
a woman on the left of a sheep
|
19 |
+
a phone on the left of a boy
|
20 |
+
a giraffe on the right of a girl
|
21 |
+
a plate on the right of a bee
|
22 |
+
a train on the left of a boy
|
23 |
+
a bicycle on the left of a bird
|
24 |
+
a computer on the top of a sheep
|
25 |
+
a rabbit on the top of a book
|
26 |
+
a couch on the right of a turtle
|
27 |
+
a girl on the left of a frog
|
28 |
+
a bowl on the right of a chicken
|
29 |
+
a airplane on the left of a turtle
|
30 |
+
a chicken on the top of a bicycle
|
31 |
+
a cup on the left of a fish
|
32 |
+
a boy on the top of a bag
|
33 |
+
a sheep near a car
|
34 |
+
a computer on the bottom of a horse
|
35 |
+
a girl on the left of a bee
|
36 |
+
a bag on the bottom of a chicken
|
37 |
+
a backpack on the right of a bird
|
38 |
+
a giraffe on the top of a man
|
39 |
+
a wallet on the right of a bee
|
40 |
+
a fish on the left of a microwave
|
41 |
+
a dog on the top of a suitcase
|
42 |
+
a turtle on the left of a painting
|
43 |
+
a fish on the top of a bowl
|
44 |
+
a bee on the top of a airplane
|
45 |
+
a television on the right of a cow
|
46 |
+
a giraffe on the left of a lamp
|
47 |
+
a bag on the right of a butterfly
|
48 |
+
a bicycle on the top of a chicken
|
49 |
+
a cow near a balloon
|
50 |
+
a computer on the left of a pig
|
51 |
+
a cat on the bottom of a car
|
52 |
+
a giraffe on the right of a phone
|
53 |
+
a person on the left of a microwave
|
54 |
+
a microwave on the bottom of a rabbit
|
55 |
+
a cat near a table
|
56 |
+
a wallet on the right of a dog
|
57 |
+
a sheep on the top of a backpack
|
58 |
+
a vase on the bottom of a chicken
|
59 |
+
a man on the right of a plate
|
60 |
+
a pig on side of a wallet
|
61 |
+
a sofa on the top of a boy
|
62 |
+
a key on the top of a frog
|
63 |
+
a bird on the bottom of a suitcase
|
64 |
+
a train on the top of a woman
|
65 |
+
a pig on the right of a computer
|
66 |
+
a painting on the right of a woman
|
67 |
+
a bicycle on the left of a girl
|
68 |
+
a refrigerator on the bottom of a dog
|
69 |
+
a television on the left of a cow
|
70 |
+
a giraffe near a key
|
71 |
+
a television on the left of a fish
|
72 |
+
a man on side of a clock
|
73 |
+
a painting on the left of a horse
|
74 |
+
a wallet on the top of a person
|
75 |
+
a bee on the left of a phone
|
76 |
+
a car on the top of a turtle
|
77 |
+
a person next to a airplane
|
78 |
+
a rabbit next to a microwave
|
79 |
+
a bowl on the left of a man
|
80 |
+
a boy on the bottom of a lamp
|
81 |
+
a cat on side of a vase
|
82 |
+
a sheep on the left of a wallet
|
83 |
+
a pig on the left of a couch
|
84 |
+
a pig on the left of a sofa
|
85 |
+
a train on the right of a boy
|
86 |
+
a couch on the left of a bird
|
87 |
+
a lamp on the bottom of a bee
|
88 |
+
a woman next to a computer
|
89 |
+
a frog on side of a cup
|
90 |
+
a giraffe on the left of a candle
|
91 |
+
a sheep next to a desk
|
92 |
+
a man on the top of a candle
|
93 |
+
a suitcase on the top of a sheep
|
94 |
+
a man on the bottom of a car
|
95 |
+
a woman on the left of a television
|
96 |
+
a key on the top of a horse
|
97 |
+
a fish near a sofa
|
98 |
+
a microwave on the top of a sheep
|
99 |
+
a man on the right of a book
|
100 |
+
a computer on the bottom of a butterfly
|
101 |
+
a phone on the bottom of a person
|
102 |
+
a pig on the top of a backpack
|
103 |
+
a butterfly on the bottom of a candle
|
104 |
+
a person on the right of a refrigerator
|
105 |
+
a bird on side of a lamp
|
106 |
+
a plate on the left of a bee
|
107 |
+
a dog next to a phone
|
108 |
+
a sheep next to a bicycle
|
109 |
+
a turtle on side of a phone
|
110 |
+
a backpack on the bottom of a giraffe
|
111 |
+
a pig on the right of a table
|
112 |
+
a car on the bottom of a cow
|
113 |
+
a desk on the right of a cow
|
114 |
+
a pig on the bottom of a candle
|
115 |
+
a bee near a airplane
|
116 |
+
a frog on the bottom of a person
|
117 |
+
a bee on the top of a table
|
118 |
+
a bird on side of a plate
|
119 |
+
a pig on the top of a wallet
|
120 |
+
a frog on the right of a microwave
|
121 |
+
a boy on side of a key
|
122 |
+
a wallet on the bottom of a bee
|
123 |
+
a woman on the bottom of a lamp
|
124 |
+
a bee on the top of a backpack
|
125 |
+
a pig on side of a painting
|
126 |
+
a wallet on the bottom of a dog
|
127 |
+
a clock on the left of a giraffe
|
128 |
+
a cup on the bottom of a woman
|
129 |
+
a woman near a airplane
|
130 |
+
a man next to a backpack
|
131 |
+
a dog on side of a car
|
132 |
+
a man near a table
|
133 |
+
a wallet on the top of a sheep
|
134 |
+
a book on the top of a mouse
|
135 |
+
a woman on the top of a television
|
136 |
+
a mouse near a book
|
137 |
+
a turtle on the top of a car
|
138 |
+
a boy on the bottom of a book
|
139 |
+
a sheep on side of a phone
|
140 |
+
a key on the top of a fish
|
141 |
+
a computer on the bottom of a man
|
142 |
+
a car on the right of a rabbit
|
143 |
+
a chicken on the top of a woman
|
144 |
+
a book on the bottom of a cat
|
145 |
+
a wallet on the right of a mouse
|
146 |
+
a fish on the bottom of a cup
|
147 |
+
a bowl on the left of a person
|
148 |
+
a microwave on the top of a boy
|
149 |
+
a cat on the bottom of a table
|
150 |
+
a man on the top of a butterfly
|
151 |
+
a dog on the left of a lamp
|
152 |
+
a giraffe on side of a bicycle
|
153 |
+
a person near a clock
|
154 |
+
a turtle on the right of a train
|
155 |
+
a woman on side of a turtle
|
156 |
+
a horse on the left of a lamp
|
157 |
+
a chicken on the left of a car
|
158 |
+
a girl on the top of a bicycle
|
159 |
+
a mouse on the top of a book
|
160 |
+
a wallet on the left of a turtle
|
161 |
+
a suitcase on the bottom of a butterfly
|
162 |
+
a sofa on the top of a woman
|
163 |
+
a bee on the left of a boy
|
164 |
+
a table on the right of a cow
|
165 |
+
a person next to a dog
|
166 |
+
a woman on the bottom of a bowl
|
167 |
+
a microwave on the bottom of a cat
|
168 |
+
a person on the left of a horse
|
169 |
+
a clock on the left of a chicken
|
170 |
+
a bird on the right of a bowl
|
171 |
+
a cat on the left of a man
|
172 |
+
a cow on side of a lamp
|
173 |
+
a candle on the bottom of a butterfly
|
174 |
+
a person on the right of a cup
|
175 |
+
a cow on the left of a boy
|
176 |
+
a bicycle on the right of a butterfly
|
177 |
+
a person on the left of a cow
|
178 |
+
a refrigerator on the bottom of a turtle
|
179 |
+
a giraffe next to a book
|
180 |
+
a cat on the bottom of a microwave
|
181 |
+
a couch on the bottom of a giraffe
|
182 |
+
a bicycle on the right of a person
|
183 |
+
a candle on the right of a girl
|
184 |
+
a man on the right of a key
|
185 |
+
a pig on the bottom of a backpack
|
186 |
+
a boy on the bottom of a computer
|
187 |
+
a cup on the right of a turtle
|
188 |
+
a wallet on the left of a dog
|
189 |
+
a bicycle on the left of a turtle
|
190 |
+
a girl on the top of a phone
|
191 |
+
a bee on the right of a book
|
192 |
+
a train on the bottom of a sheep
|
193 |
+
a desk on the right of a fish
|
194 |
+
a sofa on the bottom of a dog
|
195 |
+
a bee on the top of a woman
|
196 |
+
a table on the right of a giraffe
|
197 |
+
a phone on the left of a horse
|
198 |
+
a cat on the top of a lamp
|
199 |
+
a phone on the left of a fish
|
200 |
+
a rabbit on the right of a lamp
|
201 |
+
a man on side of a cat
|
202 |
+
a chicken near a book
|
203 |
+
a cup on the left of a cat
|
204 |
+
a giraffe near a vase
|
205 |
+
a balloon on the top of a frog
|
206 |
+
a bee on the bottom of a man
|
207 |
+
a sofa on the bottom of a horse
|
208 |
+
a horse on the left of a microwave
|
209 |
+
a turtle on the left of a key
|
210 |
+
a horse on the left of a table
|
211 |
+
a chicken on side of a television
|
212 |
+
a table on the top of a mouse
|
213 |
+
a boy on side of a clock
|
214 |
+
a frog on the bottom of a train
|
215 |
+
a train on the right of a dog
|
216 |
+
a rabbit on the top of a vase
|
217 |
+
a bee next to a sofa
|
218 |
+
a wallet on the right of a cat
|
219 |
+
a bicycle on the right of a girl
|
220 |
+
a rabbit on the left of a plate
|
221 |
+
a man next to a plate
|
222 |
+
a cat next to a cup
|
223 |
+
a plate on the left of a sheep
|
224 |
+
a phone on the right of a cow
|
225 |
+
a phone on the right of a frog
|
226 |
+
a fish on the left of a computer
|
227 |
+
a bee on the right of a woman
|
228 |
+
a girl on the bottom of a bird
|
229 |
+
a girl on the bottom of a painting
|
230 |
+
a cow on the left of a microwave
|
231 |
+
a butterfly on the left of a phone
|
232 |
+
a mouse next to a vase
|
233 |
+
a microwave on the bottom of a cow
|
234 |
+
a phone on the bottom of a rabbit
|
235 |
+
a person near a bird
|
236 |
+
a boy on side of a fish
|
237 |
+
a fish on the bottom of a train
|
238 |
+
a horse next to a train
|
239 |
+
a girl near a car
|
240 |
+
a girl on the top of a desk
|
241 |
+
a pig on the right of a microwave
|
242 |
+
a man on side of a television
|
243 |
+
a girl on the left of a giraffe
|
244 |
+
a dog near a refrigerator
|
245 |
+
a balloon on the top of a sheep
|
246 |
+
a man on the bottom of a clock
|
247 |
+
a girl on the bottom of a turtle
|
248 |
+
a cat on the right of a phone
|
249 |
+
a horse on the bottom of a television
|
250 |
+
a woman on the top of a wallet
|
251 |
+
a mouse on the bottom of a train
|
252 |
+
a turtle on the right of a candle
|
253 |
+
a television on the right of a chicken
|
254 |
+
a boy on side of a cat
|
255 |
+
a giraffe on the left of a backpack
|
256 |
+
a chicken on the bottom of a balloon
|
257 |
+
a person on side of a bird
|
258 |
+
a boy on the bottom of a wallet
|
259 |
+
a person on the top of a microwave
|
260 |
+
a bird near a desk
|
261 |
+
a book on the right of a boy
|
262 |
+
a turtle on the bottom of a backpack
|
263 |
+
a frog on the right of a girl
|
264 |
+
a dog on the bottom of a microwave
|
265 |
+
a refrigerator on the left of a turtle
|
266 |
+
a television on the right of a girl
|
267 |
+
a bicycle on the left of a dog
|
268 |
+
a microwave on the left of a cow
|
269 |
+
a man next to a clock
|
270 |
+
a dog on the left of a sofa
|
271 |
+
a fish near a television
|
272 |
+
a mouse on side of a refrigerator
|
273 |
+
a mouse on side of a train
|
274 |
+
a chair on the bottom of a cat
|
275 |
+
a computer on the top of a giraffe
|
276 |
+
a frog next to a clock
|
277 |
+
a bee on side of a backpack
|
278 |
+
a horse on side of a desk
|
279 |
+
a bag on the bottom of a turtle
|
280 |
+
a person near a key
|
281 |
+
a man on the top of a plate
|
282 |
+
a couch on the bottom of a boy
|
283 |
+
a train on the right of a pig
|
284 |
+
a man on the right of a cat
|
285 |
+
a bee on the right of a painting
|
286 |
+
a suitcase on the top of a man
|
287 |
+
a painting on the left of a giraffe
|
288 |
+
a sheep on side of a table
|
289 |
+
a computer on the bottom of a chicken
|
290 |
+
a frog on the left of a computer
|
291 |
+
a plate on the bottom of a giraffe
|
292 |
+
a car on the left of a cat
|
293 |
+
a sheep on the bottom of a suitcase
|
294 |
+
a microwave on the top of a woman
|
295 |
+
a bowl on the bottom of a dog
|
296 |
+
a bee on side of a suitcase
|
297 |
+
a frog on the right of a woman
|
298 |
+
a bird near a train
|
299 |
+
a sofa on the left of a turtle
|
300 |
+
a person near a cup
|
301 |
+
a person on side of a bowl
|
302 |
+
a woman on the right of a train
|
303 |
+
a bird on the left of a girl
|
304 |
+
a book on the top of a man
|
305 |
+
a couch on the bottom of a cat
|
306 |
+
a cat next to a chair
|
307 |
+
a frog on the right of a car
|
308 |
+
a bicycle on the bottom of a rabbit
|
309 |
+
a refrigerator on the bottom of a man
|
310 |
+
a cat on the left of a bicycle
|
311 |
+
a bee on the bottom of a plate
|
312 |
+
a suitcase on the right of a dog
|
313 |
+
a frog near a car
|
314 |
+
a lamp on the bottom of a giraffe
|
315 |
+
a fish near a table
|
316 |
+
a bee on the top of a refrigerator
|
317 |
+
a woman on the bottom of a bag
|
318 |
+
a key on the right of a bee
|
319 |
+
a computer on the left of a person
|
320 |
+
a dog on side of a balloon
|
321 |
+
a giraffe on the left of a bowl
|
322 |
+
a bee on the bottom of a lamp
|
323 |
+
a cat on the right of a suitcase
|
324 |
+
a bird on the top of a lamp
|
325 |
+
a mouse on the bottom of a man
|
326 |
+
a butterfly on the left of a person
|
327 |
+
a girl near a desk
|
328 |
+
a giraffe next to a plate
|
329 |
+
a cow on the right of a wallet
|
330 |
+
a bird on side of a computer
|
331 |
+
a man near a butterfly
|
332 |
+
a phone on the bottom of a mouse
|
333 |
+
a mouse on the left of a desk
|
334 |
+
a fish near a bag
|
335 |
+
a sheep near a painting
|
336 |
+
a rabbit on the right of a airplane
|
337 |
+
a painting on the top of a cow
|
338 |
+
a mouse on the left of a wallet
|
339 |
+
a candle on the right of a giraffe
|
340 |
+
a woman near a microwave
|
341 |
+
a boy on side of a vase
|
342 |
+
a woman on side of a bag
|
343 |
+
a candle on the left of a person
|
344 |
+
a girl on the top of a train
|
345 |
+
a horse next to a key
|
346 |
+
a dog near a couch
|
347 |
+
a candle on the bottom of a cow
|
348 |
+
a dog on the bottom of a car
|
349 |
+
a woman on the left of a table
|
350 |
+
a fish on side of a bowl
|
351 |
+
a dog on the left of a backpack
|
352 |
+
a cat on the right of a key
|
353 |
+
a cat next to a microwave
|
354 |
+
a key on the left of a frog
|
355 |
+
a mouse on the left of a person
|
356 |
+
a cow on the bottom of a suitcase
|
357 |
+
a cat on the left of a bowl
|
358 |
+
a table on the top of a frog
|
359 |
+
a boy next to a cup
|
360 |
+
a lamp on the top of a sheep
|
361 |
+
a fish on side of a car
|
362 |
+
a train on the bottom of a cat
|
363 |
+
a cow on side of a chair
|
364 |
+
a bag on the bottom of a person
|
365 |
+
a cow on side of a candle
|
366 |
+
a girl next to a butterfly
|
367 |
+
a microwave on the right of a bee
|
368 |
+
a person on the right of a mouse
|
369 |
+
a boy on the top of a wallet
|
370 |
+
a bowl on the left of a bee
|
371 |
+
a bird on the top of a bicycle
|
372 |
+
a giraffe near a sofa
|
373 |
+
a sheep on the bottom of a chair
|
374 |
+
a pig near a phone
|
375 |
+
a butterfly near a wallet
|
376 |
+
a desk on the left of a dog
|
377 |
+
a bowl on the right of a mouse
|
378 |
+
a rabbit near a television
|
379 |
+
a candle on the top of a cat
|
380 |
+
a person next to a horse
|
381 |
+
a woman on the bottom of a bird
|
382 |
+
a train on the top of a man
|
383 |
+
a cup on the right of a horse
|
384 |
+
a boy near a computer
|
385 |
+
a rabbit on the top of a wallet
|
386 |
+
a fish on the bottom of a candle
|
387 |
+
a dog on the top of a vase
|
388 |
+
a woman near a cat
|
389 |
+
a person on the right of a chicken
|
390 |
+
a car on the right of a bee
|
391 |
+
a couch on the top of a girl
|
392 |
+
a girl on the right of a lamp
|
393 |
+
a plate on the top of a cat
|
394 |
+
a woman on the left of a bee
|
395 |
+
a rabbit on the right of a chair
|
396 |
+
a bicycle on the top of a cat
|
397 |
+
a giraffe on the right of a wallet
|
398 |
+
a vase on the left of a cow
|
399 |
+
a phone on the right of a sheep
|
400 |
+
a dog near a key
|
401 |
+
a book on the right of a cow
|
402 |
+
a painting on the left of a frog
|
403 |
+
a sheep on the left of a boy
|
404 |
+
a wallet on the top of a chicken
|
405 |
+
a vase on the right of a woman
|
406 |
+
a man near a car
|
407 |
+
a person on the top of a giraffe
|
408 |
+
a television on the left of a cat
|
409 |
+
a butterfly on the top of a phone
|
410 |
+
a book on the left of a bee
|
411 |
+
a horse on the right of a couch
|
412 |
+
a sheep on the bottom of a backpack
|
413 |
+
a man on the left of a chair
|
414 |
+
a television on the left of a chicken
|
415 |
+
a boy near a giraffe
|
416 |
+
a wallet on the bottom of a chicken
|
417 |
+
a airplane on the top of a fish
|
418 |
+
a candle on the top of a butterfly
|
419 |
+
a table on the bottom of a woman
|
420 |
+
a wallet on the bottom of a horse
|
421 |
+
a woman on the top of a fish
|
422 |
+
a boy near a key
|
423 |
+
a rabbit next to a phone
|
424 |
+
a cow on the left of a car
|
425 |
+
a chicken on side of a couch
|
426 |
+
a bird on the left of a book
|
427 |
+
a mouse next to a backpack
|
428 |
+
a bee on the bottom of a chair
|
429 |
+
a sheep on the bottom of a sofa
|
430 |
+
a dog on the top of a girl
|
431 |
+
a giraffe on the right of a television
|
432 |
+
a chair on the left of a turtle
|
433 |
+
a airplane on the right of a rabbit
|
434 |
+
a key on the right of a butterfly
|
435 |
+
a woman next to a television
|
436 |
+
a dog on side of a couch
|
437 |
+
a bag on the left of a bee
|
438 |
+
a bird on the top of a plate
|
439 |
+
a airplane on the right of a frog
|
440 |
+
a phone on the top of a man
|
441 |
+
a cat next to a phone
|
442 |
+
a woman near a balloon
|
443 |
+
a sofa on the left of a person
|
444 |
+
a dog on the top of a wallet
|
445 |
+
a chair on the left of a sheep
|
446 |
+
a bird on the bottom of a computer
|
447 |
+
a suitcase on the bottom of a frog
|
448 |
+
a fish on the right of a book
|
449 |
+
a giraffe on the top of a refrigerator
|
450 |
+
a bird on the right of a bicycle
|
451 |
+
a giraffe on the bottom of a television
|
452 |
+
a sofa on the top of a man
|
453 |
+
a cat next to a refrigerator
|
454 |
+
a giraffe on the top of a computer
|
455 |
+
a cow next to a bag
|
456 |
+
a man on the left of a clock
|
457 |
+
a cat near a wallet
|
458 |
+
a woman next to a wallet
|
459 |
+
a butterfly on the left of a television
|
460 |
+
a cat on side of a plate
|
461 |
+
a person on the left of a car
|
462 |
+
a fish on the top of a backpack
|
463 |
+
a car on the bottom of a mouse
|
464 |
+
a butterfly on the right of a bicycle
|
465 |
+
a boy next to a mouse
|
466 |
+
a refrigerator on the top of a bird
|
467 |
+
a woman next to a train
|
468 |
+
a bird on the right of a microwave
|
469 |
+
a cow on side of a car
|
470 |
+
a turtle near a candle
|
471 |
+
a man on the left of a mouse
|
472 |
+
a fish on the right of a airplane
|
473 |
+
a desk on the top of a pig
|
474 |
+
a refrigerator on the bottom of a fish
|
475 |
+
a painting on the bottom of a cow
|
476 |
+
a dog near a suitcase
|
477 |
+
a balloon on the top of a bird
|
478 |
+
a backpack on the left of a butterfly
|
479 |
+
a car on the bottom of a giraffe
|
480 |
+
a giraffe next to a balloon
|
481 |
+
a cat on side of a couch
|
482 |
+
a chicken on the right of a couch
|
483 |
+
a desk on the left of a cat
|
484 |
+
a giraffe on side of a cup
|
485 |
+
a bird next to a bag
|
486 |
+
a book on the right of a dog
|
487 |
+
a woman next to a bird
|
488 |
+
a television on the bottom of a cat
|
489 |
+
a bird on the bottom of a plate
|
490 |
+
a dog on the bottom of a phone
|
491 |
+
a wallet on the bottom of a person
|
492 |
+
a fish near a lamp
|
493 |
+
a car on the bottom of a fish
|
494 |
+
a cow on side of a bicycle
|
495 |
+
a plate on the left of a man
|
496 |
+
a woman on the left of a clock
|
497 |
+
a painting on the bottom of a woman
|
498 |
+
a sheep on the left of a refrigerator
|
499 |
+
a wallet on the top of a boy
|
500 |
+
a key on the left of a giraffe
|
501 |
+
a cat on side of a key
|
502 |
+
a backpack on the bottom of a mouse
|
503 |
+
a microwave on the right of a cat
|
504 |
+
a giraffe next to a bowl
|
505 |
+
a boy on the top of a key
|
506 |
+
a airplane on the top of a giraffe
|
507 |
+
a woman on the top of a lamp
|
508 |
+
a sheep near a backpack
|
509 |
+
a key on the top of a mouse
|
510 |
+
a frog on the right of a wallet
|
511 |
+
a person on the top of a bicycle
|
512 |
+
a bicycle on the bottom of a woman
|
513 |
+
a person next to a microwave
|
514 |
+
a person next to a candle
|
515 |
+
a sheep on the left of a couch
|
516 |
+
a giraffe near a plate
|
517 |
+
a computer on the right of a cow
|
518 |
+
a cat on the bottom of a desk
|
519 |
+
a chicken on the bottom of a refrigerator
|
520 |
+
a dog near a balloon
|
521 |
+
a pig next to a wallet
|
522 |
+
a person on the left of a table
|
523 |
+
a suitcase on the right of a man
|
524 |
+
a bird on side of a desk
|
525 |
+
a frog on the bottom of a suitcase
|
526 |
+
a computer on the bottom of a giraffe
|
527 |
+
a refrigerator on the right of a chicken
|
528 |
+
a girl on the bottom of a candle
|
529 |
+
a girl next to a cup
|
530 |
+
a mouse on the right of a backpack
|
531 |
+
a pig on the top of a plate
|
532 |
+
a table on the left of a mouse
|
533 |
+
a key on the left of a boy
|
534 |
+
a boy near a backpack
|
535 |
+
a dog on the right of a couch
|
536 |
+
a sofa on the bottom of a woman
|
537 |
+
a horse on the left of a woman
|
538 |
+
a couch on the right of a fish
|
539 |
+
a sheep on the left of a suitcase
|
540 |
+
a frog next to a chair
|
541 |
+
a rabbit on the top of a girl
|
542 |
+
a giraffe on side of a candle
|
543 |
+
a man next to a bee
|
544 |
+
a cow near a lamp
|
545 |
+
a bird next to a microwave
|
546 |
+
a couch on the bottom of a mouse
|
547 |
+
a girl on the bottom of a car
|
548 |
+
a woman near a television
|
549 |
+
a chicken near a phone
|
550 |
+
a bag on the right of a bee
|
551 |
+
a chair on the top of a turtle
|
552 |
+
a mouse on side of a bicycle
|
553 |
+
a pig on the bottom of a television
|
554 |
+
a horse on the right of a microwave
|
555 |
+
a girl on the bottom of a chair
|
556 |
+
a lamp on the bottom of a rabbit
|
557 |
+
a frog on the bottom of a bag
|
558 |
+
a bee on side of a candle
|
559 |
+
a dog on the left of a balloon
|
560 |
+
a person next to a cat
|
561 |
+
a cow on the bottom of a computer
|
562 |
+
a cup on the right of a bird
|
563 |
+
a fish on side of a airplane
|
564 |
+
a book on the top of a frog
|
565 |
+
a bag on the left of a sheep
|
566 |
+
a woman on the top of a couch
|
567 |
+
a cat on the left of a couch
|
568 |
+
a airplane on the right of a man
|
569 |
+
a mouse near a suitcase
|
570 |
+
a boy near a cat
|
571 |
+
a wallet on the right of a man
|
572 |
+
a book on the right of a frog
|
573 |
+
a sheep near a sofa
|
574 |
+
a microwave on the top of a person
|
575 |
+
a dog on the right of a bicycle
|
576 |
+
a frog on side of a train
|
577 |
+
a man on side of a backpack
|
578 |
+
a mouse next to a clock
|
579 |
+
a microwave on the left of a rabbit
|
580 |
+
a mouse on the right of a suitcase
|
581 |
+
a table on the bottom of a girl
|
582 |
+
a phone on the top of a chicken
|
583 |
+
a woman on the left of a rabbit
|
584 |
+
a boy on the bottom of a rabbit
|
585 |
+
a chicken next to a chair
|
586 |
+
a boy near a pig
|
587 |
+
a person on the top of a car
|
588 |
+
a phone on the top of a turtle
|
589 |
+
a vase on the top of a chicken
|
590 |
+
a desk on the right of a sheep
|
591 |
+
a bowl on the left of a woman
|
592 |
+
a bowl on the top of a frog
|
593 |
+
a car on the top of a butterfly
|
594 |
+
a turtle on side of a key
|
595 |
+
a woman on the bottom of a suitcase
|
596 |
+
a butterfly on the bottom of a airplane
|
597 |
+
a vase on the left of a sheep
|
598 |
+
a vase on the bottom of a cat
|
599 |
+
a boy on the bottom of a television
|
600 |
+
a woman on the left of a butterfly
|
601 |
+
a woman on the right of a backpack
|
602 |
+
a rabbit next to a vase
|
603 |
+
a mouse on side of a plate
|
604 |
+
a cat next to a candle
|
605 |
+
a girl on the right of a microwave
|
606 |
+
a turtle on the right of a wallet
|
607 |
+
a person on side of a wallet
|
608 |
+
a boy on side of a dog
|
609 |
+
a sheep on the right of a man
|
610 |
+
a plate on the right of a sheep
|
611 |
+
a bee on the right of a chair
|
612 |
+
a sofa on the bottom of a cow
|
613 |
+
a cow near a car
|
614 |
+
a candle on the top of a cow
|
615 |
+
a cow on the bottom of a couch
|
616 |
+
a man on side of a table
|
617 |
+
a sheep on side of a airplane
|
618 |
+
a butterfly near a lamp
|
619 |
+
a rabbit on the left of a television
|
620 |
+
a rabbit on the right of a computer
|
621 |
+
a wallet on the left of a man
|
622 |
+
a painting on the top of a bee
|
623 |
+
a rabbit on the right of a plate
|
624 |
+
a dog next to a book
|
625 |
+
a suitcase on the left of a turtle
|
626 |
+
a sofa on the right of a cow
|
627 |
+
a giraffe next to a chair
|
628 |
+
a girl on the left of a painting
|
629 |
+
a bag on the left of a dog
|
630 |
+
a girl next to a turtle
|
631 |
+
a mouse on the top of a bicycle
|
632 |
+
a train on the left of a cat
|
633 |
+
a cat near a lamp
|
634 |
+
a mouse on the right of a bowl
|
635 |
+
a person next to a lamp
|
636 |
+
a wallet on the top of a bee
|
637 |
+
a airplane on the right of a dog
|
638 |
+
a turtle on the top of a plate
|
639 |
+
a phone on the left of a girl
|
640 |
+
a person next to a chicken
|
641 |
+
a bird on the bottom of a train
|
642 |
+
a dog next to a train
|
643 |
+
a vase on the top of a cat
|
644 |
+
a person on the right of a dog
|
645 |
+
a boy near a painting
|
646 |
+
a giraffe on the bottom of a woman
|
647 |
+
a balloon on the bottom of a cow
|
648 |
+
a couch on the bottom of a horse
|
649 |
+
a couch on the top of a rabbit
|
650 |
+
a train on the left of a sheep
|
651 |
+
a fish on the left of a train
|
652 |
+
a microwave on the right of a girl
|
653 |
+
a girl on the bottom of a plate
|
654 |
+
a bird on the left of a bag
|
655 |
+
a vase on the top of a turtle
|
656 |
+
a airplane on the bottom of a chicken
|
657 |
+
a candle on the right of a fish
|
658 |
+
a dog next to a backpack
|
659 |
+
a mouse on the top of a refrigerator
|
660 |
+
a backpack on the right of a person
|
661 |
+
a horse on the bottom of a airplane
|
662 |
+
a table on the right of a horse
|
663 |
+
a pig on the top of a sofa
|
664 |
+
a chicken on the left of a chair
|
665 |
+
a person next to a cup
|
666 |
+
a mouse next to a couch
|
667 |
+
a butterfly on the right of a clock
|
668 |
+
a girl near a couch
|
669 |
+
a turtle near a lamp
|
670 |
+
a woman on the left of a vase
|
671 |
+
a chicken on side of a bicycle
|
672 |
+
a fish next to a bicycle
|
673 |
+
a turtle on the bottom of a plate
|
674 |
+
a giraffe near a lamp
|
675 |
+
a vase on the right of a person
|
676 |
+
a fish on the left of a chair
|
677 |
+
a wallet on the bottom of a sheep
|
678 |
+
a mouse near a balloon
|
679 |
+
a suitcase on the right of a bird
|
680 |
+
a desk on the top of a turtle
|
681 |
+
a clock on the right of a chicken
|
682 |
+
a balloon on the right of a mouse
|
683 |
+
a horse on the top of a bowl
|
684 |
+
a suitcase on the right of a pig
|
685 |
+
a chair on the top of a boy
|
686 |
+
a giraffe next to a painting
|
687 |
+
a sheep next to a wallet
|
688 |
+
a man on side of a vase
|
689 |
+
a person on the bottom of a bicycle
|
690 |
+
a boy on the right of a chair
|
691 |
+
a lamp on the right of a pig
|
692 |
+
a couch on the top of a woman
|
693 |
+
a refrigerator on the top of a girl
|
694 |
+
a lamp on the top of a person
|
695 |
+
a cow on the right of a phone
|
696 |
+
a bowl on the top of a woman
|
697 |
+
a mouse on the left of a suitcase
|
698 |
+
a pig on side of a cup
|
699 |
+
a refrigerator on the bottom of a pig
|
700 |
+
a dog on the bottom of a vase
|
701 |
+
a giraffe next to a lamp
|
702 |
+
a girl on the top of a frog
|
703 |
+
a mouse on side of a key
|
704 |
+
a bee on the right of a refrigerator
|
705 |
+
a balloon on the right of a person
|
706 |
+
a cat on the top of a sofa
|
707 |
+
a desk on the right of a horse
|
708 |
+
a bicycle on the bottom of a girl
|
709 |
+
a sheep on the left of a lamp
|
710 |
+
a suitcase on the right of a mouse
|
711 |
+
a bird on side of a airplane
|
712 |
+
a pig on the bottom of a train
|
713 |
+
a mouse on the bottom of a vase
|
714 |
+
a fish on side of a sofa
|
715 |
+
a girl on the top of a refrigerator
|
716 |
+
a boy on the bottom of a bee
|
717 |
+
a chicken on the left of a girl
|
718 |
+
a woman on the left of a balloon
|
719 |
+
a table on the bottom of a dog
|
720 |
+
a horse on side of a bicycle
|
721 |
+
a plate on the bottom of a fish
|
722 |
+
a boy next to a bowl
|
723 |
+
a man on the left of a giraffe
|
724 |
+
a mouse near a bowl
|
725 |
+
a woman on the right of a wallet
|
726 |
+
a frog on the left of a book
|
727 |
+
a mouse near a bag
|
728 |
+
a bicycle on the top of a turtle
|
729 |
+
a bicycle on the bottom of a chicken
|
730 |
+
a sheep on side of a chair
|
731 |
+
a boy on the left of a balloon
|
732 |
+
a bee on the top of a bicycle
|
733 |
+
a painting on the top of a rabbit
|
734 |
+
a bird on the top of a person
|
735 |
+
a key on the top of a chicken
|
736 |
+
a rabbit next to a table
|
737 |
+
a bee on side of a couch
|
738 |
+
a giraffe on the left of a table
|
739 |
+
a rabbit near a bicycle
|
740 |
+
a cup on the right of a dog
|
741 |
+
a book on the top of a butterfly
|
742 |
+
a key on the left of a butterfly
|
743 |
+
a bird on the left of a clock
|
744 |
+
a frog on the top of a bowl
|
745 |
+
a person on side of a cow
|
746 |
+
a chicken on the right of a suitcase
|
747 |
+
a sofa on the left of a frog
|
748 |
+
a pig on the left of a lamp
|
749 |
+
a horse on side of a car
|
750 |
+
a man on the right of a lamp
|
751 |
+
a horse on the left of a car
|
752 |
+
a wallet on the left of a giraffe
|
753 |
+
a clock on the top of a sheep
|
754 |
+
a cat on side of a suitcase
|
755 |
+
a cat next to a suitcase
|
756 |
+
a bird on the left of a microwave
|
757 |
+
a bird on the left of a phone
|
758 |
+
a computer on the top of a rabbit
|
759 |
+
a rabbit on side of a wallet
|
760 |
+
a dog on the bottom of a refrigerator
|
761 |
+
a couch on the right of a chicken
|
762 |
+
a phone on the right of a chicken
|
763 |
+
a bee on the top of a boy
|
764 |
+
a phone on the right of a rabbit
|
765 |
+
a bird on the left of a woman
|
766 |
+
a candle on the left of a mouse
|
767 |
+
a man on the left of a lamp
|
768 |
+
a bee on the left of a refrigerator
|
769 |
+
a frog on the bottom of a bowl
|
770 |
+
a cup on the left of a pig
|
771 |
+
a cow on the bottom of a bag
|
772 |
+
a butterfly on side of a cup
|
773 |
+
a butterfly on the left of a candle
|
774 |
+
a desk on the top of a butterfly
|
775 |
+
a dog on the top of a sofa
|
776 |
+
a turtle next to a bowl
|
777 |
+
a cow on the top of a chair
|
778 |
+
a painting on the bottom of a chicken
|
779 |
+
a vase on the right of a cat
|
780 |
+
a girl on the bottom of a bag
|
781 |
+
a giraffe on the left of a balloon
|
782 |
+
a phone on the right of a butterfly
|
783 |
+
a giraffe next to a suitcase
|
784 |
+
a dog on the right of a wallet
|
785 |
+
a woman on the left of a cup
|
786 |
+
a airplane on the right of a person
|
787 |
+
a microwave on the right of a pig
|
788 |
+
a backpack on the top of a chicken
|
789 |
+
a frog near a phone
|
790 |
+
a cat on side of a wallet
|
791 |
+
a woman on the top of a painting
|
792 |
+
a sheep on side of a sofa
|
793 |
+
a boy on the top of a wallet
|
794 |
+
a cow on side of a train
|
795 |
+
a chair on the bottom of a turtle
|
796 |
+
a turtle on the left of a man
|
797 |
+
a bird on the top of a balloon
|
798 |
+
a horse on the left of a book
|
799 |
+
a table on the top of a pig
|
800 |
+
a boy on side of a bee
|
801 |
+
a turtle next to a television
|
802 |
+
a pig near a cup
|
803 |
+
a rabbit on the bottom of a chair
|
804 |
+
a painting on the bottom of a horse
|
805 |
+
a bowl on the right of a butterfly
|
806 |
+
a frog near a chair
|
807 |
+
a dog on the top of a desk
|
808 |
+
a girl on side of a desk
|
809 |
+
a television on the right of a woman
|
810 |
+
a pig near a wallet
|
811 |
+
a man near a pig
|
812 |
+
a pig on the top of a boy
|
813 |
+
a giraffe near a wallet
|
814 |
+
a pig near a clock
|
815 |
+
a dog on the bottom of a balloon
|
816 |
+
a fish near a cup
|
817 |
+
a bag on the right of a dog
|
818 |
+
a cup on the top of a butterfly
|
819 |
+
a airplane on the right of a girl
|
820 |
+
a frog next to a desk
|
821 |
+
a woman near a bag
|
822 |
+
a woman on the right of a television
|
823 |
+
a cup on the bottom of a dog
|
824 |
+
a woman on the left of a plate
|
825 |
+
a frog near a refrigerator
|
826 |
+
a pig on the top of a man
|
827 |
+
a rabbit on the right of a wallet
|
828 |
+
a girl next to a cow
|
829 |
+
a man on the top of a sofa
|
830 |
+
a cat on the right of a person
|
831 |
+
a bee on the bottom of a airplane
|
832 |
+
a bird on the right of a cup
|
833 |
+
a woman on the top of a pig
|
834 |
+
a airplane on the right of a turtle
|
835 |
+
a television on the top of a bird
|
836 |
+
a cow next to a couch
|
837 |
+
a bird on the right of a man
|
838 |
+
a table on the left of a girl
|
839 |
+
a giraffe near a computer
|
840 |
+
a frog on the left of a refrigerator
|
841 |
+
a giraffe on the right of a wallet
|
842 |
+
a girl near a bag
|
843 |
+
a cow on side of a clock
|
844 |
+
a train on the top of a cow
|
845 |
+
a giraffe on the top of a airplane
|
846 |
+
a plate on the left of a girl
|
847 |
+
a woman on side of a cup
|
848 |
+
a man next to a mouse
|
849 |
+
a chicken near a suitcase
|
850 |
+
a girl on the bottom of a horse
|
851 |
+
a key on the right of a dog
|
852 |
+
a horse near a sofa
|
853 |
+
a turtle on the bottom of a phone
|
854 |
+
a butterfly on the right of a balloon
|
855 |
+
a horse on the bottom of a plate
|
856 |
+
a turtle next to a airplane
|
857 |
+
a woman on the top of a butterfly
|
858 |
+
a mouse on the bottom of a phone
|
859 |
+
a dog on the bottom of a desk
|
860 |
+
a frog on the right of a bag
|
861 |
+
a person on side of a table
|
862 |
+
a chair on the right of a frog
|
863 |
+
a suitcase on the right of a cow
|
864 |
+
a rabbit near a train
|
865 |
+
a candle on the top of a chicken
|
866 |
+
a television on the right of a person
|
867 |
+
a fish next to a train
|
868 |
+
a train on the bottom of a giraffe
|
869 |
+
a train on the bottom of a girl
|
870 |
+
a rabbit on the top of a clock
|
871 |
+
a man on side of a cow
|
872 |
+
a man next to a airplane
|
873 |
+
a woman on the left of a microwave
|
874 |
+
a candle on the right of a bird
|
875 |
+
a bird on side of a balloon
|
876 |
+
a giraffe on the bottom of a suitcase
|
877 |
+
a chair on the right of a giraffe
|
878 |
+
a frog on side of a wallet
|
879 |
+
a balloon on the right of a butterfly
|
880 |
+
a butterfly next to a train
|
881 |
+
a table on the right of a man
|
882 |
+
a desk on the bottom of a giraffe
|
883 |
+
a cat on the bottom of a man
|
884 |
+
a airplane on the top of a mouse
|
885 |
+
a bee near a desk
|
886 |
+
a woman on the right of a phone
|
887 |
+
a bowl on the bottom of a frog
|
888 |
+
a balloon on the bottom of a chicken
|
889 |
+
a balloon on the bottom of a person
|
890 |
+
a person on the right of a train
|
891 |
+
a airplane on the top of a horse
|
892 |
+
a fish on side of a bag
|
893 |
+
a television on the top of a woman
|
894 |
+
a person on the left of a vase
|
895 |
+
a couch on the bottom of a pig
|
896 |
+
a rabbit next to a train
|
897 |
+
a bee next to a microwave
|
898 |
+
a horse on the top of a wallet
|
899 |
+
a girl on the right of a sofa
|
900 |
+
a person on the left of a couch
|
901 |
+
a chicken on side of a candle
|
902 |
+
a cup on the right of a bee
|
903 |
+
a giraffe on the right of a candle
|
904 |
+
a woman on the top of a airplane
|
905 |
+
a rabbit on side of a suitcase
|
906 |
+
a phone on the bottom of a fish
|
907 |
+
a man on the top of a turtle
|
908 |
+
a wallet on the bottom of a bird
|
909 |
+
a woman next to a turtle
|
910 |
+
a vase on the bottom of a person
|
911 |
+
a butterfly on the right of a wallet
|
912 |
+
a woman on the top of a desk
|
913 |
+
a airplane on the right of a mouse
|
914 |
+
a boy on the left of a computer
|
915 |
+
a chicken on side of a cup
|
916 |
+
a horse near a wallet
|
917 |
+
a cow on the top of a painting
|
918 |
+
a girl on the left of a pig
|
919 |
+
a fish near a car
|
920 |
+
a bee on side of a airplane
|
921 |
+
a boy near a airplane
|
922 |
+
a woman on the bottom of a frog
|
923 |
+
a woman on the top of a microwave
|
924 |
+
a giraffe next to a television
|
925 |
+
a bee on the left of a key
|
926 |
+
a cat on the top of a microwave
|
927 |
+
a giraffe on the bottom of a bicycle
|
928 |
+
a balloon on the bottom of a dog
|
929 |
+
a bee on the left of a clock
|
930 |
+
a bird next to a refrigerator
|
931 |
+
a suitcase on the bottom of a turtle
|
932 |
+
a frog on the top of a cup
|
933 |
+
a cat on the right of a table
|
934 |
+
a computer on the bottom of a boy
|
935 |
+
a mouse on the top of a bowl
|
936 |
+
a sheep on the left of a clock
|
937 |
+
a woman on the right of a bowl
|
938 |
+
a wallet on the top of a man
|
939 |
+
a butterfly on the right of a couch
|
940 |
+
a key on the bottom of a horse
|
941 |
+
a turtle on the bottom of a chair
|
942 |
+
a turtle on the bottom of a microwave
|
943 |
+
a boy on the right of a chicken
|
944 |
+
a bicycle on the left of a man
|
945 |
+
a woman next to a airplane
|
946 |
+
a man on side of a candle
|
947 |
+
a woman on the left of a horse
|
948 |
+
a giraffe on the bottom of a bag
|
949 |
+
a person on side of a lamp
|
950 |
+
a plate on the bottom of a man
|
951 |
+
a cow next to a airplane
|
952 |
+
a mouse on the left of a train
|
953 |
+
a cat on the right of a sofa
|
954 |
+
a train on the bottom of a horse
|
955 |
+
a girl on the top of a cow
|
956 |
+
a mouse on the left of a airplane
|
957 |
+
a giraffe on the left of a car
|
958 |
+
a person on the top of a painting
|
959 |
+
a cat on the top of a candle
|
960 |
+
a bee on side of a table
|
961 |
+
a butterfly on side of a desk
|
962 |
+
a bird on side of a key
|
963 |
+
a suitcase on the left of a girl
|
964 |
+
a horse on the top of a man
|
965 |
+
a dog on side of a computer
|
966 |
+
a horse on the bottom of a wallet
|
967 |
+
a fish next to a desk
|
968 |
+
a cat on the left of a lamp
|
969 |
+
a fish on the left of a table
|
970 |
+
a mouse on side of a phone
|
971 |
+
a frog on the left of a table
|
972 |
+
a pig on the right of a vase
|
973 |
+
a dog on the bottom of a train
|
974 |
+
a rabbit on the top of a candle
|
975 |
+
a frog on the left of a phone
|
976 |
+
a mouse on the bottom of a backpack
|
977 |
+
a desk on the top of a cat
|
978 |
+
a cow near a plate
|
979 |
+
a vase on the right of a man
|
980 |
+
a couch on the left of a dog
|
981 |
+
a chicken on the top of a plate
|
982 |
+
a frog on the right of a couch
|
983 |
+
a sheep on the bottom of a painting
|
984 |
+
a boy on the right of a pig
|
985 |
+
a pig on the left of a desk
|
986 |
+
a woman on side of a frog
|
987 |
+
a girl near a book
|
988 |
+
a boy next to a couch
|
989 |
+
a giraffe on the left of a train
|
990 |
+
a book on the top of a woman
|
991 |
+
a car on the right of a man
|
992 |
+
a sheep on the top of a table
|
993 |
+
a giraffe on the right of a bowl
|
994 |
+
a cow on the top of a boy
|
995 |
+
a mouse on side of a bag
|
996 |
+
a pig on side of a phone
|
997 |
+
a book on the left of a bird
|
998 |
+
a man on the bottom of a sofa
|
999 |
+
a painting on the right of a pig
|
1000 |
+
a pig on the bottom of a wallet
|