diff --git a/.gitattributes b/.gitattributes index 1ef325f1b111266a6b26e0196871bd78baa8c2f3..ae3d1bae667cac301b111f2ed6371301ba6fffdd 100644 --- a/.gitattributes +++ b/.gitattributes @@ -57,3 +57,30 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text # Video files - compressed *.mp4 filter=lfs diff=lfs merge=lfs -text *.webm filter=lfs diff=lfs merge=lfs -text +data/blenderbench/level1/camera1/blender_file.blend filter=lfs diff=lfs merge=lfs -text +data/blenderbench/level1/camera2/blender_file.blend filter=lfs diff=lfs merge=lfs -text +data/blenderbench/level1/camera3/blender_file.blend filter=lfs diff=lfs merge=lfs -text +data/blenderbench/level1/camera4/blender_file.blend filter=lfs diff=lfs merge=lfs -text +data/blenderbench/level1/camera5/blender_file.blend filter=lfs diff=lfs merge=lfs -text +data/blenderbench/level1/camera6/blender_file.blend filter=lfs diff=lfs merge=lfs -text +data/blenderbench/level1/camera7/blender_file.blend filter=lfs diff=lfs merge=lfs -text +data/blenderbench/level1/camera8/blender_file.blend filter=lfs diff=lfs merge=lfs -text +data/blenderbench/level1/camera9/blender_file.blend filter=lfs diff=lfs merge=lfs -text +data/blenderbench/level2/attribute1/blender_file.blend filter=lfs diff=lfs merge=lfs -text +data/blenderbench/level2/attribute2/blender_file.blend filter=lfs diff=lfs merge=lfs -text +data/blenderbench/level2/attribute3/blender_file.blend filter=lfs diff=lfs merge=lfs -text +data/blenderbench/level2/attribute4/blender_file.blend filter=lfs diff=lfs merge=lfs -text +data/blenderbench/level2/attribute5/blender_file.blend filter=lfs diff=lfs merge=lfs -text +data/blenderbench/level2/attribute6/blender_file.blend filter=lfs diff=lfs merge=lfs -text +data/blenderbench/level2/attribute7/blender_file.blend filter=lfs diff=lfs merge=lfs -text +data/blenderbench/level2/attribute8/blender_file.blend filter=lfs diff=lfs merge=lfs -text +data/blenderbench/level2/attribute9/blender_file.blend filter=lfs diff=lfs merge=lfs -text +data/blenderbench/level3/attribute1/blender_file.blend filter=lfs diff=lfs merge=lfs -text +data/blenderbench/level3/attribute2/blender_file.blend filter=lfs diff=lfs merge=lfs -text +data/blenderbench/level3/attribute3/blender_file.blend filter=lfs diff=lfs merge=lfs -text +data/blenderbench/level3/attribute4/blender_file.blend filter=lfs diff=lfs merge=lfs -text +data/blenderbench/level3/attribute5/blender_file.blend filter=lfs diff=lfs merge=lfs -text +data/blenderbench/level3/attribute6/blender_file.blend filter=lfs diff=lfs merge=lfs -text +data/blenderbench/level3/attribute7/blender_file.blend filter=lfs diff=lfs merge=lfs -text +data/blenderbench/level3/attribute8/blender_file.blend filter=lfs diff=lfs merge=lfs -text +data/blenderbench/level3/attribute9/blender_file.blend filter=lfs diff=lfs merge=lfs -text diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..82662f38ed3e7258d52748d505ec60e4950d7eb4 --- /dev/null +++ b/README.md @@ -0,0 +1,251 @@ +--- +language: +- en +license: cc-by-4.0 +size_categories: +- n<1K +task_categories: +- image-to-text +- text-generation +- visual-question-answering +pretty_name: BlenderBench +tags: +- 3d +- blender +- code-generation +- vision +- multimodal +- benchmark +dataset_info: + features: + - name: instance_id + dtype: string + - name: level + dtype: string + - name: instance_name + dtype: string + - name: task_description + dtype: string + - name: start_code + dtype: string + - name: goal_code + dtype: string + - name: start_render + dtype: image + - name: goal_render + dtype: image + - name: blend_file_path + dtype: string + - name: blend_file_size_mb + dtype: float64 + splits: + - name: train + num_bytes: 18000000000 + num_examples: 27 + download_size: 18000000000 + dataset_size: 18000000000 +--- + +# BlenderBench Dataset + +
+ +## Dataset Description + +**BlenderBench** is a comprehensive benchmark dataset for evaluating models on 3D scene editing tasks in Blender. The dataset challenges agents to understand visual differences between initial and target scenes, then generate appropriate Blender Python code to transform the initial scene to match the target. + +### Key Features + +- **27 instances** across 3 difficulty levels +- **Multi-modal**: Combines visual understanding with code generation +- **Realistic 3D scenes**: Using Blender Studio assets +- **Progressive difficulty**: From simple camera adjustments to complex scene manipulations +- **Rich annotations**: Each instance includes task descriptions, start/goal code, and rendered images + +### Task Categories + +The dataset covers three main difficulty levels: + +1. **Level 1** (9 instances): Camera adjustments +2. **Level 2** (9 instances): Multi-step editing +3. **Level 3** (9 instances): Compositional editing (level 1 + level 2) + +## Dataset Structure + +Each instance in the dataset contains: + +``` +instance/ +├── blender_file.blend # Blender scene file +├── start.py # Initial scene configuration code +├── goal.py # Target scene configuration code +├── task.txt # Natural language task description +└── renders/ + ├── start/ + │ └── render1.png # Rendered image of initial scene (512x512) + └── goal/ + └── render1.png # Rendered image of target scene (512x512) +``` + +### Data Fields + +When loaded using `datasets.load_dataset()`, each example contains: + +- `instance_id` (string): Unique identifier (e.g., "level1/camera1") +- `level` (string): Difficulty level ("level1", "level2", or "level3") +- `instance_name` (string): Instance name within the level +- `task_description` (string): Natural language description of the task +- `start_code` (string): Python code for the initial scene setup +- `goal_code` (string): Python code for the target scene configuration +- `start_render` (image): Rendered image of the initial scene (512x512 PNG) +- `goal_render` (image): Rendered image of the target scene (512x512 PNG) +- `blend_file_path` (string): Relative path to the .blend file +- `blend_file_size_mb` (float): Size of the .blend file in MB + +### Data Splits + +The dataset provides a single training split containing all instances. You can filter by difficulty level using the dataset configurations: + +- `all`: All instances (default) +- `level1`: Only level 1 instances +- `level2`: Only level 2 instances +- `level3`: Only level 3 instances + + +## Usage + +### Installation + +```bash +pip install datasets huggingface_hub +``` + +### Loading the Dataset + +```python +from datasets import load_dataset + +# Load all instances +dataset = load_dataset("DietCoke4671/BlenderBench") + +# Load only level 1 instances +dataset = load_dataset("DietCoke4671/BlenderBench", "level1") + +# Access an example +example = dataset["train"][0] +print(f"Task: {example['task_description']}") +print(f"Level: {example['level']}") + +# Display images +example['start_render'].show() # Initial scene +example['goal_render'].show() # Target scene + +# Access code +print(f"Start code:\n{example['start_code']}") +print(f"Goal code:\n{example['goal_code']}") +``` + +### Using with Blender + +To actually render and evaluate generated code, you'll need Blender installed: + +```python +import subprocess +from pathlib import Path + +def render_with_blender(blend_file, code, output_dir): + """ + Execute Blender code and render the result. + + Args: + blend_file: Path to .blend file + code: Python code to execute in Blender + output_dir: Directory to save rendered output + """ + # Save code to temporary file + code_file = Path(output_dir) / "temp_code.py" + with open(code_file, 'w') as f: + f.write(code) + + # Run Blender + cmd = [ + "blender", + "--background", + str(blend_file), + "--python", str(code_file), + "--render-output", str(output_dir / "render.png"), + "--render-frame", "1" + ] + + subprocess.run(cmd) + +# Example usage +example = dataset["train"][0] +render_with_blender( + blend_file=f"path/to/{example['blend_file_path']}", + code=example['start_code'], + output_dir="output/" +) +``` + +### Example: Building an AI Agent + +```python +from datasets import load_dataset +import openai + +# Load dataset +dataset = load_dataset("DietCoke4671/BlenderBench", "level1") + +def solve_blender_task(example): + """ + Use an AI agent to solve a BlenderBench task. + """ + # Prepare prompt with task description and images + prompt = f""" +You are an expert Blender Python programmer. Your task is to: + +Task: {example['task_description']} + +Given the initial scene code and rendered image, generate Blender Python code +to transform the scene to match the target image. + +Initial code: +{example['start_code']} + +Generate the modified code that will produce the target scene. +""" + + # Call your AI model (e.g., GPT-4 with vision) + response = openai.ChatCompletion.create( + model="gpt-4-vision-preview", + messages=[ + { + "role": "user", + "content": [ + {"type": "text", "text": prompt}, + { + "type": "image_url", + "image_url": {"url": encode_image(example['start_render'])} + }, + { + "type": "image_url", + "image_url": {"url": encode_image(example['goal_render'])} + } + ] + } + ] + ) + + return response.choices[0].message.content + +# Solve all level 1 tasks +for example in dataset["train"]: + solution = solve_blender_task(example) + print(f"Solution for {example['instance_id']}:") + print(solution) +``` \ No newline at end of file diff --git a/data/blenderbench/level1/camera1/blender_file.blend b/data/blenderbench/level1/camera1/blender_file.blend new file mode 100644 index 0000000000000000000000000000000000000000..1804af3d92bdb02fac8aa44745e4cbe6c8f105c3 --- /dev/null +++ b/data/blenderbench/level1/camera1/blender_file.blend @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c51ba3000030b7cf17813095327a56860055ce32fbd651d54db6c872e9f3ba2 +size 11941723 diff --git a/data/blenderbench/level1/camera1/goal.py b/data/blenderbench/level1/camera1/goal.py new file mode 100644 index 0000000000000000000000000000000000000000..5ad8e93c95fad32aee8f9edc7560bf141ea07dad --- /dev/null +++ b/data/blenderbench/level1/camera1/goal.py @@ -0,0 +1,4 @@ +import bpy + +bpy.data.objects["Camera1"].location = (-1.0292, 1.6960, 1.1705) +bpy.data.objects["Camera1"].rotation_euler = (1.5701, 0.0000, 3.6424) \ No newline at end of file diff --git a/data/blenderbench/level1/camera1/renders/goal/render1.png b/data/blenderbench/level1/camera1/renders/goal/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..a74b55578860c62d8f82a488959df660a60ff4a9 --- /dev/null +++ b/data/blenderbench/level1/camera1/renders/goal/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a1f17f06448cd899c5912323f9b9dd07ca6ea30dc0aebba11f28cb85afb29d2c +size 280875 diff --git a/data/blenderbench/level1/camera1/renders/start/render1.png b/data/blenderbench/level1/camera1/renders/start/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..6f2c1d69fb20ca1b7a1e6e19825437529eb3e466 --- /dev/null +++ b/data/blenderbench/level1/camera1/renders/start/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e992361affb0d7e3fc5e981dbf42c32f89d625e4a3910517b70e603244cb0e65 +size 245477 diff --git a/data/blenderbench/level1/camera1/start.py b/data/blenderbench/level1/camera1/start.py new file mode 100644 index 0000000000000000000000000000000000000000..01a913bc51a3cbc16124c5e967396a5c0e25fd22 --- /dev/null +++ b/data/blenderbench/level1/camera1/start.py @@ -0,0 +1,4 @@ +import bpy + +bpy.data.objects["Camera1"].location = (1.0765, -1.2848, 1.4343) +bpy.data.objects["Camera1"].rotation_euler = (1.5701, 0.0000, 0.6753) \ No newline at end of file diff --git a/data/blenderbench/level1/camera1/task.txt b/data/blenderbench/level1/camera1/task.txt new file mode 100644 index 0000000000000000000000000000000000000000..9961c9617df77c716b0b8502dce2718f52fe1764 --- /dev/null +++ b/data/blenderbench/level1/camera1/task.txt @@ -0,0 +1 @@ +Adjust the camera position so that the viewing angle is consistent with the target image \ No newline at end of file diff --git a/data/blenderbench/level1/camera2/blender_file.blend b/data/blenderbench/level1/camera2/blender_file.blend new file mode 100644 index 0000000000000000000000000000000000000000..09ff4f35c567f062437a47651d499108fea0a03a --- /dev/null +++ b/data/blenderbench/level1/camera2/blender_file.blend @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9e53b677deab9a576b1d311f716c311def91591db41a33518a0433bc4cef8d3b +size 21287404 diff --git a/data/blenderbench/level1/camera2/goal.py b/data/blenderbench/level1/camera2/goal.py new file mode 100644 index 0000000000000000000000000000000000000000..dd4a4854dfaad33246a0accc7fcdb6faacf8d925 --- /dev/null +++ b/data/blenderbench/level1/camera2/goal.py @@ -0,0 +1,4 @@ +import bpy + +bpy.data.objects["Camera1"].location = (3.9689, -4.6158, 2.1883) +bpy.data.objects["Camera1"].rotation_euler = (1.3188, 0.0000, 0.7800) \ No newline at end of file diff --git a/data/blenderbench/level1/camera2/renders/goal/render1.png b/data/blenderbench/level1/camera2/renders/goal/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..369f1d0a773fe19cb7bc5882d34d9db05bb00a61 --- /dev/null +++ b/data/blenderbench/level1/camera2/renders/goal/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ce58bcf86a6866d992e9d115391cf4a411b65395ffd612ccb7d28dc7ba5e5b58 +size 256033 diff --git a/data/blenderbench/level1/camera2/renders/start/render1.png b/data/blenderbench/level1/camera2/renders/start/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..b0fed1082907b3891336dc72c79737f6fb3077a6 --- /dev/null +++ b/data/blenderbench/level1/camera2/renders/start/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:04592f38c47aa5a44b5f61ba7b137cf9bd6113e0f67643ea93a326a694b4a6e3 +size 241218 diff --git a/data/blenderbench/level1/camera2/start.py b/data/blenderbench/level1/camera2/start.py new file mode 100644 index 0000000000000000000000000000000000000000..ac190d95666978eb2bca17ad5f2d79dd088f8c36 --- /dev/null +++ b/data/blenderbench/level1/camera2/start.py @@ -0,0 +1,4 @@ +import bpy + +bpy.data.objects["Camera1"].location = (-3.4813, 4.5001, 0.5115) +bpy.data.objects["Camera1"].rotation_euler = (1.6678, 0.0000, 3.8693) \ No newline at end of file diff --git a/data/blenderbench/level1/camera2/task.txt b/data/blenderbench/level1/camera2/task.txt new file mode 100644 index 0000000000000000000000000000000000000000..9961c9617df77c716b0b8502dce2718f52fe1764 --- /dev/null +++ b/data/blenderbench/level1/camera2/task.txt @@ -0,0 +1 @@ +Adjust the camera position so that the viewing angle is consistent with the target image \ No newline at end of file diff --git a/data/blenderbench/level1/camera3/blender_file.blend b/data/blenderbench/level1/camera3/blender_file.blend new file mode 100644 index 0000000000000000000000000000000000000000..0f5bce886d59f7decf761e932c5f8c287dc69273 --- /dev/null +++ b/data/blenderbench/level1/camera3/blender_file.blend @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2d8bb6bc5b8614ab26d6319249c4cf915e5e8107f7859ec768dfb0e02b875403 +size 19714277 diff --git a/data/blenderbench/level1/camera3/goal.py b/data/blenderbench/level1/camera3/goal.py new file mode 100644 index 0000000000000000000000000000000000000000..9e89cd11653385ed9cc8194f919189e891141883 --- /dev/null +++ b/data/blenderbench/level1/camera3/goal.py @@ -0,0 +1,5 @@ +import bpy + +bpy.data.objects["Camera1"].location = (-1.6577, -1.7238, 1.9317) +bpy.data.objects["Camera1"].rotation_euler = (1.4033, -0.0000, 5.6653) +bpy.data.objects["Camera1"].data.lens = 21 \ No newline at end of file diff --git a/data/blenderbench/level1/camera3/renders/goal/render1.png b/data/blenderbench/level1/camera3/renders/goal/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..5df097446778f579549300ea050a818c8b35056c --- /dev/null +++ b/data/blenderbench/level1/camera3/renders/goal/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3cde2e268b0fb73a25bc96180bbe96818f464bbe71fc8fe9bc1dff8a3d782d18 +size 323359 diff --git a/data/blenderbench/level1/camera3/renders/start/render1.png b/data/blenderbench/level1/camera3/renders/start/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..a91943923782fecfed3eda15da4a7de30dd7db8c --- /dev/null +++ b/data/blenderbench/level1/camera3/renders/start/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0e55c53a1e3586efd194368f45622d607cd13c1977dadb76d6588dbeb7efc605 +size 336952 diff --git a/data/blenderbench/level1/camera3/start.py b/data/blenderbench/level1/camera3/start.py new file mode 100644 index 0000000000000000000000000000000000000000..b1ce78b0c679749e66cc1fa7a8972695af81cce2 --- /dev/null +++ b/data/blenderbench/level1/camera3/start.py @@ -0,0 +1,5 @@ +import bpy + +bpy.data.objects["Camera1"].location = (6.7303, -4.8700, 3.7385) +bpy.data.objects["Camera1"].rotation_euler = (1.2811, -0.0000, 0.9355) +bpy.data.objects["Camera1"].data.lens = 50 \ No newline at end of file diff --git a/data/blenderbench/level1/camera3/task.txt b/data/blenderbench/level1/camera3/task.txt new file mode 100644 index 0000000000000000000000000000000000000000..9961c9617df77c716b0b8502dce2718f52fe1764 --- /dev/null +++ b/data/blenderbench/level1/camera3/task.txt @@ -0,0 +1 @@ +Adjust the camera position so that the viewing angle is consistent with the target image \ No newline at end of file diff --git a/data/blenderbench/level1/camera4/blender_file.blend b/data/blenderbench/level1/camera4/blender_file.blend new file mode 100644 index 0000000000000000000000000000000000000000..b66db22091cd21021b2630ca2fc01040cf35b27f --- /dev/null +++ b/data/blenderbench/level1/camera4/blender_file.blend @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e99ccd5e43e80d8dbdd4d840ea4290f1dbc6b4e06d21be07eeed7d39fecafd0a +size 1092706714 diff --git a/data/blenderbench/level1/camera4/goal.py b/data/blenderbench/level1/camera4/goal.py new file mode 100644 index 0000000000000000000000000000000000000000..54c7bee5a90006d9675a3c9bcad04bdf28092a4b --- /dev/null +++ b/data/blenderbench/level1/camera4/goal.py @@ -0,0 +1,4 @@ +import bpy + +bpy.data.objects["Camera1"].location = (-1.1222, -0.3259, 4.4354) +bpy.data.objects["Camera1"].rotation_euler = (-0.0873, 0.5934, 0.2094) \ No newline at end of file diff --git a/data/blenderbench/level1/camera4/renders/goal/render1.png b/data/blenderbench/level1/camera4/renders/goal/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..2e09e3634d5c1c7cd3a0bd3d30ac333922d3570e --- /dev/null +++ b/data/blenderbench/level1/camera4/renders/goal/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a6cad78bdebb96be3147176d6c4c460df4782c51430fcd268dfddd87f499aa93 +size 434190 diff --git a/data/blenderbench/level1/camera4/renders/start/render1.png b/data/blenderbench/level1/camera4/renders/start/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..c4d14436c640202ad054312246a047f922ca2339 --- /dev/null +++ b/data/blenderbench/level1/camera4/renders/start/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aba9dee6449c05ffeeb52efbddf38efa205baa79db5b7236cf528445a82413b9 +size 440020 diff --git a/data/blenderbench/level1/camera4/start.py b/data/blenderbench/level1/camera4/start.py new file mode 100644 index 0000000000000000000000000000000000000000..e033c342fb7af3269574d25707e0060b06b774a6 --- /dev/null +++ b/data/blenderbench/level1/camera4/start.py @@ -0,0 +1,4 @@ +import bpy + +bpy.data.objects["Camera1"].location = (1.1400, 0.8500, 0.5300) +bpy.data.objects["Camera1"].rotation_euler = (2.4435, 1.1170, 2.6354) \ No newline at end of file diff --git a/data/blenderbench/level1/camera4/task.txt b/data/blenderbench/level1/camera4/task.txt new file mode 100644 index 0000000000000000000000000000000000000000..9961c9617df77c716b0b8502dce2718f52fe1764 --- /dev/null +++ b/data/blenderbench/level1/camera4/task.txt @@ -0,0 +1 @@ +Adjust the camera position so that the viewing angle is consistent with the target image \ No newline at end of file diff --git a/data/blenderbench/level1/camera5/blender_file.blend b/data/blenderbench/level1/camera5/blender_file.blend new file mode 100644 index 0000000000000000000000000000000000000000..f54d89e9d4c3f0d32b34e51ac2cd5d51743bb4b0 --- /dev/null +++ b/data/blenderbench/level1/camera5/blender_file.blend @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:06f30a3ccd0d81be515f1892605fd575f6933052e15b9b297b7d96a48aa664d2 +size 1092786654 diff --git a/data/blenderbench/level1/camera5/goal.py b/data/blenderbench/level1/camera5/goal.py new file mode 100644 index 0000000000000000000000000000000000000000..08d0b962e2d3b38cd15de38983ff53e46199876b --- /dev/null +++ b/data/blenderbench/level1/camera5/goal.py @@ -0,0 +1,4 @@ +import bpy + +bpy.data.objects["Camera1"].location = (-3.1800, -0.0500, 2.5700) +bpy.data.objects["Camera1"].rotation_euler = (0.3491, -0.8029, -0.2269) \ No newline at end of file diff --git a/data/blenderbench/level1/camera5/renders/goal/render1.png b/data/blenderbench/level1/camera5/renders/goal/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..d411365abfd0112bcefbd1c253b631cd59f48e6f --- /dev/null +++ b/data/blenderbench/level1/camera5/renders/goal/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0124cf59482f3950b2c62eddf8d734e752e45e5300fbf30ce472f74b05e30f9d +size 442674 diff --git a/data/blenderbench/level1/camera5/renders/start/render1.png b/data/blenderbench/level1/camera5/renders/start/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..e33fd126c55c57e5151cff86463bd1d2c5b054b0 --- /dev/null +++ b/data/blenderbench/level1/camera5/renders/start/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c05942ca272648df286a325db828719d837bdc977ea3933bd1089ee388e5b77f +size 453872 diff --git a/data/blenderbench/level1/camera5/start.py b/data/blenderbench/level1/camera5/start.py new file mode 100644 index 0000000000000000000000000000000000000000..5761047b75c43463abb73e2c967c5c64c9de8c51 --- /dev/null +++ b/data/blenderbench/level1/camera5/start.py @@ -0,0 +1,4 @@ +import bpy + +bpy.data.objects["Camera1"].location = (-1.2250, 0.7100, -2.8300) +bpy.data.objects["Camera1"].rotation_euler = (-0.4363, 3.3161, 0.0349) \ No newline at end of file diff --git a/data/blenderbench/level1/camera5/task.txt b/data/blenderbench/level1/camera5/task.txt new file mode 100644 index 0000000000000000000000000000000000000000..9961c9617df77c716b0b8502dce2718f52fe1764 --- /dev/null +++ b/data/blenderbench/level1/camera5/task.txt @@ -0,0 +1 @@ +Adjust the camera position so that the viewing angle is consistent with the target image \ No newline at end of file diff --git a/data/blenderbench/level1/camera6/blender_file.blend b/data/blenderbench/level1/camera6/blender_file.blend new file mode 100644 index 0000000000000000000000000000000000000000..2073a629bfaa3343eebd0b66a0a7475d005aadc4 --- /dev/null +++ b/data/blenderbench/level1/camera6/blender_file.blend @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4e0fb03e37b9072c9ca65bab2b6594deb4254d21b3e13c08b8eeaf1fce76e45f +size 5718592 diff --git a/data/blenderbench/level1/camera6/goal.py b/data/blenderbench/level1/camera6/goal.py new file mode 100644 index 0000000000000000000000000000000000000000..83aa267a87b7cb3739ad927b914870ba085332a2 --- /dev/null +++ b/data/blenderbench/level1/camera6/goal.py @@ -0,0 +1,4 @@ +import bpy + +bpy.data.objects["Camera1"].location = (-1.0800, 1.0600, 0.7700) +bpy.data.objects["Camera1"].rotation_euler = (1.5708, 0.0000, 3.9968) \ No newline at end of file diff --git a/data/blenderbench/level1/camera6/renders/goal/render1.png b/data/blenderbench/level1/camera6/renders/goal/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..cb03a3a9e48c23b0900716f00cd510d252856940 --- /dev/null +++ b/data/blenderbench/level1/camera6/renders/goal/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e8ef88036bdd3e417383c349da3f531e22698d765f34b60851ec132d143f99d3 +size 264383 diff --git a/data/blenderbench/level1/camera6/renders/start/render1.png b/data/blenderbench/level1/camera6/renders/start/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..6e84ff1e7a1dcec3295fada98c739be71a1933fa --- /dev/null +++ b/data/blenderbench/level1/camera6/renders/start/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f734b61dee14bcf4fdb64d18e387bd92c7188e95f2ecd5ac960e8be679822fd5 +size 250992 diff --git a/data/blenderbench/level1/camera6/start.py b/data/blenderbench/level1/camera6/start.py new file mode 100644 index 0000000000000000000000000000000000000000..a0449cfce1acdf566251c2634b2b38469006af82 --- /dev/null +++ b/data/blenderbench/level1/camera6/start.py @@ -0,0 +1,4 @@ +import bpy + +bpy.data.objects["Camera1"].location = (2.4689, -2.6258, 1.3083) +bpy.data.objects["Camera1"].rotation_euler = (1.4060, 0.0000, 0.7626) \ No newline at end of file diff --git a/data/blenderbench/level1/camera6/task.txt b/data/blenderbench/level1/camera6/task.txt new file mode 100644 index 0000000000000000000000000000000000000000..9961c9617df77c716b0b8502dce2718f52fe1764 --- /dev/null +++ b/data/blenderbench/level1/camera6/task.txt @@ -0,0 +1 @@ +Adjust the camera position so that the viewing angle is consistent with the target image \ No newline at end of file diff --git a/data/blenderbench/level1/camera7/blender_file.blend b/data/blenderbench/level1/camera7/blender_file.blend new file mode 100644 index 0000000000000000000000000000000000000000..8a09b0908159af7cb9d32370e8b7d87c58590b4f --- /dev/null +++ b/data/blenderbench/level1/camera7/blender_file.blend @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6106fe112e0bfdf4e7aab26ff4e901ad8f942a9e6493839a9d795806cf97ab60 +size 198756884 diff --git a/data/blenderbench/level1/camera7/goal.py b/data/blenderbench/level1/camera7/goal.py new file mode 100644 index 0000000000000000000000000000000000000000..551ebb7e955002a25cc678da56b46e44e6b835b7 --- /dev/null +++ b/data/blenderbench/level1/camera7/goal.py @@ -0,0 +1,4 @@ +import bpy + +bpy.data.objects["Camera1"].location = (2.4674, 0.2196, -1.2138) +bpy.data.objects["Camera1"].rotation_euler = (-0.4014, 2.0071, 0.0000) \ No newline at end of file diff --git a/data/blenderbench/level1/camera7/renders/goal/render1.png b/data/blenderbench/level1/camera7/renders/goal/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..7ac2abc00d8b688de48c4278a56bc8bf3bf517fb --- /dev/null +++ b/data/blenderbench/level1/camera7/renders/goal/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7f5efeca8b9586450cbb5a019bc03f2b0616f76d29fecfc699cca0059150a8fd +size 527080 diff --git a/data/blenderbench/level1/camera7/renders/start/render1.png b/data/blenderbench/level1/camera7/renders/start/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..de61159de8e6f93c6b8db1c390efbfa50699d312 --- /dev/null +++ b/data/blenderbench/level1/camera7/renders/start/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a41b4ee8b011cdbaa883783acab78ddd490c2c3168b4dba3f029d18fb53caaa2 +size 517044 diff --git a/data/blenderbench/level1/camera7/start.py b/data/blenderbench/level1/camera7/start.py new file mode 100644 index 0000000000000000000000000000000000000000..9c0fa4d13f79519e9950d330ececa5e5563334fa --- /dev/null +++ b/data/blenderbench/level1/camera7/start.py @@ -0,0 +1,4 @@ +import bpy + +bpy.data.objects["Camera1"].location = (1.3353, 1.4740, 1.5357) +bpy.data.objects["Camera1"].rotation_euler = (-0.7679, 0.2094, 0.0000) \ No newline at end of file diff --git a/data/blenderbench/level1/camera7/task.txt b/data/blenderbench/level1/camera7/task.txt new file mode 100644 index 0000000000000000000000000000000000000000..9961c9617df77c716b0b8502dce2718f52fe1764 --- /dev/null +++ b/data/blenderbench/level1/camera7/task.txt @@ -0,0 +1 @@ +Adjust the camera position so that the viewing angle is consistent with the target image \ No newline at end of file diff --git a/data/blenderbench/level1/camera8/blender_file.blend b/data/blenderbench/level1/camera8/blender_file.blend new file mode 100644 index 0000000000000000000000000000000000000000..2a8b648f8eef7daf70287a587ce7a490c8ec31bb --- /dev/null +++ b/data/blenderbench/level1/camera8/blender_file.blend @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:64124da51512f689ff1c2d0a6475ccf377bb94a87a3bcc9fd14e0d38de7a4e00 +size 2303572 diff --git a/data/blenderbench/level1/camera8/goal.py b/data/blenderbench/level1/camera8/goal.py new file mode 100644 index 0000000000000000000000000000000000000000..c8c368cec68cd9cd8ca929455857e7174c2cef0d --- /dev/null +++ b/data/blenderbench/level1/camera8/goal.py @@ -0,0 +1,4 @@ +import bpy + +bpy.data.objects["Camera1"].location = (-4.1656, 0.0020, 3.7237) +bpy.data.objects["Camera1"].rotation_euler = (1.5708, 0.0000, -1.5708) \ No newline at end of file diff --git a/data/blenderbench/level1/camera8/renders/goal/render1.png b/data/blenderbench/level1/camera8/renders/goal/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..2ce8adacf714c8fbc432e30ff94b3989b2ce2991 --- /dev/null +++ b/data/blenderbench/level1/camera8/renders/goal/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b4e026fea8211aaf7f1149cd3e20a2ac6346882484eee5804ea6e19dc43b6bc4 +size 198412 diff --git a/data/blenderbench/level1/camera8/renders/start/render1.png b/data/blenderbench/level1/camera8/renders/start/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..45ca79375812560e0e47b51a7ff56ccc431ba312 --- /dev/null +++ b/data/blenderbench/level1/camera8/renders/start/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f3a00e44341026ae59ac5d70baf89744da90230f9585f4f812c97aafe83b08ba +size 226412 diff --git a/data/blenderbench/level1/camera8/start.py b/data/blenderbench/level1/camera8/start.py new file mode 100644 index 0000000000000000000000000000000000000000..5b670d67b5a328d591968b16afe9be57b7735c17 --- /dev/null +++ b/data/blenderbench/level1/camera8/start.py @@ -0,0 +1,4 @@ +import bpy + +bpy.data.objects["Camera1"].location = (7.3589, -6.9258, 4.9583) +bpy.data.objects["Camera1"].rotation_euler = (1.2664, 0.0000, 0.7800) \ No newline at end of file diff --git a/data/blenderbench/level1/camera8/task.txt b/data/blenderbench/level1/camera8/task.txt new file mode 100644 index 0000000000000000000000000000000000000000..9961c9617df77c716b0b8502dce2718f52fe1764 --- /dev/null +++ b/data/blenderbench/level1/camera8/task.txt @@ -0,0 +1 @@ +Adjust the camera position so that the viewing angle is consistent with the target image \ No newline at end of file diff --git a/data/blenderbench/level1/camera9/blender_file.blend b/data/blenderbench/level1/camera9/blender_file.blend new file mode 100644 index 0000000000000000000000000000000000000000..0f1887978fb6c72a5b7c1d1fb3a51d26ca498069 --- /dev/null +++ b/data/blenderbench/level1/camera9/blender_file.blend @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:af9b2132fbffb66a1a4832c500c82bc00ee19ac90a40c2b1f96e95bfe74b295d +size 4107448 diff --git a/data/blenderbench/level1/camera9/goal.py b/data/blenderbench/level1/camera9/goal.py new file mode 100644 index 0000000000000000000000000000000000000000..b64bd8af18c4e3d2ebd0b75dafbfee48cd5385ff --- /dev/null +++ b/data/blenderbench/level1/camera9/goal.py @@ -0,0 +1,4 @@ +import bpy + +bpy.data.objects["Camera1"].location = (5.9589, -5.6058, 4.0383) +bpy.data.objects["Camera1"].rotation_euler = (1.2839, 0.0000, 0.8149) \ No newline at end of file diff --git a/data/blenderbench/level1/camera9/renders/goal/render1.png b/data/blenderbench/level1/camera9/renders/goal/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..615154f4ffee4b912add08312db65fd507688af7 --- /dev/null +++ b/data/blenderbench/level1/camera9/renders/goal/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:df51a5786e84b1d47c2df08c95d6adb3f7594dec20fa17c47424bb08b16145b6 +size 311165 diff --git a/data/blenderbench/level1/camera9/renders/start/render1.png b/data/blenderbench/level1/camera9/renders/start/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..ce607185e7ddf62a5c262c10816bc344c39d3b62 --- /dev/null +++ b/data/blenderbench/level1/camera9/renders/start/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0ffa1dc44ba4cf18c57dcd8fc9e66002f23e15d15efb1ab33953ab0a2435a2b3 +size 307779 diff --git a/data/blenderbench/level1/camera9/start.py b/data/blenderbench/level1/camera9/start.py new file mode 100644 index 0000000000000000000000000000000000000000..786bf8646e259f12b3b2960baf3c40358fe89663 --- /dev/null +++ b/data/blenderbench/level1/camera9/start.py @@ -0,0 +1,4 @@ +import bpy + +bpy.data.objects["Camera1"].location = (0.1104, -2.6639, 9.8843) +bpy.data.objects["Camera1"].rotation_euler = (0.3142, 0, 0) \ No newline at end of file diff --git a/data/blenderbench/level1/camera9/task.txt b/data/blenderbench/level1/camera9/task.txt new file mode 100644 index 0000000000000000000000000000000000000000..9961c9617df77c716b0b8502dce2718f52fe1764 --- /dev/null +++ b/data/blenderbench/level1/camera9/task.txt @@ -0,0 +1 @@ +Adjust the camera position so that the viewing angle is consistent with the target image \ No newline at end of file diff --git a/data/blenderbench/level1/pipeline_render_script.py b/data/blenderbench/level1/pipeline_render_script.py new file mode 100644 index 0000000000000000000000000000000000000000..a4d8947c86b44c1bf228bd131d60487939e7e786 --- /dev/null +++ b/data/blenderbench/level1/pipeline_render_script.py @@ -0,0 +1,79 @@ +import bpy +import random +import json +import os +import sys +from sys import platform + +if __name__ == "__main__": + + code_fpath = sys.argv[6] # Path to the code file + rendering_dir = sys.argv[7] # Path to save the rendering from camera1 + if len(sys.argv) > 8: + save_blend = sys.argv[8] # Path to save the blend file + else: + save_blend = None + + # Enable GPU rendering + bpy.context.scene.render.engine = 'CYCLES' + bpy.context.preferences.addons['cycles'].preferences.compute_device_type = 'CUDA' # or 'OPTIX' if your GPU supports it + bpy.context.preferences.addons['cycles'].preferences.get_devices() + + # Check and select the GPUs + for device in bpy.context.preferences.addons['cycles'].preferences.devices: + if device.type == 'GPU' and not device.use: + device.use = True + + # Set the rendering device to GPU + bpy.context.scene.cycles.device = 'GPU' + + # Setting up rendering resolution + bpy.context.scene.render.resolution_x = 512 + bpy.context.scene.render.resolution_y = 512 + + # Set max samples to 1024 + bpy.context.scene.cycles.samples = 512 + + # Set color mode to RGB + bpy.context.scene.render.image_settings.color_mode = 'RGB' + + # Read and execute the code from the specified file + with open(code_fpath, "r") as f: + code = f.read() + try: + exec(code) + except: + raise ValueError + + # Render from camera1 + if 'Camera1' in bpy.data.objects: + bpy.context.scene.camera = bpy.data.objects['Camera1'] + bpy.context.scene.render.image_settings.file_format = 'PNG' + bpy.context.scene.render.filepath = os.path.join(rendering_dir, 'render1.png') + bpy.ops.render.render(write_still=True) + + # print(f'Camera1 location: {bpy.data.objects["Camera1"].location}') + # print(f'Camera1 rotation: {bpy.data.objects["Camera1"].rotation_euler}') + # print(f'Camera1 lens: {bpy.data.objects["Camera1"].data.lens}') + + # print(f"Camera2 location: {bpy.data.objects['Camera2'].location}") + # print(f"Camera2 rotation: {bpy.data.objects['Camera2'].rotation_euler}") + # print(f"Camera2 lens: {bpy.data.objects['Camera2'].data.lens}") + + # if 'Camera3' in bpy.data.objects: + # print(f"Camera3 location: {bpy.data.objects['Camera3'].location}") + # print(f"Camera3 rotation: {bpy.data.objects['Camera3'].rotation_euler}") + + # Render from camera2 (not used in hard tasks) + # if 'Camera2' in bpy.data.objects: + # bpy.context.scene.camera = bpy.data.objects['Camera2'] + # bpy.context.scene.render.image_settings.file_format = 'PNG' + # bpy.context.scene.render.filepath = os.path.join(rendering_dir, 'render2.png') + # bpy.ops.render.render(write_still=True) + + # Save the blend file + if save_blend: + # Set the save version to 0 + bpy.context.preferences.filepaths.save_version = 0 + # Save the blend file + bpy.ops.wm.save_as_mainfile(filepath=save_blend) \ No newline at end of file diff --git a/data/blenderbench/level2/attribute1/blender_file.blend b/data/blenderbench/level2/attribute1/blender_file.blend new file mode 100644 index 0000000000000000000000000000000000000000..bfbc64a723927a21ec431856ee3b0bcb17971736 --- /dev/null +++ b/data/blenderbench/level2/attribute1/blender_file.blend @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d5eca6c92d3cee2ce8a4ea9986a644e4d61a1d66c123c81050616026fa12f5f8 +size 950771988 diff --git a/data/blenderbench/level2/attribute1/goal.py b/data/blenderbench/level2/attribute1/goal.py new file mode 100644 index 0000000000000000000000000000000000000000..fd0fecdcd17974037affbdb572f89d7102adeb4a --- /dev/null +++ b/data/blenderbench/level2/attribute1/goal.py @@ -0,0 +1,30 @@ +import bpy +import math +import numpy as np + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 200 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The key of stylized fat character +bpy.data.shape_keys["Key"].key_blocks["BellySag"].value = 5 +bpy.data.shape_keys["Key"].key_blocks["BellyShrink"].value = 3 +bpy.data.shape_keys["Key"].key_blocks["ShoulderWideness"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["BackTaper"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ChestEnlarge"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ChestArea"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["MoreChin"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["Abs"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["eyelids"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["nose"].value = 0 \ No newline at end of file diff --git a/data/blenderbench/level2/attribute1/renders/goal/render1.png b/data/blenderbench/level2/attribute1/renders/goal/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..ec260b02febe6c7dbaea38a531f584ed828dd677 --- /dev/null +++ b/data/blenderbench/level2/attribute1/renders/goal/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a269058785099fd3f273334e70fa147de3ee3556a500ded8d9b064213fcd8981 +size 435882 diff --git a/data/blenderbench/level2/attribute1/renders/start/render1.png b/data/blenderbench/level2/attribute1/renders/start/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..61032155e6f45e51fdf128e90d1cfed04a1d8e77 --- /dev/null +++ b/data/blenderbench/level2/attribute1/renders/start/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3db242015163cb8449e03f1a804fa2946ab63d596ef4e6a091d01e2e90d6b9fe +size 402446 diff --git a/data/blenderbench/level2/attribute1/start.py b/data/blenderbench/level2/attribute1/start.py new file mode 100644 index 0000000000000000000000000000000000000000..86c038455c8a485c251ed84a64285bf10dc6896f --- /dev/null +++ b/data/blenderbench/level2/attribute1/start.py @@ -0,0 +1,30 @@ +import bpy +import math +import numpy as np + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 0 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The key of stylized fat character (Object name: 'Stylized Fat Character') +bpy.data.shape_keys["Key"].key_blocks["BellySag"].value = 5 +bpy.data.shape_keys["Key"].key_blocks["BellyShrink"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ShoulderWideness"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["BackTaper"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ChestEnlarge"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ChestArea"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["MoreChin"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["Abs"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["eyelids"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["nose"].value = 0 \ No newline at end of file diff --git a/data/blenderbench/level2/attribute1/task.txt b/data/blenderbench/level2/attribute1/task.txt new file mode 100644 index 0000000000000000000000000000000000000000..c55b5774e43199c6638deb8ff5990a3395a4ee3f --- /dev/null +++ b/data/blenderbench/level2/attribute1/task.txt @@ -0,0 +1 @@ +First adjust the room brightness, then adjust the size of the character's belly so that it looks like the target image. \ No newline at end of file diff --git a/data/blenderbench/level2/attribute2/blender_file.blend b/data/blenderbench/level2/attribute2/blender_file.blend new file mode 100644 index 0000000000000000000000000000000000000000..bfbc64a723927a21ec431856ee3b0bcb17971736 --- /dev/null +++ b/data/blenderbench/level2/attribute2/blender_file.blend @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d5eca6c92d3cee2ce8a4ea9986a644e4d61a1d66c123c81050616026fa12f5f8 +size 950771988 diff --git a/data/blenderbench/level2/attribute2/goal.py b/data/blenderbench/level2/attribute2/goal.py new file mode 100644 index 0000000000000000000000000000000000000000..fd0fecdcd17974037affbdb572f89d7102adeb4a --- /dev/null +++ b/data/blenderbench/level2/attribute2/goal.py @@ -0,0 +1,30 @@ +import bpy +import math +import numpy as np + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 200 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The key of stylized fat character +bpy.data.shape_keys["Key"].key_blocks["BellySag"].value = 5 +bpy.data.shape_keys["Key"].key_blocks["BellyShrink"].value = 3 +bpy.data.shape_keys["Key"].key_blocks["ShoulderWideness"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["BackTaper"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ChestEnlarge"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ChestArea"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["MoreChin"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["Abs"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["eyelids"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["nose"].value = 0 \ No newline at end of file diff --git a/data/blenderbench/level2/attribute2/renders/goal/render1.png b/data/blenderbench/level2/attribute2/renders/goal/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..c40abc765e184b1851ed8ac5469bad8045e5f144 --- /dev/null +++ b/data/blenderbench/level2/attribute2/renders/goal/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0744a471d3a07fe9c4a38402f9be09310e5e26dc4abbc62f6b634d20b1f6c23f +size 435876 diff --git a/data/blenderbench/level2/attribute2/renders/start/render1.png b/data/blenderbench/level2/attribute2/renders/start/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..2b8a6ef64e647c37ef008d768343b94c11958da1 --- /dev/null +++ b/data/blenderbench/level2/attribute2/renders/start/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a7dd993362e453381cf27e8c9fb5e007b6e216bfcaab7969a1da6c4384c05854 +size 497586 diff --git a/data/blenderbench/level2/attribute2/start.py b/data/blenderbench/level2/attribute2/start.py new file mode 100644 index 0000000000000000000000000000000000000000..1c1f9de3379324f7e099bb90596f2ff70382ce8e --- /dev/null +++ b/data/blenderbench/level2/attribute2/start.py @@ -0,0 +1,28 @@ +import bpy +import math +import numpy as np + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +lamp_on_the_cupboard.data.energy = 0.5 +lamp_on_shelf.data.energy = 2.5 +light_on_ceilling.data.energy = 400 + +lamp_on_the_cupboard.data.color = (0.8, 0.9, 1) +lamp_on_shelf.data.color = (0.5, 0.7, 1) +light_on_ceilling.data.color = (1, 0, 0) + +# The key of stylized fat character (Object name: 'Stylized Fat Character') +bpy.data.shape_keys["Key"].key_blocks["BellySag"].value = 5 +bpy.data.shape_keys["Key"].key_blocks["BellyShrink"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ShoulderWideness"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["BackTaper"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ChestEnlarge"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ChestArea"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["MoreChin"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["Abs"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["eyelids"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["nose"].value = 0 \ No newline at end of file diff --git a/data/blenderbench/level2/attribute2/task.txt b/data/blenderbench/level2/attribute2/task.txt new file mode 100644 index 0000000000000000000000000000000000000000..c55b5774e43199c6638deb8ff5990a3395a4ee3f --- /dev/null +++ b/data/blenderbench/level2/attribute2/task.txt @@ -0,0 +1 @@ +First adjust the room brightness, then adjust the size of the character's belly so that it looks like the target image. \ No newline at end of file diff --git a/data/blenderbench/level2/attribute3/blender_file.blend b/data/blenderbench/level2/attribute3/blender_file.blend new file mode 100644 index 0000000000000000000000000000000000000000..bfbc64a723927a21ec431856ee3b0bcb17971736 --- /dev/null +++ b/data/blenderbench/level2/attribute3/blender_file.blend @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d5eca6c92d3cee2ce8a4ea9986a644e4d61a1d66c123c81050616026fa12f5f8 +size 950771988 diff --git a/data/blenderbench/level2/attribute3/goal.py b/data/blenderbench/level2/attribute3/goal.py new file mode 100644 index 0000000000000000000000000000000000000000..fd0fecdcd17974037affbdb572f89d7102adeb4a --- /dev/null +++ b/data/blenderbench/level2/attribute3/goal.py @@ -0,0 +1,30 @@ +import bpy +import math +import numpy as np + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 200 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The key of stylized fat character +bpy.data.shape_keys["Key"].key_blocks["BellySag"].value = 5 +bpy.data.shape_keys["Key"].key_blocks["BellyShrink"].value = 3 +bpy.data.shape_keys["Key"].key_blocks["ShoulderWideness"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["BackTaper"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ChestEnlarge"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ChestArea"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["MoreChin"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["Abs"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["eyelids"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["nose"].value = 0 \ No newline at end of file diff --git a/data/blenderbench/level2/attribute3/renders/goal/render1.png b/data/blenderbench/level2/attribute3/renders/goal/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..a28d2858477a08df993ec088e53805f8c16d9df6 --- /dev/null +++ b/data/blenderbench/level2/attribute3/renders/goal/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3886f82c111b6e7dada41bcd6129e9c782f543a11e02860c693a5e3c8a336da7 +size 435892 diff --git a/data/blenderbench/level2/attribute3/renders/start/render1.png b/data/blenderbench/level2/attribute3/renders/start/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..e8c55611afe9e7206ea219cadaf29588ceee11c1 --- /dev/null +++ b/data/blenderbench/level2/attribute3/renders/start/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:54da8de41f4271cb1d9e668bef9e2afc4d0e85db93c220d719434312245dabf4 +size 559197 diff --git a/data/blenderbench/level2/attribute3/start.py b/data/blenderbench/level2/attribute3/start.py new file mode 100644 index 0000000000000000000000000000000000000000..eb069eba41ab9147184bce60690f6b5355b6c959 --- /dev/null +++ b/data/blenderbench/level2/attribute3/start.py @@ -0,0 +1,28 @@ +import bpy +import math +import numpy as np + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +lamp_on_the_cupboard.data.energy = 2.5 +lamp_on_shelf.data.energy = 57 +light_on_ceilling.data.energy = 0 + +lamp_on_the_cupboard.data.color = (1, 0.85, 0) +lamp_on_shelf.data.color = (0.2, 0.6, 1) +light_on_ceilling.data.color = (1, 0.95, 0.6) + +# The key of stylized fat character (Object name: 'Stylized Fat Character') +bpy.data.shape_keys["Key"].key_blocks["BellySag"].value = 5 +bpy.data.shape_keys["Key"].key_blocks["BellyShrink"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ShoulderWideness"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["BackTaper"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ChestEnlarge"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ChestArea"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["MoreChin"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["Abs"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["eyelids"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["nose"].value = 0 \ No newline at end of file diff --git a/data/blenderbench/level2/attribute3/task.txt b/data/blenderbench/level2/attribute3/task.txt new file mode 100644 index 0000000000000000000000000000000000000000..c55b5774e43199c6638deb8ff5990a3395a4ee3f --- /dev/null +++ b/data/blenderbench/level2/attribute3/task.txt @@ -0,0 +1 @@ +First adjust the room brightness, then adjust the size of the character's belly so that it looks like the target image. \ No newline at end of file diff --git a/data/blenderbench/level2/attribute4/blender_file.blend b/data/blenderbench/level2/attribute4/blender_file.blend new file mode 100644 index 0000000000000000000000000000000000000000..651e1029bc10ca62d380be72c08e122720b5a7c2 --- /dev/null +++ b/data/blenderbench/level2/attribute4/blender_file.blend @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d1205f27f8f2493620645554db00c24d74d88b4ae0310fa846e30c3449aa84b +size 947346540 diff --git a/data/blenderbench/level2/attribute4/goal.py b/data/blenderbench/level2/attribute4/goal.py new file mode 100644 index 0000000000000000000000000000000000000000..1eb341797861761ad2c845de93402770b2815c54 --- /dev/null +++ b/data/blenderbench/level2/attribute4/goal.py @@ -0,0 +1,23 @@ +import bpy +import math +import numpy as np + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 200 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The basketball location +basketball = bpy.data.objects['basketball'] +basketball.location = (13.4023, 2.7485, 0.6584) +# basketball.location = (13.4023, 3.7485, 0.1584) \ No newline at end of file diff --git a/data/blenderbench/level2/attribute4/renders/goal/render1.png b/data/blenderbench/level2/attribute4/renders/goal/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..1c8fb0f28aec077a44f6a96ce1a3c6e852b04378 --- /dev/null +++ b/data/blenderbench/level2/attribute4/renders/goal/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dd049697d61750d34d9f0587a832d7b8ad322197e63b4319b1938675b64eefcb +size 433064 diff --git a/data/blenderbench/level2/attribute4/renders/start/render1.png b/data/blenderbench/level2/attribute4/renders/start/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..65251b7cb54f0f58dfbc77df203287ebb8090d8b --- /dev/null +++ b/data/blenderbench/level2/attribute4/renders/start/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:290403c1383c9d56b13d90e3a6b4e03597baaab2e327f6cebab3d642a7ed19bb +size 400435 diff --git a/data/blenderbench/level2/attribute4/start.py b/data/blenderbench/level2/attribute4/start.py new file mode 100644 index 0000000000000000000000000000000000000000..e2a610617d76c2c223303277742b9484f9ec1e7c --- /dev/null +++ b/data/blenderbench/level2/attribute4/start.py @@ -0,0 +1,22 @@ +import bpy +import math +import numpy as np + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 0 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The basketball location (Object name: 'basketball') +basketball = bpy.data.objects['basketball'] +basketball.location = (13.4023, 3.7485, 0.1584) \ No newline at end of file diff --git a/data/blenderbench/level2/attribute4/task.txt b/data/blenderbench/level2/attribute4/task.txt new file mode 100644 index 0000000000000000000000000000000000000000..e30cdd33cdd13d3059c5e9861224baaac06af74c --- /dev/null +++ b/data/blenderbench/level2/attribute4/task.txt @@ -0,0 +1 @@ +First adjust the brightness of the room, then adjust the position of the basketball so that it looks the same as the target image. \ No newline at end of file diff --git a/data/blenderbench/level2/attribute5/blender_file.blend b/data/blenderbench/level2/attribute5/blender_file.blend new file mode 100644 index 0000000000000000000000000000000000000000..651e1029bc10ca62d380be72c08e122720b5a7c2 --- /dev/null +++ b/data/blenderbench/level2/attribute5/blender_file.blend @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d1205f27f8f2493620645554db00c24d74d88b4ae0310fa846e30c3449aa84b +size 947346540 diff --git a/data/blenderbench/level2/attribute5/goal.py b/data/blenderbench/level2/attribute5/goal.py new file mode 100644 index 0000000000000000000000000000000000000000..1eb341797861761ad2c845de93402770b2815c54 --- /dev/null +++ b/data/blenderbench/level2/attribute5/goal.py @@ -0,0 +1,23 @@ +import bpy +import math +import numpy as np + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 200 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The basketball location +basketball = bpy.data.objects['basketball'] +basketball.location = (13.4023, 2.7485, 0.6584) +# basketball.location = (13.4023, 3.7485, 0.1584) \ No newline at end of file diff --git a/data/blenderbench/level2/attribute5/renders/goal/render1.png b/data/blenderbench/level2/attribute5/renders/goal/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..3824f88b86b5b559a493a42a983a78ecb68adb99 --- /dev/null +++ b/data/blenderbench/level2/attribute5/renders/goal/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0b33dfa853ce71b3e0a91ae9813e90dba0544f489251d8a811c810c1491fce55 +size 433064 diff --git a/data/blenderbench/level2/attribute5/renders/start/render1.png b/data/blenderbench/level2/attribute5/renders/start/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..41f297ed3a21d4f39a9d6ddc3d6c3c124d00113e --- /dev/null +++ b/data/blenderbench/level2/attribute5/renders/start/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:040785a63a39b36ad437f2a9141e260b046c99b0eee5d2dcebf6fd179bcd8857 +size 497727 diff --git a/data/blenderbench/level2/attribute5/start.py b/data/blenderbench/level2/attribute5/start.py new file mode 100644 index 0000000000000000000000000000000000000000..7d91d84c63e898aa443debdcf83e46bc00498586 --- /dev/null +++ b/data/blenderbench/level2/attribute5/start.py @@ -0,0 +1,20 @@ +import bpy +import math +import numpy as np + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +lamp_on_the_cupboard.data.energy = 0.5 +lamp_on_shelf.data.energy = 2.5 +light_on_ceilling.data.energy = 400 + +lamp_on_the_cupboard.data.color = (0.8, 0.9, 1) +lamp_on_shelf.data.color = (0.5, 0.7, 1) +light_on_ceilling.data.color = (1, 0, 0) + +# The basketball location (Object name: 'basketball') +basketball = bpy.data.objects['basketball'] +basketball.location = (14.4023, 2.7485, 0.1584) \ No newline at end of file diff --git a/data/blenderbench/level2/attribute5/task.txt b/data/blenderbench/level2/attribute5/task.txt new file mode 100644 index 0000000000000000000000000000000000000000..e30cdd33cdd13d3059c5e9861224baaac06af74c --- /dev/null +++ b/data/blenderbench/level2/attribute5/task.txt @@ -0,0 +1 @@ +First adjust the brightness of the room, then adjust the position of the basketball so that it looks the same as the target image. \ No newline at end of file diff --git a/data/blenderbench/level2/attribute6/blender_file.blend b/data/blenderbench/level2/attribute6/blender_file.blend new file mode 100644 index 0000000000000000000000000000000000000000..651e1029bc10ca62d380be72c08e122720b5a7c2 --- /dev/null +++ b/data/blenderbench/level2/attribute6/blender_file.blend @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d1205f27f8f2493620645554db00c24d74d88b4ae0310fa846e30c3449aa84b +size 947346540 diff --git a/data/blenderbench/level2/attribute6/goal.py b/data/blenderbench/level2/attribute6/goal.py new file mode 100644 index 0000000000000000000000000000000000000000..1eb341797861761ad2c845de93402770b2815c54 --- /dev/null +++ b/data/blenderbench/level2/attribute6/goal.py @@ -0,0 +1,23 @@ +import bpy +import math +import numpy as np + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 200 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The basketball location +basketball = bpy.data.objects['basketball'] +basketball.location = (13.4023, 2.7485, 0.6584) +# basketball.location = (13.4023, 3.7485, 0.1584) \ No newline at end of file diff --git a/data/blenderbench/level2/attribute6/renders/goal/render1.png b/data/blenderbench/level2/attribute6/renders/goal/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..518e7143a5ee90a2bb6d8e73b972c7b5d4d1cca8 --- /dev/null +++ b/data/blenderbench/level2/attribute6/renders/goal/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1eda79fb1fd8773714467694b24cbbf71f049549b0016cac79254724e5c5b5cf +size 433064 diff --git a/data/blenderbench/level2/attribute6/renders/start/render1.png b/data/blenderbench/level2/attribute6/renders/start/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..875cec6555f925d0e6f506b87f0da4c59128e477 --- /dev/null +++ b/data/blenderbench/level2/attribute6/renders/start/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d2904796dad29e946d5530c6b73a12cd5a999b77cdf791b5ade21fa87f9c14f9 +size 558759 diff --git a/data/blenderbench/level2/attribute6/start.py b/data/blenderbench/level2/attribute6/start.py new file mode 100644 index 0000000000000000000000000000000000000000..8c4abaa13956c250a59146898251b52928d5138f --- /dev/null +++ b/data/blenderbench/level2/attribute6/start.py @@ -0,0 +1,20 @@ +import bpy +import math +import numpy as np + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +lamp_on_the_cupboard.data.energy = 2.5 +lamp_on_shelf.data.energy = 57 +light_on_ceilling.data.energy = 0 + +lamp_on_the_cupboard.data.color = (1, 0.85, 0) +lamp_on_shelf.data.color = (0.2, 0.6, 1) +light_on_ceilling.data.color = (1, 0.95, 0.6) + +# The basketball location (Object name: 'basketball') +basketball = bpy.data.objects['basketball'] +basketball.location = (13.9023, 3.0485, 0.1584) \ No newline at end of file diff --git a/data/blenderbench/level2/attribute6/task.txt b/data/blenderbench/level2/attribute6/task.txt new file mode 100644 index 0000000000000000000000000000000000000000..e30cdd33cdd13d3059c5e9861224baaac06af74c --- /dev/null +++ b/data/blenderbench/level2/attribute6/task.txt @@ -0,0 +1 @@ +First adjust the brightness of the room, then adjust the position of the basketball so that it looks the same as the target image. \ No newline at end of file diff --git a/data/blenderbench/level2/attribute7/blender_file.blend b/data/blenderbench/level2/attribute7/blender_file.blend new file mode 100644 index 0000000000000000000000000000000000000000..05fcbfc615f12ce6600305c52710ec2d70080a5b --- /dev/null +++ b/data/blenderbench/level2/attribute7/blender_file.blend @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f49ef4d8b76eddfe71f73646d92ab3f7e6aa791580b5c7b093335f831386863c +size 768637773 diff --git a/data/blenderbench/level2/attribute7/goal.py b/data/blenderbench/level2/attribute7/goal.py new file mode 100644 index 0000000000000000000000000000000000000000..ca1d8cab7e2a64b2177b7763226488a78761bcae --- /dev/null +++ b/data/blenderbench/level2/attribute7/goal.py @@ -0,0 +1,54 @@ +import bpy +import math +import numpy as np + +# a set of helper functions that you can use +# 1) move_to: move the object to location +# 2) move_by: move the object by the vector of change + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) + +def move_to(obj, location): + """ Set the object location. + """ + obj.location = location + bpy.context.view_layer.update() + return obj + +def move_by(obj, vector): + """ Shift the object location by a 3D vector + """ + obj.location[0] += vector[0] + obj.location[1] += vector[1] + obj.location[2] += vector[2] + bpy.context.view_layer.update() + return obj + +# These are movable objects. +# with open('log.txt', 'w') as f: +# f.write(bpy.data.objects) + +cabinet = bpy.data.objects['Cabinet'] +plant = bpy.data.objects['Plant'] +mirror = bpy.data.objects['Mirror'] +sink = bpy.data.objects['Sink'] +toilet = bpy.data.objects['Toilet'] + +# These are the current locations of the movable objects +cabinet.location = (0.55602, 12.284, 0.1277) +plant.location = (3.1586, 15.049, 0.92) +mirror.location = (0.1374, 13.5573, 1.3960) +sink.location = (1.7123, 12.7161, 0.8306) +toilet.location = (1.9395, 12.5101, 0.4867) + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) +# # 旋转角度:-89.9, 1.38, 0.03,单位是度 +# mirror.rotation_euler = (math.radians(-89.9), math.radians(1.38), math.radians(0.03)) +# mirror.scale = (1.848, 1.848, 1.848) + diff --git a/data/blenderbench/level2/attribute7/renders/goal/render1.png b/data/blenderbench/level2/attribute7/renders/goal/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..cfed756b5128bc758a055def9ebef92b21b0479b --- /dev/null +++ b/data/blenderbench/level2/attribute7/renders/goal/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4e0dcf670648bba309e19853047bb294bbf588ffb8928ed9f9a45bef729f9f32 +size 496461 diff --git a/data/blenderbench/level2/attribute7/renders/start/render1.png b/data/blenderbench/level2/attribute7/renders/start/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..9366acc17c6d4e9061a1f8eadbb4dd21202cbf23 --- /dev/null +++ b/data/blenderbench/level2/attribute7/renders/start/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2ff46855b7e15fcbbcb96561c085894a24b91f334f070d1007f5b09f3ea2d8fb +size 494161 diff --git a/data/blenderbench/level2/attribute7/start.py b/data/blenderbench/level2/attribute7/start.py new file mode 100644 index 0000000000000000000000000000000000000000..3031bcfffd0d61e2efe8d5aa43ad7b7ed79246c1 --- /dev/null +++ b/data/blenderbench/level2/attribute7/start.py @@ -0,0 +1,50 @@ +import bpy +import math +import numpy as np + +# a set of helper functions that you can use +# 1) move_to: move the object to location +# 2) move_by: move the object by the vector of change + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) + +def move_to(obj, location): + """ Set the object location. + """ + obj.location = location + bpy.context.view_layer.update() + return obj + +def move_by(obj, vector): + """ Shift the object location by a 3D vector + """ + obj.location[0] += vector[0] + obj.location[1] += vector[1] + obj.location[2] += vector[2] + bpy.context.view_layer.update() + return obj + +# These are movable objects. +# with open('log.txt', 'w') as f: +# f.write(bpy.data.objects) + +cabinet = bpy.data.objects['Cabinet'] +plant = bpy.data.objects['Plant'] +mirror = bpy.data.objects['Mirror'] +sink = bpy.data.objects['Sink'] +toilet = bpy.data.objects['Toilet'] + +# These are the current locations of the movable objects +cabinet.location = (2.4661, 14.201, 0.1277) +plant.location = (3.2168, 14.327, 0.57311) +mirror.location = (0.1374, 13.5573, 1.3960) +sink.location = (1.7123, 12.7161, 0.8306) +toilet.location = (1.9395, 12.5101, 0.4867) + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) diff --git a/data/blenderbench/level2/attribute7/task.txt b/data/blenderbench/level2/attribute7/task.txt new file mode 100644 index 0000000000000000000000000000000000000000..9a3d8216657a654dc6be9b8404e878c259c5ed02 --- /dev/null +++ b/data/blenderbench/level2/attribute7/task.txt @@ -0,0 +1 @@ +First move the cabinet to the correct position, then move the plant to the correct position. You need to move the cabinet to observe the plant in the mirror. \ No newline at end of file diff --git a/data/blenderbench/level2/attribute8/blender_file.blend b/data/blenderbench/level2/attribute8/blender_file.blend new file mode 100644 index 0000000000000000000000000000000000000000..05fcbfc615f12ce6600305c52710ec2d70080a5b --- /dev/null +++ b/data/blenderbench/level2/attribute8/blender_file.blend @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f49ef4d8b76eddfe71f73646d92ab3f7e6aa791580b5c7b093335f831386863c +size 768637773 diff --git a/data/blenderbench/level2/attribute8/goal.py b/data/blenderbench/level2/attribute8/goal.py new file mode 100644 index 0000000000000000000000000000000000000000..ca1d8cab7e2a64b2177b7763226488a78761bcae --- /dev/null +++ b/data/blenderbench/level2/attribute8/goal.py @@ -0,0 +1,54 @@ +import bpy +import math +import numpy as np + +# a set of helper functions that you can use +# 1) move_to: move the object to location +# 2) move_by: move the object by the vector of change + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) + +def move_to(obj, location): + """ Set the object location. + """ + obj.location = location + bpy.context.view_layer.update() + return obj + +def move_by(obj, vector): + """ Shift the object location by a 3D vector + """ + obj.location[0] += vector[0] + obj.location[1] += vector[1] + obj.location[2] += vector[2] + bpy.context.view_layer.update() + return obj + +# These are movable objects. +# with open('log.txt', 'w') as f: +# f.write(bpy.data.objects) + +cabinet = bpy.data.objects['Cabinet'] +plant = bpy.data.objects['Plant'] +mirror = bpy.data.objects['Mirror'] +sink = bpy.data.objects['Sink'] +toilet = bpy.data.objects['Toilet'] + +# These are the current locations of the movable objects +cabinet.location = (0.55602, 12.284, 0.1277) +plant.location = (3.1586, 15.049, 0.92) +mirror.location = (0.1374, 13.5573, 1.3960) +sink.location = (1.7123, 12.7161, 0.8306) +toilet.location = (1.9395, 12.5101, 0.4867) + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) +# # 旋转角度:-89.9, 1.38, 0.03,单位是度 +# mirror.rotation_euler = (math.radians(-89.9), math.radians(1.38), math.radians(0.03)) +# mirror.scale = (1.848, 1.848, 1.848) + diff --git a/data/blenderbench/level2/attribute8/renders/goal/render1.png b/data/blenderbench/level2/attribute8/renders/goal/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..3fb1988fe9e2dbd5e711a2b9c253726fee099256 --- /dev/null +++ b/data/blenderbench/level2/attribute8/renders/goal/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2177e15ad99cb6559092b37de04aa778b13445c89598736ab67ab4f54cfa4ec3 +size 496462 diff --git a/data/blenderbench/level2/attribute8/renders/start/render1.png b/data/blenderbench/level2/attribute8/renders/start/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..d8dd18d4cef67365e243a7392a0ae88a2baae5ea --- /dev/null +++ b/data/blenderbench/level2/attribute8/renders/start/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5a7b24f5925705fb28d115aa6db858201e9ada15e0623f6b6dbefd1279c85716 +size 490095 diff --git a/data/blenderbench/level2/attribute8/start.py b/data/blenderbench/level2/attribute8/start.py new file mode 100644 index 0000000000000000000000000000000000000000..b37dd16de190575b85f359fa99e72ce5593411ed --- /dev/null +++ b/data/blenderbench/level2/attribute8/start.py @@ -0,0 +1,50 @@ +import bpy +import math +import numpy as np + +# a set of helper functions that you can use +# 1) move_to: move the object to location +# 2) move_by: move the object by the vector of change + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) + +def move_to(obj, location): + """ Set the object location. + """ + obj.location = location + bpy.context.view_layer.update() + return obj + +def move_by(obj, vector): + """ Shift the object location by a 3D vector + """ + obj.location[0] += vector[0] + obj.location[1] += vector[1] + obj.location[2] += vector[2] + bpy.context.view_layer.update() + return obj + +# These are movable objects. +# with open('log.txt', 'w') as f: +# f.write(bpy.data.objects) + +cabinet = bpy.data.objects['Cabinet'] +plant = bpy.data.objects['Plant'] +mirror = bpy.data.objects['Mirror'] +sink = bpy.data.objects['Sink'] +toilet = bpy.data.objects['Toilet'] + +# These are the current locations of the movable objects +cabinet.location = (2.4661, 14.201, 0.1277) +plant.location = (3.2168, 14.327, 0.57311) +mirror.location = (0.1374, 13.5573, 1.3960) +sink.location = (1.7123, 12.7161, 0.8306) +toilet.location = (1.9395, 14.5101, 0.4867) + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) diff --git a/data/blenderbench/level2/attribute8/task.txt b/data/blenderbench/level2/attribute8/task.txt new file mode 100644 index 0000000000000000000000000000000000000000..9a3d8216657a654dc6be9b8404e878c259c5ed02 --- /dev/null +++ b/data/blenderbench/level2/attribute8/task.txt @@ -0,0 +1 @@ +First move the cabinet to the correct position, then move the plant to the correct position. You need to move the cabinet to observe the plant in the mirror. \ No newline at end of file diff --git a/data/blenderbench/level2/attribute9/blender_file.blend b/data/blenderbench/level2/attribute9/blender_file.blend new file mode 100644 index 0000000000000000000000000000000000000000..05fcbfc615f12ce6600305c52710ec2d70080a5b --- /dev/null +++ b/data/blenderbench/level2/attribute9/blender_file.blend @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f49ef4d8b76eddfe71f73646d92ab3f7e6aa791580b5c7b093335f831386863c +size 768637773 diff --git a/data/blenderbench/level2/attribute9/goal.py b/data/blenderbench/level2/attribute9/goal.py new file mode 100644 index 0000000000000000000000000000000000000000..ca1d8cab7e2a64b2177b7763226488a78761bcae --- /dev/null +++ b/data/blenderbench/level2/attribute9/goal.py @@ -0,0 +1,54 @@ +import bpy +import math +import numpy as np + +# a set of helper functions that you can use +# 1) move_to: move the object to location +# 2) move_by: move the object by the vector of change + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) + +def move_to(obj, location): + """ Set the object location. + """ + obj.location = location + bpy.context.view_layer.update() + return obj + +def move_by(obj, vector): + """ Shift the object location by a 3D vector + """ + obj.location[0] += vector[0] + obj.location[1] += vector[1] + obj.location[2] += vector[2] + bpy.context.view_layer.update() + return obj + +# These are movable objects. +# with open('log.txt', 'w') as f: +# f.write(bpy.data.objects) + +cabinet = bpy.data.objects['Cabinet'] +plant = bpy.data.objects['Plant'] +mirror = bpy.data.objects['Mirror'] +sink = bpy.data.objects['Sink'] +toilet = bpy.data.objects['Toilet'] + +# These are the current locations of the movable objects +cabinet.location = (0.55602, 12.284, 0.1277) +plant.location = (3.1586, 15.049, 0.92) +mirror.location = (0.1374, 13.5573, 1.3960) +sink.location = (1.7123, 12.7161, 0.8306) +toilet.location = (1.9395, 12.5101, 0.4867) + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) +# # 旋转角度:-89.9, 1.38, 0.03,单位是度 +# mirror.rotation_euler = (math.radians(-89.9), math.radians(1.38), math.radians(0.03)) +# mirror.scale = (1.848, 1.848, 1.848) + diff --git a/data/blenderbench/level2/attribute9/renders/goal/render1.png b/data/blenderbench/level2/attribute9/renders/goal/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..3448027c64be93eee308939ef1f9793ac04bd5bb --- /dev/null +++ b/data/blenderbench/level2/attribute9/renders/goal/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:057562178eba0d2cf993227378f6f93c2689eda870a060cc836edce85f892eb0 +size 496462 diff --git a/data/blenderbench/level2/attribute9/renders/start/render1.png b/data/blenderbench/level2/attribute9/renders/start/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..2aac08449c8470367327c05979f1003e66936f8b --- /dev/null +++ b/data/blenderbench/level2/attribute9/renders/start/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6e97d1781b4bbc0b4b78657c05700920e222625dba0eabc53f9c3e6b10cb76bc +size 489463 diff --git a/data/blenderbench/level2/attribute9/start.py b/data/blenderbench/level2/attribute9/start.py new file mode 100644 index 0000000000000000000000000000000000000000..133230ae8b18e1fb4c6be19880194deb6fadb6c2 --- /dev/null +++ b/data/blenderbench/level2/attribute9/start.py @@ -0,0 +1,50 @@ +import bpy +import math +import numpy as np + +# a set of helper functions that you can use +# 1) move_to: move the object to location +# 2) move_by: move the object by the vector of change + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) + +def move_to(obj, location): + """ Set the object location. + """ + obj.location = location + bpy.context.view_layer.update() + return obj + +def move_by(obj, vector): + """ Shift the object location by a 3D vector + """ + obj.location[0] += vector[0] + obj.location[1] += vector[1] + obj.location[2] += vector[2] + bpy.context.view_layer.update() + return obj + +# These are movable objects. +# with open('log.txt', 'w') as f: +# f.write(bpy.data.objects) + +cabinet = bpy.data.objects['Cabinet'] +plant = bpy.data.objects['Plant'] +mirror = bpy.data.objects['Mirror'] +sink = bpy.data.objects['Sink'] +toilet = bpy.data.objects['Toilet'] + +# These are the current locations of the movable objects +cabinet.location = (2.4661, 14.201, 0.1277) +plant.location = (3.2168, 14.327, 0.57311) +mirror.location = (0.1374, 13.5573, 1.3960) +sink.location = (1.7123, 14.7161, 0.8306) +toilet.location = (1.9395, 14.5101, 0.4867) + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) diff --git a/data/blenderbench/level2/attribute9/task.txt b/data/blenderbench/level2/attribute9/task.txt new file mode 100644 index 0000000000000000000000000000000000000000..9a3d8216657a654dc6be9b8404e878c259c5ed02 --- /dev/null +++ b/data/blenderbench/level2/attribute9/task.txt @@ -0,0 +1 @@ +First move the cabinet to the correct position, then move the plant to the correct position. You need to move the cabinet to observe the plant in the mirror. \ No newline at end of file diff --git a/data/blenderbench/level2/pipeline_render_script.py b/data/blenderbench/level2/pipeline_render_script.py new file mode 100644 index 0000000000000000000000000000000000000000..790d0dfaab20a3b2efdfb43936d33d4f6dec9269 --- /dev/null +++ b/data/blenderbench/level2/pipeline_render_script.py @@ -0,0 +1,67 @@ +import bpy +import random +import json +import os +import sys +from sys import platform + +if __name__ == "__main__": + + code_fpath = sys.argv[6] # Path to the code file + rendering_dir = sys.argv[7] # Path to save the rendering from camera1 + if len(sys.argv) > 8: + save_blend = sys.argv[8] # Path to save the blend file + else: + save_blend = None + + # Enable GPU rendering + bpy.context.scene.render.engine = 'CYCLES' + bpy.context.preferences.addons['cycles'].preferences.compute_device_type = 'CUDA' # or 'OPTIX' if your GPU supports it + bpy.context.preferences.addons['cycles'].preferences.get_devices() + + # Check and select the GPUs + for device in bpy.context.preferences.addons['cycles'].preferences.devices: + if device.type == 'GPU' and not device.use: + device.use = True + + # Set the rendering device to GPU + bpy.context.scene.cycles.device = 'GPU' + + # Setting up rendering resolution + bpy.context.scene.render.resolution_x = 512 + bpy.context.scene.render.resolution_y = 512 + + # Set max samples to 1024 + bpy.context.scene.cycles.samples = 512 + + # Set color mode to RGB + bpy.context.scene.render.image_settings.color_mode = 'RGB' + + # Read and execute the code from the specified file + with open(code_fpath, "r") as f: + code = f.read() + try: + exec(code) + except: + raise ValueError + + # Render from camera1 + if 'Camera1' in bpy.data.objects: + bpy.context.scene.camera = bpy.data.objects['Camera1'] + bpy.context.scene.render.image_settings.file_format = 'PNG' + bpy.context.scene.render.filepath = os.path.join(rendering_dir, 'render1.png') + bpy.ops.render.render(write_still=True) + + # Render from camera2 (not used in hard tasks) + # if 'Camera2' in bpy.data.objects: + # bpy.context.scene.camera = bpy.data.objects['Camera2'] + # bpy.context.scene.render.image_settings.file_format = 'PNG' + # bpy.context.scene.render.filepath = os.path.join(rendering_dir, 'render2.png') + # bpy.ops.render.render(write_still=True) + + # Save the blend file + if save_blend: + # Set the save version to 0 + bpy.context.preferences.filepaths.save_version = 0 + # Save the blend file + bpy.ops.wm.save_as_mainfile(filepath=save_blend) \ No newline at end of file diff --git a/data/blenderbench/level3/attribute1/blender_file.blend b/data/blenderbench/level3/attribute1/blender_file.blend new file mode 100644 index 0000000000000000000000000000000000000000..598a2385913f422503103677c28e70a16ba5134b --- /dev/null +++ b/data/blenderbench/level3/attribute1/blender_file.blend @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:58bd9031ded0eb4c092951573e7e16f2704b29b1a2eb239331c88b5ba74d3aea +size 1103281707 diff --git a/data/blenderbench/level3/attribute1/goal.py b/data/blenderbench/level3/attribute1/goal.py new file mode 100644 index 0000000000000000000000000000000000000000..5250fa55ad707e29dc222f54da821064b73d2c3b --- /dev/null +++ b/data/blenderbench/level3/attribute1/goal.py @@ -0,0 +1,34 @@ +import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects["Camera1"].location = (1.1400, 0.8500, 0.5300) +bpy.data.objects["Camera1"].rotation_euler = (2.4435, 1.1170, 2.6354) + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 200 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The key of stylized fat character +bpy.data.shape_keys["Key"].key_blocks["BellySag"].value = 5 +bpy.data.shape_keys["Key"].key_blocks["BellyShrink"].value = 3 +bpy.data.shape_keys["Key"].key_blocks["ShoulderWideness"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["BackTaper"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ChestEnlarge"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ChestArea"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["MoreChin"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["Abs"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["eyelids"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["nose"].value = 0 \ No newline at end of file diff --git a/data/blenderbench/level3/attribute1/renders/goal/render1.png b/data/blenderbench/level3/attribute1/renders/goal/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..d9f070b573c1cfe18b9d06fd2777c97155cdb154 --- /dev/null +++ b/data/blenderbench/level3/attribute1/renders/goal/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:203bc0d5b3cd6bff06e19baa56c56370b5a8da9155b5b0ee3e8598a0886318f0 +size 424605 diff --git a/data/blenderbench/level3/attribute1/renders/start/render1.png b/data/blenderbench/level3/attribute1/renders/start/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..b288093ecd971ac9cafc40966b16f609f5d4a8c2 --- /dev/null +++ b/data/blenderbench/level3/attribute1/renders/start/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:649da5341301703e8dcdbae14ac6c5df72de3139f5cd00446d87c9a39b054295 +size 396327 diff --git a/data/blenderbench/level3/attribute1/start.py b/data/blenderbench/level3/attribute1/start.py new file mode 100644 index 0000000000000000000000000000000000000000..7d5b416c2be2ddc0f55b8b96482c0536cec22496 --- /dev/null +++ b/data/blenderbench/level3/attribute1/start.py @@ -0,0 +1,34 @@ +import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects["Camera1"].location = (-1.1222, -0.3259, 4.4354) +bpy.data.objects["Camera1"].rotation_euler = (-0.0873, 0.5934, 0.2094) + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 0 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The key of stylized fat character (Object name: 'Stylized Fat Character') +bpy.data.shape_keys["Key"].key_blocks["BellySag"].value = 5 +bpy.data.shape_keys["Key"].key_blocks["BellyShrink"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ShoulderWideness"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["BackTaper"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ChestEnlarge"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ChestArea"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["MoreChin"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["Abs"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["eyelids"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["nose"].value = 0 \ No newline at end of file diff --git a/data/blenderbench/level3/attribute1/task.txt b/data/blenderbench/level3/attribute1/task.txt new file mode 100644 index 0000000000000000000000000000000000000000..df0d929a1e1d9cdcc321642c98c5d60a6bc90bb9 --- /dev/null +++ b/data/blenderbench/level3/attribute1/task.txt @@ -0,0 +1 @@ +First adjust the room brightness, then adjust the size of the character's belly so that it looks like the target image. You need to adjust the camera angle so that you can see the object you want to modify. \ No newline at end of file diff --git a/data/blenderbench/level3/attribute2/blender_file.blend b/data/blenderbench/level3/attribute2/blender_file.blend new file mode 100644 index 0000000000000000000000000000000000000000..3c8b7beeb7aa513fa1c66d186039151f9d38077f --- /dev/null +++ b/data/blenderbench/level3/attribute2/blender_file.blend @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8dd5b6c18ae4d7f77a94370a9c0203f6ea06911e590c43d4b563c2f0195854be +size 1104010951 diff --git a/data/blenderbench/level3/attribute2/goal.py b/data/blenderbench/level3/attribute2/goal.py new file mode 100644 index 0000000000000000000000000000000000000000..5250fa55ad707e29dc222f54da821064b73d2c3b --- /dev/null +++ b/data/blenderbench/level3/attribute2/goal.py @@ -0,0 +1,34 @@ +import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects["Camera1"].location = (1.1400, 0.8500, 0.5300) +bpy.data.objects["Camera1"].rotation_euler = (2.4435, 1.1170, 2.6354) + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 200 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The key of stylized fat character +bpy.data.shape_keys["Key"].key_blocks["BellySag"].value = 5 +bpy.data.shape_keys["Key"].key_blocks["BellyShrink"].value = 3 +bpy.data.shape_keys["Key"].key_blocks["ShoulderWideness"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["BackTaper"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ChestEnlarge"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ChestArea"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["MoreChin"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["Abs"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["eyelids"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["nose"].value = 0 \ No newline at end of file diff --git a/data/blenderbench/level3/attribute2/renders/goal/render1.png b/data/blenderbench/level3/attribute2/renders/goal/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..fec9d6a34397b5ab37a6e14e207f7e232da8a860 --- /dev/null +++ b/data/blenderbench/level3/attribute2/renders/goal/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b5b1526c9fde7aecd35f842598627b63172338284d69aaa36d6a40649200ca30 +size 424611 diff --git a/data/blenderbench/level3/attribute2/renders/start/render1.png b/data/blenderbench/level3/attribute2/renders/start/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..cd3608aed90eb5ab48ee1a65ae234ca36687558c --- /dev/null +++ b/data/blenderbench/level3/attribute2/renders/start/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be829e1b0a40829168ed2174fc4efe68858d72559556d7a01d6ad16e490b8a6a +size 511148 diff --git a/data/blenderbench/level3/attribute2/start.py b/data/blenderbench/level3/attribute2/start.py new file mode 100644 index 0000000000000000000000000000000000000000..df1d330fdd5658db8875f63713eeb753bfcce23c --- /dev/null +++ b/data/blenderbench/level3/attribute2/start.py @@ -0,0 +1,32 @@ +import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects["Camera1"].location = (-1.1222, -0.3259, 4.4354) +bpy.data.objects["Camera1"].rotation_euler = (-0.0873, 0.5934, 0.2094) + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +lamp_on_the_cupboard.data.energy = 0.5 +lamp_on_shelf.data.energy = 2.5 +light_on_ceilling.data.energy = 400 + +lamp_on_the_cupboard.data.color = (0.8, 0.9, 1) +lamp_on_shelf.data.color = (0.5, 0.7, 1) +light_on_ceilling.data.color = (1, 0, 0) + +# The key of stylized fat character (Object name: 'Stylized Fat Character') +bpy.data.shape_keys["Key"].key_blocks["BellySag"].value = 5 +bpy.data.shape_keys["Key"].key_blocks["BellyShrink"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ShoulderWideness"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["BackTaper"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ChestEnlarge"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ChestArea"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["MoreChin"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["Abs"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["eyelids"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["nose"].value = 0 \ No newline at end of file diff --git a/data/blenderbench/level3/attribute2/task.txt b/data/blenderbench/level3/attribute2/task.txt new file mode 100644 index 0000000000000000000000000000000000000000..df0d929a1e1d9cdcc321642c98c5d60a6bc90bb9 --- /dev/null +++ b/data/blenderbench/level3/attribute2/task.txt @@ -0,0 +1 @@ +First adjust the room brightness, then adjust the size of the character's belly so that it looks like the target image. You need to adjust the camera angle so that you can see the object you want to modify. \ No newline at end of file diff --git a/data/blenderbench/level3/attribute3/blender_file.blend b/data/blenderbench/level3/attribute3/blender_file.blend new file mode 100644 index 0000000000000000000000000000000000000000..c0450d126230e49f06bc0afc80710ff278778e73 --- /dev/null +++ b/data/blenderbench/level3/attribute3/blender_file.blend @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7c1a17de951be40e203fc96dde62afc0056392394897e3478de322cf84ef4272 +size 1104010951 diff --git a/data/blenderbench/level3/attribute3/goal.py b/data/blenderbench/level3/attribute3/goal.py new file mode 100644 index 0000000000000000000000000000000000000000..5250fa55ad707e29dc222f54da821064b73d2c3b --- /dev/null +++ b/data/blenderbench/level3/attribute3/goal.py @@ -0,0 +1,34 @@ +import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects["Camera1"].location = (1.1400, 0.8500, 0.5300) +bpy.data.objects["Camera1"].rotation_euler = (2.4435, 1.1170, 2.6354) + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 200 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The key of stylized fat character +bpy.data.shape_keys["Key"].key_blocks["BellySag"].value = 5 +bpy.data.shape_keys["Key"].key_blocks["BellyShrink"].value = 3 +bpy.data.shape_keys["Key"].key_blocks["ShoulderWideness"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["BackTaper"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ChestEnlarge"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ChestArea"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["MoreChin"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["Abs"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["eyelids"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["nose"].value = 0 \ No newline at end of file diff --git a/data/blenderbench/level3/attribute3/renders/goal/render1.png b/data/blenderbench/level3/attribute3/renders/goal/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..70f334823a5eb76be195cadf3158929b755f9267 --- /dev/null +++ b/data/blenderbench/level3/attribute3/renders/goal/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:741983290631f850e8e7a011679328f9e6da5545a671c23d73c17beb88cae346 +size 424612 diff --git a/data/blenderbench/level3/attribute3/renders/start/render1.png b/data/blenderbench/level3/attribute3/renders/start/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..f5b48a8b11400a02f7c7b588f344a55248724a37 --- /dev/null +++ b/data/blenderbench/level3/attribute3/renders/start/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3764f3986d46485a357b844bb955fa5e55963be52985e35a16391610cede0126 +size 528935 diff --git a/data/blenderbench/level3/attribute3/start.py b/data/blenderbench/level3/attribute3/start.py new file mode 100644 index 0000000000000000000000000000000000000000..c4d5bbd48128bb87ef8f8186a1cd68439edbfdb2 --- /dev/null +++ b/data/blenderbench/level3/attribute3/start.py @@ -0,0 +1,32 @@ +import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects["Camera1"].location = (-1.1222, -0.3259, 4.4354) +bpy.data.objects["Camera1"].rotation_euler = (-0.0873, 0.5934, 0.2094) + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +lamp_on_the_cupboard.data.energy = 2.5 +lamp_on_shelf.data.energy = 57 +light_on_ceilling.data.energy = 0 + +lamp_on_the_cupboard.data.color = (1, 0.85, 0) +lamp_on_shelf.data.color = (0.2, 0.6, 1) +light_on_ceilling.data.color = (1, 0.95, 0.6) + +# The key of stylized fat character (Object name: 'Stylized Fat Character') +bpy.data.shape_keys["Key"].key_blocks["BellySag"].value = 5 +bpy.data.shape_keys["Key"].key_blocks["BellyShrink"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ShoulderWideness"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["BackTaper"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ChestEnlarge"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["ChestArea"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["MoreChin"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["Abs"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["eyelids"].value = 0 +bpy.data.shape_keys["Key"].key_blocks["nose"].value = 0 \ No newline at end of file diff --git a/data/blenderbench/level3/attribute3/task.txt b/data/blenderbench/level3/attribute3/task.txt new file mode 100644 index 0000000000000000000000000000000000000000..df0d929a1e1d9cdcc321642c98c5d60a6bc90bb9 --- /dev/null +++ b/data/blenderbench/level3/attribute3/task.txt @@ -0,0 +1 @@ +First adjust the room brightness, then adjust the size of the character's belly so that it looks like the target image. You need to adjust the camera angle so that you can see the object you want to modify. \ No newline at end of file diff --git a/data/blenderbench/level3/attribute4/blender_file.blend b/data/blenderbench/level3/attribute4/blender_file.blend new file mode 100644 index 0000000000000000000000000000000000000000..78c59f7e8ca4edbbb336542d964fff9b238fa96d --- /dev/null +++ b/data/blenderbench/level3/attribute4/blender_file.blend @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:250865ed23f0d6dcb03c8ee9302ae5e55473fb60d35c6b487533fd3f8bd3e29d +size 1100061468 diff --git a/data/blenderbench/level3/attribute4/goal.py b/data/blenderbench/level3/attribute4/goal.py new file mode 100644 index 0000000000000000000000000000000000000000..a281ce68ea70995f960134cbbcc266004b3f18fd --- /dev/null +++ b/data/blenderbench/level3/attribute4/goal.py @@ -0,0 +1,27 @@ +import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects["Camera1"].location = (1.1400, 0.8500, 0.5300) +bpy.data.objects["Camera1"].rotation_euler = (2.4435, 1.1170, 2.6354) + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 200 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The basketball location +basketball = bpy.data.objects['basketball'] +basketball.location = (13.4023, 2.7485, 0.6584) +# basketball.location = (13.4023, 3.7485, 0.1584) \ No newline at end of file diff --git a/data/blenderbench/level3/attribute4/renders/goal/render1.png b/data/blenderbench/level3/attribute4/renders/goal/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..1e0bf1cecf36801c6aef9cdbd5f335f6a577897a --- /dev/null +++ b/data/blenderbench/level3/attribute4/renders/goal/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2dfaea1568f9cfb0400600c874e214dc9b15578708571d1d9897605330ffc928 +size 424822 diff --git a/data/blenderbench/level3/attribute4/renders/start/render1.png b/data/blenderbench/level3/attribute4/renders/start/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..422a1377f00fa60b87f9baf11cd86b0ea48110e1 --- /dev/null +++ b/data/blenderbench/level3/attribute4/renders/start/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:21476883b53dbc1e9de510f8e78a83780f93bb1221c1d07056a84f5443934acb +size 396127 diff --git a/data/blenderbench/level3/attribute4/start.py b/data/blenderbench/level3/attribute4/start.py new file mode 100644 index 0000000000000000000000000000000000000000..c8cf8717af01beef3fa61cc2fdb182a9132bd1ce --- /dev/null +++ b/data/blenderbench/level3/attribute4/start.py @@ -0,0 +1,26 @@ +import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects["Camera1"].location = (-1.1222, -0.3259, 4.4354) +bpy.data.objects["Camera1"].rotation_euler = (-0.0873, 0.5934, 0.2094) + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 0 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The basketball location (Object name: 'basketball') +basketball = bpy.data.objects['basketball'] +basketball.location = (13.4023, 3.7485, 0.1584) \ No newline at end of file diff --git a/data/blenderbench/level3/attribute4/task.txt b/data/blenderbench/level3/attribute4/task.txt new file mode 100644 index 0000000000000000000000000000000000000000..0f4f7411e78fbfdf51b265988ee7ba26933de194 --- /dev/null +++ b/data/blenderbench/level3/attribute4/task.txt @@ -0,0 +1 @@ +First adjust the brightness of the room, then adjust the position of the basketball so that it looks the same as the target image. You need to adjust the camera angle so that you can see the object you want to modify. \ No newline at end of file diff --git a/data/blenderbench/level3/attribute5/blender_file.blend b/data/blenderbench/level3/attribute5/blender_file.blend new file mode 100644 index 0000000000000000000000000000000000000000..651e1029bc10ca62d380be72c08e122720b5a7c2 --- /dev/null +++ b/data/blenderbench/level3/attribute5/blender_file.blend @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d1205f27f8f2493620645554db00c24d74d88b4ae0310fa846e30c3449aa84b +size 947346540 diff --git a/data/blenderbench/level3/attribute5/goal.py b/data/blenderbench/level3/attribute5/goal.py new file mode 100644 index 0000000000000000000000000000000000000000..a281ce68ea70995f960134cbbcc266004b3f18fd --- /dev/null +++ b/data/blenderbench/level3/attribute5/goal.py @@ -0,0 +1,27 @@ +import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects["Camera1"].location = (1.1400, 0.8500, 0.5300) +bpy.data.objects["Camera1"].rotation_euler = (2.4435, 1.1170, 2.6354) + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 200 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The basketball location +basketball = bpy.data.objects['basketball'] +basketball.location = (13.4023, 2.7485, 0.6584) +# basketball.location = (13.4023, 3.7485, 0.1584) \ No newline at end of file diff --git a/data/blenderbench/level3/attribute5/renders/goal/render1.png b/data/blenderbench/level3/attribute5/renders/goal/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..e9aef85c8c070db78c4d9f85a0ae46eeef6b3b92 --- /dev/null +++ b/data/blenderbench/level3/attribute5/renders/goal/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:08f94e6af9f1bd74f52a7302f7673da3ebfb318437d4a986780158967944635b +size 432648 diff --git a/data/blenderbench/level3/attribute5/renders/start/render1.png b/data/blenderbench/level3/attribute5/renders/start/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..c6b13b0c07ef1777b480afedfb21283503fa7315 --- /dev/null +++ b/data/blenderbench/level3/attribute5/renders/start/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0745ec2c089d71ccfbc0497c21b36c44d22f0a9bde57ff56fb79de2de57fd3bb +size 524817 diff --git a/data/blenderbench/level3/attribute5/start.py b/data/blenderbench/level3/attribute5/start.py new file mode 100644 index 0000000000000000000000000000000000000000..59d3e7ce0a94c4c34a243de6f0266e80084ddb04 --- /dev/null +++ b/data/blenderbench/level3/attribute5/start.py @@ -0,0 +1,24 @@ +import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects["Camera1"].location = (-1.1222, -0.3259, 4.4354) +bpy.data.objects["Camera1"].rotation_euler = (-0.0873, 0.5934, 0.2094) + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +lamp_on_the_cupboard.data.energy = 0.5 +lamp_on_shelf.data.energy = 2.5 +light_on_ceilling.data.energy = 400 + +lamp_on_the_cupboard.data.color = (0.8, 0.9, 1) +lamp_on_shelf.data.color = (0.5, 0.7, 1) +light_on_ceilling.data.color = (1, 0, 0) + +# The basketball location (Object name: 'basketball') +basketball = bpy.data.objects['basketball'] +basketball.location = (14.4023, 2.7485, 0.1584) \ No newline at end of file diff --git a/data/blenderbench/level3/attribute5/task.txt b/data/blenderbench/level3/attribute5/task.txt new file mode 100644 index 0000000000000000000000000000000000000000..0f4f7411e78fbfdf51b265988ee7ba26933de194 --- /dev/null +++ b/data/blenderbench/level3/attribute5/task.txt @@ -0,0 +1 @@ +First adjust the brightness of the room, then adjust the position of the basketball so that it looks the same as the target image. You need to adjust the camera angle so that you can see the object you want to modify. \ No newline at end of file diff --git a/data/blenderbench/level3/attribute6/blender_file.blend b/data/blenderbench/level3/attribute6/blender_file.blend new file mode 100644 index 0000000000000000000000000000000000000000..651e1029bc10ca62d380be72c08e122720b5a7c2 --- /dev/null +++ b/data/blenderbench/level3/attribute6/blender_file.blend @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d1205f27f8f2493620645554db00c24d74d88b4ae0310fa846e30c3449aa84b +size 947346540 diff --git a/data/blenderbench/level3/attribute6/goal.py b/data/blenderbench/level3/attribute6/goal.py new file mode 100644 index 0000000000000000000000000000000000000000..a281ce68ea70995f960134cbbcc266004b3f18fd --- /dev/null +++ b/data/blenderbench/level3/attribute6/goal.py @@ -0,0 +1,27 @@ +import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects["Camera1"].location = (1.1400, 0.8500, 0.5300) +bpy.data.objects["Camera1"].rotation_euler = (2.4435, 1.1170, 2.6354) + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 200 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The basketball location +basketball = bpy.data.objects['basketball'] +basketball.location = (13.4023, 2.7485, 0.6584) +# basketball.location = (13.4023, 3.7485, 0.1584) \ No newline at end of file diff --git a/data/blenderbench/level3/attribute6/renders/goal/render1.png b/data/blenderbench/level3/attribute6/renders/goal/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..10d2d97575e32eeb841547b7270f74cf7fabd6ff --- /dev/null +++ b/data/blenderbench/level3/attribute6/renders/goal/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:86b764ac22fe162549f3d5a2995e0e8160e836cf6abac763c120f9de283a8089 +size 432652 diff --git a/data/blenderbench/level3/attribute6/renders/start/render1.png b/data/blenderbench/level3/attribute6/renders/start/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..368e98629b39c822d62711ef5ed1046ad41ad60c --- /dev/null +++ b/data/blenderbench/level3/attribute6/renders/start/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ef8a5308785756af71096e81d45dd06e13aecd5f50bb781a0bdfa6e2ac4d181d +size 537966 diff --git a/data/blenderbench/level3/attribute6/start.py b/data/blenderbench/level3/attribute6/start.py new file mode 100644 index 0000000000000000000000000000000000000000..c6ebc619f78ff7952522a61c9c1d7eb3dad40bdb --- /dev/null +++ b/data/blenderbench/level3/attribute6/start.py @@ -0,0 +1,24 @@ +import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects["Camera1"].location = (-1.1222, -0.3259, 4.4354) +bpy.data.objects["Camera1"].rotation_euler = (-0.0873, 0.5934, 0.2094) + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +lamp_on_the_cupboard.data.energy = 2.5 +lamp_on_shelf.data.energy = 57 +light_on_ceilling.data.energy = 0 + +lamp_on_the_cupboard.data.color = (1, 0.85, 0) +lamp_on_shelf.data.color = (0.2, 0.6, 1) +light_on_ceilling.data.color = (1, 0.95, 0.6) + +# The basketball location (Object name: 'basketball') +basketball = bpy.data.objects['basketball'] +basketball.location = (13.9023, 3.0485, 0.1584) \ No newline at end of file diff --git a/data/blenderbench/level3/attribute6/task.txt b/data/blenderbench/level3/attribute6/task.txt new file mode 100644 index 0000000000000000000000000000000000000000..0f4f7411e78fbfdf51b265988ee7ba26933de194 --- /dev/null +++ b/data/blenderbench/level3/attribute6/task.txt @@ -0,0 +1 @@ +First adjust the brightness of the room, then adjust the position of the basketball so that it looks the same as the target image. You need to adjust the camera angle so that you can see the object you want to modify. \ No newline at end of file diff --git a/data/blenderbench/level3/attribute7/blender_file.blend b/data/blenderbench/level3/attribute7/blender_file.blend new file mode 100644 index 0000000000000000000000000000000000000000..ee8f5fb6f9a868345bb02a9cac6deee6e68e3f45 --- /dev/null +++ b/data/blenderbench/level3/attribute7/blender_file.blend @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c4efab1f4cfc624e047491836f5516a0d2bd0e4f803926bca3e94e23a0ada149 +size 766325689 diff --git a/data/blenderbench/level3/attribute7/goal.py b/data/blenderbench/level3/attribute7/goal.py new file mode 100644 index 0000000000000000000000000000000000000000..818a8e73f9162f8e4eeb04612455395a96d494f4 --- /dev/null +++ b/data/blenderbench/level3/attribute7/goal.py @@ -0,0 +1,58 @@ +import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects["Camera1"].location = (-2.0000, 0.0000, 0.4400) +bpy.data.objects["Camera1"].rotation_euler = (-0.1396, 5.7945, 0.0000) + +# a set of helper functions that you can use +# 1) move_to: move the object to location +# 2) move_by: move the object by the vector of change + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) + +def move_to(obj, location): + """ Set the object location. + """ + obj.location = location + bpy.context.view_layer.update() + return obj + +def move_by(obj, vector): + """ Shift the object location by a 3D vector + """ + obj.location[0] += vector[0] + obj.location[1] += vector[1] + obj.location[2] += vector[2] + bpy.context.view_layer.update() + return obj + +# These are movable objects. +# with open('log.txt', 'w') as f: +# f.write(bpy.data.objects) + +cabinet = bpy.data.objects['Cabinet'] +plant = bpy.data.objects['Plant'] +mirror = bpy.data.objects['Mirror'] +sink = bpy.data.objects['Sink'] +toilet = bpy.data.objects['Toilet'] + +# These are the current locations of the movable objects +cabinet.location = (0.55602, 12.284, 0.1277) +plant.location = (3.1586, 15.049, 0.92) +mirror.location = (0.1374, 13.5573, 1.3960) +sink.location = (1.7123, 12.7161, 0.8306) +toilet.location = (1.9395, 12.5101, 0.4867) + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) +# # 旋转角度:-89.9, 1.38, 0.03,单位是度 +# mirror.rotation_euler = (math.radians(-89.9), math.radians(1.38), math.radians(0.03)) +# mirror.scale = (1.848, 1.848, 1.848) + diff --git a/data/blenderbench/level3/attribute7/renders/goal/render1.png b/data/blenderbench/level3/attribute7/renders/goal/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..066f39046e01e72f80fb53c8606b7deaf2811ab5 --- /dev/null +++ b/data/blenderbench/level3/attribute7/renders/goal/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0ada6e89b53c28b9036418def514b728dd0eeb664eb3f7a1ca9496a5e8ef93f1 +size 496540 diff --git a/data/blenderbench/level3/attribute7/renders/start/render1.png b/data/blenderbench/level3/attribute7/renders/start/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..13609206bb37b55e4f16b4695d7c93c7d4b20bd6 --- /dev/null +++ b/data/blenderbench/level3/attribute7/renders/start/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c2a4b7b1304a66c6a969a9f9e13829fdad13be72b859c186c2d043be250754c7 +size 485005 diff --git a/data/blenderbench/level3/attribute7/start.py b/data/blenderbench/level3/attribute7/start.py new file mode 100644 index 0000000000000000000000000000000000000000..aeda4ddbd4422cd29ba466dd3577f9f05a9ea7e4 --- /dev/null +++ b/data/blenderbench/level3/attribute7/start.py @@ -0,0 +1,54 @@ +import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects["Camera1"].location = (0.2645, 0.2215, -2.9188) +bpy.data.objects["Camera1"].rotation_euler = (-0.0698, 2.4260, 0.0000) + +# a set of helper functions that you can use +# 1) move_to: move the object to location +# 2) move_by: move the object by the vector of change + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) + +def move_to(obj, location): + """ Set the object location. + """ + obj.location = location + bpy.context.view_layer.update() + return obj + +def move_by(obj, vector): + """ Shift the object location by a 3D vector + """ + obj.location[0] += vector[0] + obj.location[1] += vector[1] + obj.location[2] += vector[2] + bpy.context.view_layer.update() + return obj + +# These are movable objects. +# with open('log.txt', 'w') as f: +# f.write(bpy.data.objects) + +cabinet = bpy.data.objects['Cabinet'] +plant = bpy.data.objects['Plant'] +mirror = bpy.data.objects['Mirror'] +sink = bpy.data.objects['Sink'] +toilet = bpy.data.objects['Toilet'] + +# These are the current locations of the movable objects +cabinet.location = (2.4661, 14.201, 0.1277) +plant.location = (3.2168, 14.327, 0.57311) +mirror.location = (0.1374, 13.5573, 1.3960) +sink.location = (1.7123, 12.7161, 0.8306) +toilet.location = (1.9395, 12.5101, 0.4867) + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) diff --git a/data/blenderbench/level3/attribute7/task.txt b/data/blenderbench/level3/attribute7/task.txt new file mode 100644 index 0000000000000000000000000000000000000000..20dc920fca0ea87f55f7a39e4be480283ca1b6e3 --- /dev/null +++ b/data/blenderbench/level3/attribute7/task.txt @@ -0,0 +1 @@ +First move the cabinet to the correct position, then move the plant to the correct position. You need to move the cabinet to observe the plant in the mirror. You need to adjust the camera angle so that you can see the object you want to modify. \ No newline at end of file diff --git a/data/blenderbench/level3/attribute8/blender_file.blend b/data/blenderbench/level3/attribute8/blender_file.blend new file mode 100644 index 0000000000000000000000000000000000000000..05fcbfc615f12ce6600305c52710ec2d70080a5b --- /dev/null +++ b/data/blenderbench/level3/attribute8/blender_file.blend @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f49ef4d8b76eddfe71f73646d92ab3f7e6aa791580b5c7b093335f831386863c +size 768637773 diff --git a/data/blenderbench/level3/attribute8/goal.py b/data/blenderbench/level3/attribute8/goal.py new file mode 100644 index 0000000000000000000000000000000000000000..818a8e73f9162f8e4eeb04612455395a96d494f4 --- /dev/null +++ b/data/blenderbench/level3/attribute8/goal.py @@ -0,0 +1,58 @@ +import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects["Camera1"].location = (-2.0000, 0.0000, 0.4400) +bpy.data.objects["Camera1"].rotation_euler = (-0.1396, 5.7945, 0.0000) + +# a set of helper functions that you can use +# 1) move_to: move the object to location +# 2) move_by: move the object by the vector of change + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) + +def move_to(obj, location): + """ Set the object location. + """ + obj.location = location + bpy.context.view_layer.update() + return obj + +def move_by(obj, vector): + """ Shift the object location by a 3D vector + """ + obj.location[0] += vector[0] + obj.location[1] += vector[1] + obj.location[2] += vector[2] + bpy.context.view_layer.update() + return obj + +# These are movable objects. +# with open('log.txt', 'w') as f: +# f.write(bpy.data.objects) + +cabinet = bpy.data.objects['Cabinet'] +plant = bpy.data.objects['Plant'] +mirror = bpy.data.objects['Mirror'] +sink = bpy.data.objects['Sink'] +toilet = bpy.data.objects['Toilet'] + +# These are the current locations of the movable objects +cabinet.location = (0.55602, 12.284, 0.1277) +plant.location = (3.1586, 15.049, 0.92) +mirror.location = (0.1374, 13.5573, 1.3960) +sink.location = (1.7123, 12.7161, 0.8306) +toilet.location = (1.9395, 12.5101, 0.4867) + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) +# # 旋转角度:-89.9, 1.38, 0.03,单位是度 +# mirror.rotation_euler = (math.radians(-89.9), math.radians(1.38), math.radians(0.03)) +# mirror.scale = (1.848, 1.848, 1.848) + diff --git a/data/blenderbench/level3/attribute8/renders/goal/render1.png b/data/blenderbench/level3/attribute8/renders/goal/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..8d6dff62f9fc08e27eafe9ec5a0cd6b90c4de73f --- /dev/null +++ b/data/blenderbench/level3/attribute8/renders/goal/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:33e602e64c9b3f6825472277653bd168de39645a61cde8d8112efe0ae0cde1ad +size 496540 diff --git a/data/blenderbench/level3/attribute8/renders/start/render1.png b/data/blenderbench/level3/attribute8/renders/start/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..82f4b5076b202366e176e913805c4550df4d3494 --- /dev/null +++ b/data/blenderbench/level3/attribute8/renders/start/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ec83a5c1c0fea2c966dc23149a2c61d4085ec2bdf98ccad6a267b4e9b60602d2 +size 489239 diff --git a/data/blenderbench/level3/attribute8/start.py b/data/blenderbench/level3/attribute8/start.py new file mode 100644 index 0000000000000000000000000000000000000000..37c534a03c87c0689ca42cedbc8cb572edace78b --- /dev/null +++ b/data/blenderbench/level3/attribute8/start.py @@ -0,0 +1,54 @@ +import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects["Camera1"].location = (0.2645, 0.2215, -2.9188) +bpy.data.objects["Camera1"].rotation_euler = (-0.0698, 2.4260, 0.0000) + +# a set of helper functions that you can use +# 1) move_to: move the object to location +# 2) move_by: move the object by the vector of change + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) + +def move_to(obj, location): + """ Set the object location. + """ + obj.location = location + bpy.context.view_layer.update() + return obj + +def move_by(obj, vector): + """ Shift the object location by a 3D vector + """ + obj.location[0] += vector[0] + obj.location[1] += vector[1] + obj.location[2] += vector[2] + bpy.context.view_layer.update() + return obj + +# These are movable objects. +# with open('log.txt', 'w') as f: +# f.write(bpy.data.objects) + +cabinet = bpy.data.objects['Cabinet'] +plant = bpy.data.objects['Plant'] +mirror = bpy.data.objects['Mirror'] +sink = bpy.data.objects['Sink'] +toilet = bpy.data.objects['Toilet'] + +# These are the current locations of the movable objects +cabinet.location = (2.4661, 14.201, 0.1277) +plant.location = (3.2168, 14.327, 0.57311) +mirror.location = (0.1374, 13.5573, 1.3960) +sink.location = (1.7123, 12.7161, 0.8306) +toilet.location = (1.9395, 14.5101, 0.4867) + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) diff --git a/data/blenderbench/level3/attribute8/task.txt b/data/blenderbench/level3/attribute8/task.txt new file mode 100644 index 0000000000000000000000000000000000000000..20dc920fca0ea87f55f7a39e4be480283ca1b6e3 --- /dev/null +++ b/data/blenderbench/level3/attribute8/task.txt @@ -0,0 +1 @@ +First move the cabinet to the correct position, then move the plant to the correct position. You need to move the cabinet to observe the plant in the mirror. You need to adjust the camera angle so that you can see the object you want to modify. \ No newline at end of file diff --git a/data/blenderbench/level3/attribute9/blender_file.blend b/data/blenderbench/level3/attribute9/blender_file.blend new file mode 100644 index 0000000000000000000000000000000000000000..05fcbfc615f12ce6600305c52710ec2d70080a5b --- /dev/null +++ b/data/blenderbench/level3/attribute9/blender_file.blend @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f49ef4d8b76eddfe71f73646d92ab3f7e6aa791580b5c7b093335f831386863c +size 768637773 diff --git a/data/blenderbench/level3/attribute9/goal.py b/data/blenderbench/level3/attribute9/goal.py new file mode 100644 index 0000000000000000000000000000000000000000..818a8e73f9162f8e4eeb04612455395a96d494f4 --- /dev/null +++ b/data/blenderbench/level3/attribute9/goal.py @@ -0,0 +1,58 @@ +import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects["Camera1"].location = (-2.0000, 0.0000, 0.4400) +bpy.data.objects["Camera1"].rotation_euler = (-0.1396, 5.7945, 0.0000) + +# a set of helper functions that you can use +# 1) move_to: move the object to location +# 2) move_by: move the object by the vector of change + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) + +def move_to(obj, location): + """ Set the object location. + """ + obj.location = location + bpy.context.view_layer.update() + return obj + +def move_by(obj, vector): + """ Shift the object location by a 3D vector + """ + obj.location[0] += vector[0] + obj.location[1] += vector[1] + obj.location[2] += vector[2] + bpy.context.view_layer.update() + return obj + +# These are movable objects. +# with open('log.txt', 'w') as f: +# f.write(bpy.data.objects) + +cabinet = bpy.data.objects['Cabinet'] +plant = bpy.data.objects['Plant'] +mirror = bpy.data.objects['Mirror'] +sink = bpy.data.objects['Sink'] +toilet = bpy.data.objects['Toilet'] + +# These are the current locations of the movable objects +cabinet.location = (0.55602, 12.284, 0.1277) +plant.location = (3.1586, 15.049, 0.92) +mirror.location = (0.1374, 13.5573, 1.3960) +sink.location = (1.7123, 12.7161, 0.8306) +toilet.location = (1.9395, 12.5101, 0.4867) + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) +# # 旋转角度:-89.9, 1.38, 0.03,单位是度 +# mirror.rotation_euler = (math.radians(-89.9), math.radians(1.38), math.radians(0.03)) +# mirror.scale = (1.848, 1.848, 1.848) + diff --git a/data/blenderbench/level3/attribute9/renders/goal/render1.png b/data/blenderbench/level3/attribute9/renders/goal/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..5baa5bd208c5f160405d1fa96895eddd9ea9887d --- /dev/null +++ b/data/blenderbench/level3/attribute9/renders/goal/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:27653bfcb7c78fe51239c3905060ce112e65c8875966b2d81f3d0ae33fa322ee +size 496540 diff --git a/data/blenderbench/level3/attribute9/renders/start/render1.png b/data/blenderbench/level3/attribute9/renders/start/render1.png new file mode 100644 index 0000000000000000000000000000000000000000..e8c2fc3ffa27ef322ec44403fe13a40d0aa1219a --- /dev/null +++ b/data/blenderbench/level3/attribute9/renders/start/render1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:354864ce612a888b2aefdfd5cb12798f98f2f4c0201d47c8da8f37fec3ef6e5a +size 489502 diff --git a/data/blenderbench/level3/attribute9/start.py b/data/blenderbench/level3/attribute9/start.py new file mode 100644 index 0000000000000000000000000000000000000000..94fe4672c7fe453266a24537cfd7e0df0556ce1f --- /dev/null +++ b/data/blenderbench/level3/attribute9/start.py @@ -0,0 +1,54 @@ +import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects["Camera1"].location = (0.2645, 0.2215, -2.9188) +bpy.data.objects["Camera1"].rotation_euler = (-0.0698, 2.4260, 0.0000) + +# a set of helper functions that you can use +# 1) move_to: move the object to location +# 2) move_by: move the object by the vector of change + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) + +def move_to(obj, location): + """ Set the object location. + """ + obj.location = location + bpy.context.view_layer.update() + return obj + +def move_by(obj, vector): + """ Shift the object location by a 3D vector + """ + obj.location[0] += vector[0] + obj.location[1] += vector[1] + obj.location[2] += vector[2] + bpy.context.view_layer.update() + return obj + +# These are movable objects. +# with open('log.txt', 'w') as f: +# f.write(bpy.data.objects) + +cabinet = bpy.data.objects['Cabinet'] +plant = bpy.data.objects['Plant'] +mirror = bpy.data.objects['Mirror'] +sink = bpy.data.objects['Sink'] +toilet = bpy.data.objects['Toilet'] + +# These are the current locations of the movable objects +cabinet.location = (2.4661, 14.201, 0.1277) +plant.location = (3.2168, 14.327, 0.57311) +mirror.location = (0.1374, 13.5573, 1.3960) +sink.location = (1.7123, 14.7161, 0.8306) +toilet.location = (1.9395, 14.5101, 0.4867) + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) diff --git a/data/blenderbench/level3/attribute9/task.txt b/data/blenderbench/level3/attribute9/task.txt new file mode 100644 index 0000000000000000000000000000000000000000..20dc920fca0ea87f55f7a39e4be480283ca1b6e3 --- /dev/null +++ b/data/blenderbench/level3/attribute9/task.txt @@ -0,0 +1 @@ +First move the cabinet to the correct position, then move the plant to the correct position. You need to move the cabinet to observe the plant in the mirror. You need to adjust the camera angle so that you can see the object you want to modify. \ No newline at end of file diff --git a/data/blenderbench/level3/pipeline_render_script.py b/data/blenderbench/level3/pipeline_render_script.py new file mode 100644 index 0000000000000000000000000000000000000000..59e8b1096fc1213753983504ae67bf83a155e170 --- /dev/null +++ b/data/blenderbench/level3/pipeline_render_script.py @@ -0,0 +1,79 @@ +import bpy +import random +import json +import os +import sys +from sys import platform + +if __name__ == "__main__": + + code_fpath = sys.argv[6] # Path to the code file + rendering_dir = sys.argv[7] # Path to save the rendering from camera1 + if len(sys.argv) > 8: + save_blend = sys.argv[8] # Path to save the blend file + else: + save_blend = None + + # Enable GPU rendering + bpy.context.scene.render.engine = 'CYCLES' + bpy.context.preferences.addons['cycles'].preferences.compute_device_type = 'CUDA' # or 'OPTIX' if your GPU supports it + bpy.context.preferences.addons['cycles'].preferences.get_devices() + + # Check and select the GPUs + for device in bpy.context.preferences.addons['cycles'].preferences.devices: + if device.type == 'GPU' and not device.use: + device.use = True + + # Set the rendering device to GPU + bpy.context.scene.cycles.device = 'GPU' + + # Setting up rendering resolution + bpy.context.scene.render.resolution_x = 512 + bpy.context.scene.render.resolution_y = 512 + + # Set max samples to 1024 + bpy.context.scene.cycles.samples = 512 + + # Set color mode to RGB + bpy.context.scene.render.image_settings.color_mode = 'RGB' + + # Read and execute the code from the specified file + with open(code_fpath, "r") as f: + code = f.read() + try: + exec(code) + except: + raise ValueError + + # Render from camera1 + if 'Camera1' in bpy.data.objects: + bpy.context.scene.camera = bpy.data.objects['Camera1'] + bpy.context.scene.render.image_settings.file_format = 'PNG' + bpy.context.scene.render.filepath = os.path.join(rendering_dir, 'render1.png') + bpy.ops.render.render(write_still=True) + + print(f'Camera1 location: {bpy.data.objects["Camera1"].location}') + print(f'Camera1 rotation: {bpy.data.objects["Camera1"].rotation_euler}') + print(f'Camera1 lens: {bpy.data.objects["Camera1"].data.lens}') + + print(f"Camera2 location: {bpy.data.objects['Camera2'].location}") + print(f"Camera2 rotation: {bpy.data.objects['Camera2'].rotation_euler}") + print(f"Camera2 lens: {bpy.data.objects['Camera2'].data.lens}") + + if 'Camera3' in bpy.data.objects: + print(f"Camera3 location: {bpy.data.objects['Camera3'].location}") + print(f"Camera3 rotation: {bpy.data.objects['Camera3'].rotation_euler}") + + # Render from camera2 (not used in hard tasks) + # if 'Camera2' in bpy.data.objects: + # bpy.context.scene.camera = bpy.data.objects['Camera2'] + # bpy.context.scene.render.image_settings.file_format = 'PNG' + # bpy.context.scene.render.filepath = os.path.join(rendering_dir, 'render2.png') + # bpy.ops.render.render(write_still=True) + + # Save the blend file + if save_blend: + # Set the save version to 0 + bpy.context.preferences.filepaths.save_version = 0 + # Save the blend file + bpy.ops.wm.save_as_mainfile(filepath=save_blend) \ No newline at end of file diff --git a/metadata.csv b/metadata.csv new file mode 100644 index 0000000000000000000000000000000000000000..8a4f2f5e99b45db1c9e2c4486280760c674fb24b --- /dev/null +++ b/metadata.csv @@ -0,0 +1,1352 @@ +instance_id,level,instance_name,task_description,start_code,goal_code,start_render,goal_render,blend_file_path,blend_file_size_mb +level3/attribute9,level3,attribute9,"First move the cabinet to the correct position, then move the plant to the correct position. You need to move the cabinet to observe the plant in the mirror. You need to adjust the camera angle so that you can see the object you want to modify.","import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects[""Camera1""].location = (0.2645, 0.2215, -2.9188) +bpy.data.objects[""Camera1""].rotation_euler = (-0.0698, 2.4260, 0.0000) + +# a set of helper functions that you can use +# 1) move_to: move the object to location +# 2) move_by: move the object by the vector of change + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) + +def move_to(obj, location): + """""" Set the object location. + """""" + obj.location = location + bpy.context.view_layer.update() + return obj + +def move_by(obj, vector): + """""" Shift the object location by a 3D vector + """""" + obj.location[0] += vector[0] + obj.location[1] += vector[1] + obj.location[2] += vector[2] + bpy.context.view_layer.update() + return obj + +# These are movable objects. +# with open('log.txt', 'w') as f: +# f.write(bpy.data.objects) + +cabinet = bpy.data.objects['Cabinet'] +plant = bpy.data.objects['Plant'] +mirror = bpy.data.objects['Mirror'] +sink = bpy.data.objects['Sink'] +toilet = bpy.data.objects['Toilet'] + +# These are the current locations of the movable objects +cabinet.location = (2.4661, 14.201, 0.1277) +plant.location = (3.2168, 14.327, 0.57311) +mirror.location = (0.1374, 13.5573, 1.3960) +sink.location = (1.7123, 14.7161, 0.8306) +toilet.location = (1.9395, 14.5101, 0.4867) + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3)","import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects[""Camera1""].location = (-2.0000, 0.0000, 0.4400) +bpy.data.objects[""Camera1""].rotation_euler = (-0.1396, 5.7945, 0.0000) + +# a set of helper functions that you can use +# 1) move_to: move the object to location +# 2) move_by: move the object by the vector of change + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) + +def move_to(obj, location): + """""" Set the object location. + """""" + obj.location = location + bpy.context.view_layer.update() + return obj + +def move_by(obj, vector): + """""" Shift the object location by a 3D vector + """""" + obj.location[0] += vector[0] + obj.location[1] += vector[1] + obj.location[2] += vector[2] + bpy.context.view_layer.update() + return obj + +# These are movable objects. +# with open('log.txt', 'w') as f: +# f.write(bpy.data.objects) + +cabinet = bpy.data.objects['Cabinet'] +plant = bpy.data.objects['Plant'] +mirror = bpy.data.objects['Mirror'] +sink = bpy.data.objects['Sink'] +toilet = bpy.data.objects['Toilet'] + +# These are the current locations of the movable objects +cabinet.location = (0.55602, 12.284, 0.1277) +plant.location = (3.1586, 15.049, 0.92) +mirror.location = (0.1374, 13.5573, 1.3960) +sink.location = (1.7123, 12.7161, 0.8306) +toilet.location = (1.9395, 12.5101, 0.4867) + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) +# # 旋转角度:-89.9, 1.38, 0.03,单位是度 +# mirror.rotation_euler = (math.radians(-89.9), math.radians(1.38), math.radians(0.03)) +# mirror.scale = (1.848, 1.848, 1.848)",data/blenderbench/level3/attribute9/renders/start/render1.png,data/blenderbench/level3/attribute9/renders/goal/render1.png,data/blenderbench/level3/attribute9/blender_file.blend,733.03 +level3/attribute8,level3,attribute8,"First move the cabinet to the correct position, then move the plant to the correct position. You need to move the cabinet to observe the plant in the mirror. You need to adjust the camera angle so that you can see the object you want to modify.","import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects[""Camera1""].location = (0.2645, 0.2215, -2.9188) +bpy.data.objects[""Camera1""].rotation_euler = (-0.0698, 2.4260, 0.0000) + +# a set of helper functions that you can use +# 1) move_to: move the object to location +# 2) move_by: move the object by the vector of change + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) + +def move_to(obj, location): + """""" Set the object location. + """""" + obj.location = location + bpy.context.view_layer.update() + return obj + +def move_by(obj, vector): + """""" Shift the object location by a 3D vector + """""" + obj.location[0] += vector[0] + obj.location[1] += vector[1] + obj.location[2] += vector[2] + bpy.context.view_layer.update() + return obj + +# These are movable objects. +# with open('log.txt', 'w') as f: +# f.write(bpy.data.objects) + +cabinet = bpy.data.objects['Cabinet'] +plant = bpy.data.objects['Plant'] +mirror = bpy.data.objects['Mirror'] +sink = bpy.data.objects['Sink'] +toilet = bpy.data.objects['Toilet'] + +# These are the current locations of the movable objects +cabinet.location = (2.4661, 14.201, 0.1277) +plant.location = (3.2168, 14.327, 0.57311) +mirror.location = (0.1374, 13.5573, 1.3960) +sink.location = (1.7123, 12.7161, 0.8306) +toilet.location = (1.9395, 14.5101, 0.4867) + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3)","import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects[""Camera1""].location = (-2.0000, 0.0000, 0.4400) +bpy.data.objects[""Camera1""].rotation_euler = (-0.1396, 5.7945, 0.0000) + +# a set of helper functions that you can use +# 1) move_to: move the object to location +# 2) move_by: move the object by the vector of change + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) + +def move_to(obj, location): + """""" Set the object location. + """""" + obj.location = location + bpy.context.view_layer.update() + return obj + +def move_by(obj, vector): + """""" Shift the object location by a 3D vector + """""" + obj.location[0] += vector[0] + obj.location[1] += vector[1] + obj.location[2] += vector[2] + bpy.context.view_layer.update() + return obj + +# These are movable objects. +# with open('log.txt', 'w') as f: +# f.write(bpy.data.objects) + +cabinet = bpy.data.objects['Cabinet'] +plant = bpy.data.objects['Plant'] +mirror = bpy.data.objects['Mirror'] +sink = bpy.data.objects['Sink'] +toilet = bpy.data.objects['Toilet'] + +# These are the current locations of the movable objects +cabinet.location = (0.55602, 12.284, 0.1277) +plant.location = (3.1586, 15.049, 0.92) +mirror.location = (0.1374, 13.5573, 1.3960) +sink.location = (1.7123, 12.7161, 0.8306) +toilet.location = (1.9395, 12.5101, 0.4867) + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) +# # 旋转角度:-89.9, 1.38, 0.03,单位是度 +# mirror.rotation_euler = (math.radians(-89.9), math.radians(1.38), math.radians(0.03)) +# mirror.scale = (1.848, 1.848, 1.848)",data/blenderbench/level3/attribute8/renders/start/render1.png,data/blenderbench/level3/attribute8/renders/goal/render1.png,data/blenderbench/level3/attribute8/blender_file.blend,733.03 +level3/attribute7,level3,attribute7,"First move the cabinet to the correct position, then move the plant to the correct position. You need to move the cabinet to observe the plant in the mirror. You need to adjust the camera angle so that you can see the object you want to modify.","import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects[""Camera1""].location = (0.2645, 0.2215, -2.9188) +bpy.data.objects[""Camera1""].rotation_euler = (-0.0698, 2.4260, 0.0000) + +# a set of helper functions that you can use +# 1) move_to: move the object to location +# 2) move_by: move the object by the vector of change + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) + +def move_to(obj, location): + """""" Set the object location. + """""" + obj.location = location + bpy.context.view_layer.update() + return obj + +def move_by(obj, vector): + """""" Shift the object location by a 3D vector + """""" + obj.location[0] += vector[0] + obj.location[1] += vector[1] + obj.location[2] += vector[2] + bpy.context.view_layer.update() + return obj + +# These are movable objects. +# with open('log.txt', 'w') as f: +# f.write(bpy.data.objects) + +cabinet = bpy.data.objects['Cabinet'] +plant = bpy.data.objects['Plant'] +mirror = bpy.data.objects['Mirror'] +sink = bpy.data.objects['Sink'] +toilet = bpy.data.objects['Toilet'] + +# These are the current locations of the movable objects +cabinet.location = (2.4661, 14.201, 0.1277) +plant.location = (3.2168, 14.327, 0.57311) +mirror.location = (0.1374, 13.5573, 1.3960) +sink.location = (1.7123, 12.7161, 0.8306) +toilet.location = (1.9395, 12.5101, 0.4867) + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3)","import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects[""Camera1""].location = (-2.0000, 0.0000, 0.4400) +bpy.data.objects[""Camera1""].rotation_euler = (-0.1396, 5.7945, 0.0000) + +# a set of helper functions that you can use +# 1) move_to: move the object to location +# 2) move_by: move the object by the vector of change + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) + +def move_to(obj, location): + """""" Set the object location. + """""" + obj.location = location + bpy.context.view_layer.update() + return obj + +def move_by(obj, vector): + """""" Shift the object location by a 3D vector + """""" + obj.location[0] += vector[0] + obj.location[1] += vector[1] + obj.location[2] += vector[2] + bpy.context.view_layer.update() + return obj + +# These are movable objects. +# with open('log.txt', 'w') as f: +# f.write(bpy.data.objects) + +cabinet = bpy.data.objects['Cabinet'] +plant = bpy.data.objects['Plant'] +mirror = bpy.data.objects['Mirror'] +sink = bpy.data.objects['Sink'] +toilet = bpy.data.objects['Toilet'] + +# These are the current locations of the movable objects +cabinet.location = (0.55602, 12.284, 0.1277) +plant.location = (3.1586, 15.049, 0.92) +mirror.location = (0.1374, 13.5573, 1.3960) +sink.location = (1.7123, 12.7161, 0.8306) +toilet.location = (1.9395, 12.5101, 0.4867) + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) +# # 旋转角度:-89.9, 1.38, 0.03,单位是度 +# mirror.rotation_euler = (math.radians(-89.9), math.radians(1.38), math.radians(0.03)) +# mirror.scale = (1.848, 1.848, 1.848)",data/blenderbench/level3/attribute7/renders/start/render1.png,data/blenderbench/level3/attribute7/renders/goal/render1.png,data/blenderbench/level3/attribute7/blender_file.blend,730.83 +level3/attribute6,level3,attribute6,"First adjust the brightness of the room, then adjust the position of the basketball so that it looks the same as the target image. You need to adjust the camera angle so that you can see the object you want to modify.","import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects[""Camera1""].location = (-1.1222, -0.3259, 4.4354) +bpy.data.objects[""Camera1""].rotation_euler = (-0.0873, 0.5934, 0.2094) + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +lamp_on_the_cupboard.data.energy = 2.5 +lamp_on_shelf.data.energy = 57 +light_on_ceilling.data.energy = 0 + +lamp_on_the_cupboard.data.color = (1, 0.85, 0) +lamp_on_shelf.data.color = (0.2, 0.6, 1) +light_on_ceilling.data.color = (1, 0.95, 0.6) + +# The basketball location (Object name: 'basketball') +basketball = bpy.data.objects['basketball'] +basketball.location = (13.9023, 3.0485, 0.1584)","import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects[""Camera1""].location = (1.1400, 0.8500, 0.5300) +bpy.data.objects[""Camera1""].rotation_euler = (2.4435, 1.1170, 2.6354) + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 200 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The basketball location +basketball = bpy.data.objects['basketball'] +basketball.location = (13.4023, 2.7485, 0.6584) +# basketball.location = (13.4023, 3.7485, 0.1584)",data/blenderbench/level3/attribute6/renders/start/render1.png,data/blenderbench/level3/attribute6/renders/goal/render1.png,data/blenderbench/level3/attribute6/blender_file.blend,903.46 +level3/attribute5,level3,attribute5,"First adjust the brightness of the room, then adjust the position of the basketball so that it looks the same as the target image. You need to adjust the camera angle so that you can see the object you want to modify.","import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects[""Camera1""].location = (-1.1222, -0.3259, 4.4354) +bpy.data.objects[""Camera1""].rotation_euler = (-0.0873, 0.5934, 0.2094) + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +lamp_on_the_cupboard.data.energy = 0.5 +lamp_on_shelf.data.energy = 2.5 +light_on_ceilling.data.energy = 400 + +lamp_on_the_cupboard.data.color = (0.8, 0.9, 1) +lamp_on_shelf.data.color = (0.5, 0.7, 1) +light_on_ceilling.data.color = (1, 0, 0) + +# The basketball location (Object name: 'basketball') +basketball = bpy.data.objects['basketball'] +basketball.location = (14.4023, 2.7485, 0.1584)","import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects[""Camera1""].location = (1.1400, 0.8500, 0.5300) +bpy.data.objects[""Camera1""].rotation_euler = (2.4435, 1.1170, 2.6354) + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 200 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The basketball location +basketball = bpy.data.objects['basketball'] +basketball.location = (13.4023, 2.7485, 0.6584) +# basketball.location = (13.4023, 3.7485, 0.1584)",data/blenderbench/level3/attribute5/renders/start/render1.png,data/blenderbench/level3/attribute5/renders/goal/render1.png,data/blenderbench/level3/attribute5/blender_file.blend,903.46 +level3/attribute4,level3,attribute4,"First adjust the brightness of the room, then adjust the position of the basketball so that it looks the same as the target image. You need to adjust the camera angle so that you can see the object you want to modify.","import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects[""Camera1""].location = (-1.1222, -0.3259, 4.4354) +bpy.data.objects[""Camera1""].rotation_euler = (-0.0873, 0.5934, 0.2094) + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 0 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The basketball location (Object name: 'basketball') +basketball = bpy.data.objects['basketball'] +basketball.location = (13.4023, 3.7485, 0.1584)","import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects[""Camera1""].location = (1.1400, 0.8500, 0.5300) +bpy.data.objects[""Camera1""].rotation_euler = (2.4435, 1.1170, 2.6354) + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 200 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The basketball location +basketball = bpy.data.objects['basketball'] +basketball.location = (13.4023, 2.7485, 0.6584) +# basketball.location = (13.4023, 3.7485, 0.1584)",data/blenderbench/level3/attribute4/renders/start/render1.png,data/blenderbench/level3/attribute4/renders/goal/render1.png,data/blenderbench/level3/attribute4/blender_file.blend,1049.1 +level3/attribute3,level3,attribute3,"First adjust the room brightness, then adjust the size of the character's belly so that it looks like the target image. You need to adjust the camera angle so that you can see the object you want to modify.","import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects[""Camera1""].location = (-1.1222, -0.3259, 4.4354) +bpy.data.objects[""Camera1""].rotation_euler = (-0.0873, 0.5934, 0.2094) + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +lamp_on_the_cupboard.data.energy = 2.5 +lamp_on_shelf.data.energy = 57 +light_on_ceilling.data.energy = 0 + +lamp_on_the_cupboard.data.color = (1, 0.85, 0) +lamp_on_shelf.data.color = (0.2, 0.6, 1) +light_on_ceilling.data.color = (1, 0.95, 0.6) + +# The key of stylized fat character (Object name: 'Stylized Fat Character') +bpy.data.shape_keys[""Key""].key_blocks[""BellySag""].value = 5 +bpy.data.shape_keys[""Key""].key_blocks[""BellyShrink""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ShoulderWideness""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""BackTaper""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ChestEnlarge""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ChestArea""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""MoreChin""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""Abs""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""eyelids""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""nose""].value = 0","import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects[""Camera1""].location = (1.1400, 0.8500, 0.5300) +bpy.data.objects[""Camera1""].rotation_euler = (2.4435, 1.1170, 2.6354) + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 200 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The key of stylized fat character +bpy.data.shape_keys[""Key""].key_blocks[""BellySag""].value = 5 +bpy.data.shape_keys[""Key""].key_blocks[""BellyShrink""].value = 3 +bpy.data.shape_keys[""Key""].key_blocks[""ShoulderWideness""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""BackTaper""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ChestEnlarge""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ChestArea""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""MoreChin""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""Abs""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""eyelids""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""nose""].value = 0",data/blenderbench/level3/attribute3/renders/start/render1.png,data/blenderbench/level3/attribute3/renders/goal/render1.png,data/blenderbench/level3/attribute3/blender_file.blend,1052.87 +level3/attribute2,level3,attribute2,"First adjust the room brightness, then adjust the size of the character's belly so that it looks like the target image. You need to adjust the camera angle so that you can see the object you want to modify.","import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects[""Camera1""].location = (-1.1222, -0.3259, 4.4354) +bpy.data.objects[""Camera1""].rotation_euler = (-0.0873, 0.5934, 0.2094) + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +lamp_on_the_cupboard.data.energy = 0.5 +lamp_on_shelf.data.energy = 2.5 +light_on_ceilling.data.energy = 400 + +lamp_on_the_cupboard.data.color = (0.8, 0.9, 1) +lamp_on_shelf.data.color = (0.5, 0.7, 1) +light_on_ceilling.data.color = (1, 0, 0) + +# The key of stylized fat character (Object name: 'Stylized Fat Character') +bpy.data.shape_keys[""Key""].key_blocks[""BellySag""].value = 5 +bpy.data.shape_keys[""Key""].key_blocks[""BellyShrink""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ShoulderWideness""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""BackTaper""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ChestEnlarge""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ChestArea""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""MoreChin""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""Abs""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""eyelids""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""nose""].value = 0","import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects[""Camera1""].location = (1.1400, 0.8500, 0.5300) +bpy.data.objects[""Camera1""].rotation_euler = (2.4435, 1.1170, 2.6354) + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 200 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The key of stylized fat character +bpy.data.shape_keys[""Key""].key_blocks[""BellySag""].value = 5 +bpy.data.shape_keys[""Key""].key_blocks[""BellyShrink""].value = 3 +bpy.data.shape_keys[""Key""].key_blocks[""ShoulderWideness""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""BackTaper""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ChestEnlarge""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ChestArea""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""MoreChin""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""Abs""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""eyelids""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""nose""].value = 0",data/blenderbench/level3/attribute2/renders/start/render1.png,data/blenderbench/level3/attribute2/renders/goal/render1.png,data/blenderbench/level3/attribute2/blender_file.blend,1052.87 +level3/attribute1,level3,attribute1,"First adjust the room brightness, then adjust the size of the character's belly so that it looks like the target image. You need to adjust the camera angle so that you can see the object you want to modify.","import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects[""Camera1""].location = (-1.1222, -0.3259, 4.4354) +bpy.data.objects[""Camera1""].rotation_euler = (-0.0873, 0.5934, 0.2094) + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 0 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The key of stylized fat character (Object name: 'Stylized Fat Character') +bpy.data.shape_keys[""Key""].key_blocks[""BellySag""].value = 5 +bpy.data.shape_keys[""Key""].key_blocks[""BellyShrink""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ShoulderWideness""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""BackTaper""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ChestEnlarge""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ChestArea""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""MoreChin""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""Abs""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""eyelids""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""nose""].value = 0","import bpy +import math +import numpy as np + +# Adjust the camera pose to align with the target image +bpy.data.objects[""Camera1""].location = (1.1400, 0.8500, 0.5300) +bpy.data.objects[""Camera1""].rotation_euler = (2.4435, 1.1170, 2.6354) + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 200 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The key of stylized fat character +bpy.data.shape_keys[""Key""].key_blocks[""BellySag""].value = 5 +bpy.data.shape_keys[""Key""].key_blocks[""BellyShrink""].value = 3 +bpy.data.shape_keys[""Key""].key_blocks[""ShoulderWideness""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""BackTaper""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ChestEnlarge""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ChestArea""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""MoreChin""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""Abs""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""eyelids""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""nose""].value = 0",data/blenderbench/level3/attribute1/renders/start/render1.png,data/blenderbench/level3/attribute1/renders/goal/render1.png,data/blenderbench/level3/attribute1/blender_file.blend,1052.17 +level2/attribute9,level2,attribute9,"First move the cabinet to the correct position, then move the plant to the correct position. You need to move the cabinet to observe the plant in the mirror.","import bpy +import math +import numpy as np + +# a set of helper functions that you can use +# 1) move_to: move the object to location +# 2) move_by: move the object by the vector of change + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) + +def move_to(obj, location): + """""" Set the object location. + """""" + obj.location = location + bpy.context.view_layer.update() + return obj + +def move_by(obj, vector): + """""" Shift the object location by a 3D vector + """""" + obj.location[0] += vector[0] + obj.location[1] += vector[1] + obj.location[2] += vector[2] + bpy.context.view_layer.update() + return obj + +# These are movable objects. +# with open('log.txt', 'w') as f: +# f.write(bpy.data.objects) + +cabinet = bpy.data.objects['Cabinet'] +plant = bpy.data.objects['Plant'] +mirror = bpy.data.objects['Mirror'] +sink = bpy.data.objects['Sink'] +toilet = bpy.data.objects['Toilet'] + +# These are the current locations of the movable objects +cabinet.location = (2.4661, 14.201, 0.1277) +plant.location = (3.2168, 14.327, 0.57311) +mirror.location = (0.1374, 13.5573, 1.3960) +sink.location = (1.7123, 14.7161, 0.8306) +toilet.location = (1.9395, 14.5101, 0.4867) + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3)","import bpy +import math +import numpy as np + +# a set of helper functions that you can use +# 1) move_to: move the object to location +# 2) move_by: move the object by the vector of change + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) + +def move_to(obj, location): + """""" Set the object location. + """""" + obj.location = location + bpy.context.view_layer.update() + return obj + +def move_by(obj, vector): + """""" Shift the object location by a 3D vector + """""" + obj.location[0] += vector[0] + obj.location[1] += vector[1] + obj.location[2] += vector[2] + bpy.context.view_layer.update() + return obj + +# These are movable objects. +# with open('log.txt', 'w') as f: +# f.write(bpy.data.objects) + +cabinet = bpy.data.objects['Cabinet'] +plant = bpy.data.objects['Plant'] +mirror = bpy.data.objects['Mirror'] +sink = bpy.data.objects['Sink'] +toilet = bpy.data.objects['Toilet'] + +# These are the current locations of the movable objects +cabinet.location = (0.55602, 12.284, 0.1277) +plant.location = (3.1586, 15.049, 0.92) +mirror.location = (0.1374, 13.5573, 1.3960) +sink.location = (1.7123, 12.7161, 0.8306) +toilet.location = (1.9395, 12.5101, 0.4867) + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) +# # 旋转角度:-89.9, 1.38, 0.03,单位是度 +# mirror.rotation_euler = (math.radians(-89.9), math.radians(1.38), math.radians(0.03)) +# mirror.scale = (1.848, 1.848, 1.848)",data/blenderbench/level2/attribute9/renders/start/render1.png,data/blenderbench/level2/attribute9/renders/goal/render1.png,data/blenderbench/level2/attribute9/blender_file.blend,733.03 +level2/attribute8,level2,attribute8,"First move the cabinet to the correct position, then move the plant to the correct position. You need to move the cabinet to observe the plant in the mirror.","import bpy +import math +import numpy as np + +# a set of helper functions that you can use +# 1) move_to: move the object to location +# 2) move_by: move the object by the vector of change + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) + +def move_to(obj, location): + """""" Set the object location. + """""" + obj.location = location + bpy.context.view_layer.update() + return obj + +def move_by(obj, vector): + """""" Shift the object location by a 3D vector + """""" + obj.location[0] += vector[0] + obj.location[1] += vector[1] + obj.location[2] += vector[2] + bpy.context.view_layer.update() + return obj + +# These are movable objects. +# with open('log.txt', 'w') as f: +# f.write(bpy.data.objects) + +cabinet = bpy.data.objects['Cabinet'] +plant = bpy.data.objects['Plant'] +mirror = bpy.data.objects['Mirror'] +sink = bpy.data.objects['Sink'] +toilet = bpy.data.objects['Toilet'] + +# These are the current locations of the movable objects +cabinet.location = (2.4661, 14.201, 0.1277) +plant.location = (3.2168, 14.327, 0.57311) +mirror.location = (0.1374, 13.5573, 1.3960) +sink.location = (1.7123, 12.7161, 0.8306) +toilet.location = (1.9395, 14.5101, 0.4867) + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3)","import bpy +import math +import numpy as np + +# a set of helper functions that you can use +# 1) move_to: move the object to location +# 2) move_by: move the object by the vector of change + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) + +def move_to(obj, location): + """""" Set the object location. + """""" + obj.location = location + bpy.context.view_layer.update() + return obj + +def move_by(obj, vector): + """""" Shift the object location by a 3D vector + """""" + obj.location[0] += vector[0] + obj.location[1] += vector[1] + obj.location[2] += vector[2] + bpy.context.view_layer.update() + return obj + +# These are movable objects. +# with open('log.txt', 'w') as f: +# f.write(bpy.data.objects) + +cabinet = bpy.data.objects['Cabinet'] +plant = bpy.data.objects['Plant'] +mirror = bpy.data.objects['Mirror'] +sink = bpy.data.objects['Sink'] +toilet = bpy.data.objects['Toilet'] + +# These are the current locations of the movable objects +cabinet.location = (0.55602, 12.284, 0.1277) +plant.location = (3.1586, 15.049, 0.92) +mirror.location = (0.1374, 13.5573, 1.3960) +sink.location = (1.7123, 12.7161, 0.8306) +toilet.location = (1.9395, 12.5101, 0.4867) + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) +# # 旋转角度:-89.9, 1.38, 0.03,单位是度 +# mirror.rotation_euler = (math.radians(-89.9), math.radians(1.38), math.radians(0.03)) +# mirror.scale = (1.848, 1.848, 1.848)",data/blenderbench/level2/attribute8/renders/start/render1.png,data/blenderbench/level2/attribute8/renders/goal/render1.png,data/blenderbench/level2/attribute8/blender_file.blend,733.03 +level2/attribute7,level2,attribute7,"First move the cabinet to the correct position, then move the plant to the correct position. You need to move the cabinet to observe the plant in the mirror.","import bpy +import math +import numpy as np + +# a set of helper functions that you can use +# 1) move_to: move the object to location +# 2) move_by: move the object by the vector of change + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) + +def move_to(obj, location): + """""" Set the object location. + """""" + obj.location = location + bpy.context.view_layer.update() + return obj + +def move_by(obj, vector): + """""" Shift the object location by a 3D vector + """""" + obj.location[0] += vector[0] + obj.location[1] += vector[1] + obj.location[2] += vector[2] + bpy.context.view_layer.update() + return obj + +# These are movable objects. +# with open('log.txt', 'w') as f: +# f.write(bpy.data.objects) + +cabinet = bpy.data.objects['Cabinet'] +plant = bpy.data.objects['Plant'] +mirror = bpy.data.objects['Mirror'] +sink = bpy.data.objects['Sink'] +toilet = bpy.data.objects['Toilet'] + +# These are the current locations of the movable objects +cabinet.location = (2.4661, 14.201, 0.1277) +plant.location = (3.2168, 14.327, 0.57311) +mirror.location = (0.1374, 13.5573, 1.3960) +sink.location = (1.7123, 12.7161, 0.8306) +toilet.location = (1.9395, 12.5101, 0.4867) + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3)","import bpy +import math +import numpy as np + +# a set of helper functions that you can use +# 1) move_to: move the object to location +# 2) move_by: move the object by the vector of change + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) + +def move_to(obj, location): + """""" Set the object location. + """""" + obj.location = location + bpy.context.view_layer.update() + return obj + +def move_by(obj, vector): + """""" Shift the object location by a 3D vector + """""" + obj.location[0] += vector[0] + obj.location[1] += vector[1] + obj.location[2] += vector[2] + bpy.context.view_layer.update() + return obj + +# These are movable objects. +# with open('log.txt', 'w') as f: +# f.write(bpy.data.objects) + +cabinet = bpy.data.objects['Cabinet'] +plant = bpy.data.objects['Plant'] +mirror = bpy.data.objects['Mirror'] +sink = bpy.data.objects['Sink'] +toilet = bpy.data.objects['Toilet'] + +# These are the current locations of the movable objects +cabinet.location = (0.55602, 12.284, 0.1277) +plant.location = (3.1586, 15.049, 0.92) +mirror.location = (0.1374, 13.5573, 1.3960) +sink.location = (1.7123, 12.7161, 0.8306) +toilet.location = (1.9395, 12.5101, 0.4867) + +# DO NOT SURPASS the range for the x, y, z coordinates of all objects: +# x: (0.3 , 3) +# y: (12 ,15) +# z: (0, 3) +# # 旋转角度:-89.9, 1.38, 0.03,单位是度 +# mirror.rotation_euler = (math.radians(-89.9), math.radians(1.38), math.radians(0.03)) +# mirror.scale = (1.848, 1.848, 1.848)",data/blenderbench/level2/attribute7/renders/start/render1.png,data/blenderbench/level2/attribute7/renders/goal/render1.png,data/blenderbench/level2/attribute7/blender_file.blend,733.03 +level2/attribute6,level2,attribute6,"First adjust the brightness of the room, then adjust the position of the basketball so that it looks the same as the target image.","import bpy +import math +import numpy as np + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +lamp_on_the_cupboard.data.energy = 2.5 +lamp_on_shelf.data.energy = 57 +light_on_ceilling.data.energy = 0 + +lamp_on_the_cupboard.data.color = (1, 0.85, 0) +lamp_on_shelf.data.color = (0.2, 0.6, 1) +light_on_ceilling.data.color = (1, 0.95, 0.6) + +# The basketball location (Object name: 'basketball') +basketball = bpy.data.objects['basketball'] +basketball.location = (13.9023, 3.0485, 0.1584)","import bpy +import math +import numpy as np + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 200 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The basketball location +basketball = bpy.data.objects['basketball'] +basketball.location = (13.4023, 2.7485, 0.6584) +# basketball.location = (13.4023, 3.7485, 0.1584)",data/blenderbench/level2/attribute6/renders/start/render1.png,data/blenderbench/level2/attribute6/renders/goal/render1.png,data/blenderbench/level2/attribute6/blender_file.blend,903.46 +level2/attribute5,level2,attribute5,"First adjust the brightness of the room, then adjust the position of the basketball so that it looks the same as the target image.","import bpy +import math +import numpy as np + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +lamp_on_the_cupboard.data.energy = 0.5 +lamp_on_shelf.data.energy = 2.5 +light_on_ceilling.data.energy = 400 + +lamp_on_the_cupboard.data.color = (0.8, 0.9, 1) +lamp_on_shelf.data.color = (0.5, 0.7, 1) +light_on_ceilling.data.color = (1, 0, 0) + +# The basketball location (Object name: 'basketball') +basketball = bpy.data.objects['basketball'] +basketball.location = (14.4023, 2.7485, 0.1584)","import bpy +import math +import numpy as np + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 200 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The basketball location +basketball = bpy.data.objects['basketball'] +basketball.location = (13.4023, 2.7485, 0.6584) +# basketball.location = (13.4023, 3.7485, 0.1584)",data/blenderbench/level2/attribute5/renders/start/render1.png,data/blenderbench/level2/attribute5/renders/goal/render1.png,data/blenderbench/level2/attribute5/blender_file.blend,903.46 +level2/attribute4,level2,attribute4,"First adjust the brightness of the room, then adjust the position of the basketball so that it looks the same as the target image.","import bpy +import math +import numpy as np + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 0 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The basketball location (Object name: 'basketball') +basketball = bpy.data.objects['basketball'] +basketball.location = (13.4023, 3.7485, 0.1584)","import bpy +import math +import numpy as np + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 200 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The basketball location +basketball = bpy.data.objects['basketball'] +basketball.location = (13.4023, 2.7485, 0.6584) +# basketball.location = (13.4023, 3.7485, 0.1584)",data/blenderbench/level2/attribute4/renders/start/render1.png,data/blenderbench/level2/attribute4/renders/goal/render1.png,data/blenderbench/level2/attribute4/blender_file.blend,903.46 +level2/attribute3,level2,attribute3,"First adjust the room brightness, then adjust the size of the character's belly so that it looks like the target image.","import bpy +import math +import numpy as np + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +lamp_on_the_cupboard.data.energy = 2.5 +lamp_on_shelf.data.energy = 57 +light_on_ceilling.data.energy = 0 + +lamp_on_the_cupboard.data.color = (1, 0.85, 0) +lamp_on_shelf.data.color = (0.2, 0.6, 1) +light_on_ceilling.data.color = (1, 0.95, 0.6) + +# The key of stylized fat character (Object name: 'Stylized Fat Character') +bpy.data.shape_keys[""Key""].key_blocks[""BellySag""].value = 5 +bpy.data.shape_keys[""Key""].key_blocks[""BellyShrink""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ShoulderWideness""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""BackTaper""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ChestEnlarge""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ChestArea""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""MoreChin""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""Abs""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""eyelids""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""nose""].value = 0","import bpy +import math +import numpy as np + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 200 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The key of stylized fat character +bpy.data.shape_keys[""Key""].key_blocks[""BellySag""].value = 5 +bpy.data.shape_keys[""Key""].key_blocks[""BellyShrink""].value = 3 +bpy.data.shape_keys[""Key""].key_blocks[""ShoulderWideness""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""BackTaper""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ChestEnlarge""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ChestArea""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""MoreChin""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""Abs""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""eyelids""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""nose""].value = 0",data/blenderbench/level2/attribute3/renders/start/render1.png,data/blenderbench/level2/attribute3/renders/goal/render1.png,data/blenderbench/level2/attribute3/blender_file.blend,906.73 +level2/attribute2,level2,attribute2,"First adjust the room brightness, then adjust the size of the character's belly so that it looks like the target image.","import bpy +import math +import numpy as np + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +lamp_on_the_cupboard.data.energy = 0.5 +lamp_on_shelf.data.energy = 2.5 +light_on_ceilling.data.energy = 400 + +lamp_on_the_cupboard.data.color = (0.8, 0.9, 1) +lamp_on_shelf.data.color = (0.5, 0.7, 1) +light_on_ceilling.data.color = (1, 0, 0) + +# The key of stylized fat character (Object name: 'Stylized Fat Character') +bpy.data.shape_keys[""Key""].key_blocks[""BellySag""].value = 5 +bpy.data.shape_keys[""Key""].key_blocks[""BellyShrink""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ShoulderWideness""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""BackTaper""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ChestEnlarge""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ChestArea""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""MoreChin""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""Abs""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""eyelids""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""nose""].value = 0","import bpy +import math +import numpy as np + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 200 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The key of stylized fat character +bpy.data.shape_keys[""Key""].key_blocks[""BellySag""].value = 5 +bpy.data.shape_keys[""Key""].key_blocks[""BellyShrink""].value = 3 +bpy.data.shape_keys[""Key""].key_blocks[""ShoulderWideness""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""BackTaper""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ChestEnlarge""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ChestArea""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""MoreChin""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""Abs""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""eyelids""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""nose""].value = 0",data/blenderbench/level2/attribute2/renders/start/render1.png,data/blenderbench/level2/attribute2/renders/goal/render1.png,data/blenderbench/level2/attribute2/blender_file.blend,906.73 +level2/attribute1,level2,attribute1,"First adjust the room brightness, then adjust the size of the character's belly so that it looks like the target image.","import bpy +import math +import numpy as np + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 0 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The key of stylized fat character (Object name: 'Stylized Fat Character') +bpy.data.shape_keys[""Key""].key_blocks[""BellySag""].value = 5 +bpy.data.shape_keys[""Key""].key_blocks[""BellyShrink""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ShoulderWideness""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""BackTaper""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ChestEnlarge""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ChestArea""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""MoreChin""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""Abs""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""eyelids""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""nose""].value = 0","import bpy +import math +import numpy as np + +# Accessing the light objects +lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard'] +lamp_on_shelf = bpy.data.objects['lamp_on_shelf'] +light_on_ceilling = bpy.data.objects['light_on_ceilling'] + +# Drastically changing energy levels +lamp_on_the_cupboard.data.energy = 1.5 +lamp_on_shelf.data.energy = 1.2 +light_on_ceilling.data.energy = 200 + +# Vibrant and drastic color changes +lamp_on_the_cupboard.data.color = (1, 1, 1) +lamp_on_shelf.data.color = (1, 1, 1) +light_on_ceilling.data.color = (1, 1, 1) + +# The key of stylized fat character +bpy.data.shape_keys[""Key""].key_blocks[""BellySag""].value = 5 +bpy.data.shape_keys[""Key""].key_blocks[""BellyShrink""].value = 3 +bpy.data.shape_keys[""Key""].key_blocks[""ShoulderWideness""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""BackTaper""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ChestEnlarge""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""ChestArea""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""MoreChin""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""Abs""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""eyelids""].value = 0 +bpy.data.shape_keys[""Key""].key_blocks[""nose""].value = 0",data/blenderbench/level2/attribute1/renders/start/render1.png,data/blenderbench/level2/attribute1/renders/goal/render1.png,data/blenderbench/level2/attribute1/blender_file.blend,906.73 +level1/camera9,level1,camera9,Adjust the camera position so that the viewing angle is consistent with the target image,"import bpy + +bpy.data.objects[""Camera1""].location = (0.1104, -2.6639, 9.8843) +bpy.data.objects[""Camera1""].rotation_euler = (0.3142, 0, 0)","import bpy + +bpy.data.objects[""Camera1""].location = (5.9589, -5.6058, 4.0383) +bpy.data.objects[""Camera1""].rotation_euler = (1.2839, 0.0000, 0.8149)",data/blenderbench/level1/camera9/renders/start/render1.png,data/blenderbench/level1/camera9/renders/goal/render1.png,data/blenderbench/level1/camera9/blender_file.blend,3.92 +level1/camera8,level1,camera8,Adjust the camera position so that the viewing angle is consistent with the target image,"import bpy + +bpy.data.objects[""Camera1""].location = (7.3589, -6.9258, 4.9583) +bpy.data.objects[""Camera1""].rotation_euler = (1.2664, 0.0000, 0.7800)","import bpy + +bpy.data.objects[""Camera1""].location = (-4.1656, 0.0020, 3.7237) +bpy.data.objects[""Camera1""].rotation_euler = (1.5708, 0.0000, -1.5708)",data/blenderbench/level1/camera8/renders/start/render1.png,data/blenderbench/level1/camera8/renders/goal/render1.png,data/blenderbench/level1/camera8/blender_file.blend,2.2 +level1/camera7,level1,camera7,Adjust the camera position so that the viewing angle is consistent with the target image,"import bpy + +bpy.data.objects[""Camera1""].location = (1.3353, 1.4740, 1.5357) +bpy.data.objects[""Camera1""].rotation_euler = (-0.7679, 0.2094, 0.0000)","import bpy + +bpy.data.objects[""Camera1""].location = (2.4674, 0.2196, -1.2138) +bpy.data.objects[""Camera1""].rotation_euler = (-0.4014, 2.0071, 0.0000)",data/blenderbench/level1/camera7/renders/start/render1.png,data/blenderbench/level1/camera7/renders/goal/render1.png,data/blenderbench/level1/camera7/blender_file.blend,189.55 +level1/camera6,level1,camera6,Adjust the camera position so that the viewing angle is consistent with the target image,"import bpy + +bpy.data.objects[""Camera1""].location = (2.4689, -2.6258, 1.3083) +bpy.data.objects[""Camera1""].rotation_euler = (1.4060, 0.0000, 0.7626)","import bpy + +bpy.data.objects[""Camera1""].location = (-1.0800, 1.0600, 0.7700) +bpy.data.objects[""Camera1""].rotation_euler = (1.5708, 0.0000, 3.9968)",data/blenderbench/level1/camera6/renders/start/render1.png,data/blenderbench/level1/camera6/renders/goal/render1.png,data/blenderbench/level1/camera6/blender_file.blend,5.45 +level1/camera5,level1,camera5,Adjust the camera position so that the viewing angle is consistent with the target image,"import bpy + +bpy.data.objects[""Camera1""].location = (-1.2250, 0.7100, -2.8300) +bpy.data.objects[""Camera1""].rotation_euler = (-0.4363, 3.3161, 0.0349)","import bpy + +bpy.data.objects[""Camera1""].location = (-3.1800, -0.0500, 2.5700) +bpy.data.objects[""Camera1""].rotation_euler = (0.3491, -0.8029, -0.2269)",data/blenderbench/level1/camera5/renders/start/render1.png,data/blenderbench/level1/camera5/renders/goal/render1.png,data/blenderbench/level1/camera5/blender_file.blend,1042.16 +level1/camera4,level1,camera4,Adjust the camera position so that the viewing angle is consistent with the target image,"import bpy + +bpy.data.objects[""Camera1""].location = (1.1400, 0.8500, 0.5300) +bpy.data.objects[""Camera1""].rotation_euler = (2.4435, 1.1170, 2.6354)","import bpy + +bpy.data.objects[""Camera1""].location = (-1.1222, -0.3259, 4.4354) +bpy.data.objects[""Camera1""].rotation_euler = (-0.0873, 0.5934, 0.2094)",data/blenderbench/level1/camera4/renders/start/render1.png,data/blenderbench/level1/camera4/renders/goal/render1.png,data/blenderbench/level1/camera4/blender_file.blend,1042.09 +level1/camera3,level1,camera3,Adjust the camera position so that the viewing angle is consistent with the target image,"import bpy + +bpy.data.objects[""Camera1""].location = (6.7303, -4.8700, 3.7385) +bpy.data.objects[""Camera1""].rotation_euler = (1.2811, -0.0000, 0.9355) +bpy.data.objects[""Camera1""].data.lens = 50","import bpy + +bpy.data.objects[""Camera1""].location = (-1.6577, -1.7238, 1.9317) +bpy.data.objects[""Camera1""].rotation_euler = (1.4033, -0.0000, 5.6653) +bpy.data.objects[""Camera1""].data.lens = 21",data/blenderbench/level1/camera3/renders/start/render1.png,data/blenderbench/level1/camera3/renders/goal/render1.png,data/blenderbench/level1/camera3/blender_file.blend,18.8 +level1/camera2,level1,camera2,Adjust the camera position so that the viewing angle is consistent with the target image,"import bpy + +bpy.data.objects[""Camera1""].location = (-3.4813, 4.5001, 0.5115) +bpy.data.objects[""Camera1""].rotation_euler = (1.6678, 0.0000, 3.8693)","import bpy + +bpy.data.objects[""Camera1""].location = (3.9689, -4.6158, 2.1883) +bpy.data.objects[""Camera1""].rotation_euler = (1.3188, 0.0000, 0.7800)",data/blenderbench/level1/camera2/renders/start/render1.png,data/blenderbench/level1/camera2/renders/goal/render1.png,data/blenderbench/level1/camera2/blender_file.blend,20.3 +level1/camera1,level1,camera1,Adjust the camera position so that the viewing angle is consistent with the target image,"import bpy + +bpy.data.objects[""Camera1""].location = (1.0765, -1.2848, 1.4343) +bpy.data.objects[""Camera1""].rotation_euler = (1.5701, 0.0000, 0.6753)","import bpy + +bpy.data.objects[""Camera1""].location = (-1.0292, 1.6960, 1.1705) +bpy.data.objects[""Camera1""].rotation_euler = (1.5701, 0.0000, 3.6424)",data/blenderbench/level1/camera1/renders/start/render1.png,data/blenderbench/level1/camera1/renders/goal/render1.png,data/blenderbench/level1/camera1/blender_file.blend,11.39