facebookresearch / clevr-dataset-gen

A Diagnostic Dataset for Compositional Language and Elementary Visual Reasoning
Other
577 stars 204 forks source link

image rendering issue #18

Open elvesdynam opened 5 years ago

elvesdynam commented 5 years ago

After I run commands for image generation, the program shows some invalid context and broken margin and stuck as below. Could anybody please show me how to resolve? Thanks environment:OSX10.14.5 blender:2.78c image_generation chen$ blender --background --python render_images.py -- --num_images 10 found bundled python: /Applications/blender.app/Contents/MacOS/../Resources/2.78/python read blend: data/base_scene.blend convertViewVec: called in an invalid context convertViewVec: called in an invalid context 0.21743071058848407 0.4 left BROKEN MARGIN! 0.25797991560249245 0.4 right BROKEN MARGIN! convertViewVec: called in an invalid context convertViewVec: called in an invalid context 0.3010987159059719 0.4 right BROKEN MARGIN! convertViewVec: called in an invalid context convertViewVec: called in an invalid context Fra:1 Mem:13.74M (0.00M, Peak 13.74M) | Time:00:00.00 | Preparing Scene data Fra:1 Mem:20.39M (0.00M, Peak 20.69M) | Time:00:00.00 | Preparing Scene data Fra:1 Mem:20.39M (0.00M, Peak 20.69M) | Time:00:00.00 | Creating Shadowbuffers Fra:1 Mem:20.39M (0.00M, Peak 20.69M) | Time:00:00.00 | Raytree.. preparing Fra:1 Mem:27.20M (0.00M, Peak 27.20M) | Time:00:00.01 | Raytree.. building Fra:1 Mem:26.83M (0.00M, Peak 37.47M) | Time:00:00.09 | Raytree finished Fra:1 Mem:26.83M (0.00M, Peak 37.47M) | Time:00:00.09 | Creating Environment maps Fra:1 Mem:26.83M (0.00M, Peak 37.47M) | Time:00:00.09 | Caching Point Densities Fra:1 Mem:26.83M (0.00M, Peak 37.47M) | Time:00:00.09 | Sce: Scene Ve:45732 Fa:49578 La:1 Fra:1 Mem:26.83M (0.00M, Peak 37.47M) | Time:00:00.09 | Loading voxel datasets Fra:1 Mem:26.83M (0.00M, Peak 37.47M) | Time:00:00.09 | Sce: Scene Ve:45732 Fa:49578 La:1 Fra:1 Mem:26.83M (0.00M, Peak 37.47M) | Time:00:00.09 | Sce: Scene Ve:45732 Fa:49578 La:1 Fra:1 Mem:26.83M (0.00M, Peak 37.47M) | Time:00:00.09 | Volume preprocessing Fra:1 Mem:26.83M (0.00M, Peak 37.47M) | Time:00:00.09 | Sce: Scene Ve:45732 Fa:49578 La:1 Fra:1 Mem:26.83M (0.00M, Peak 37.47M) | Time:00:00.09 | Sce: Scene Ve:45732 Fa:49578 La:1

ShuangLI59 commented 4 years ago

same problem

Cuberick-Orion commented 4 years ago

Same problem, have you identified the reason?

rivasd commented 4 years ago

I have the same issue :(

umang13 commented 4 years ago

Same issue :(

akshayk1003 commented 4 years ago

Same Issue

oleksost commented 3 years ago

+1

ishaanchandratreya commented 3 years ago

Have the same issue- is the solution known?

beausievers commented 3 years ago

I also have this issue. Has anybody figured this out?

fYYw commented 3 years ago

Same issue.

CarolineGao commented 3 years ago

same here

CarolineGao commented 3 years ago

So what is the solution to fix this error?

KelestZ commented 2 years ago

Ditto. I was using a mac with an M1 chip where the old Blender is not supported. Switching to one with an Intel chip works for me.

Gitsamshi commented 2 years ago

Doesn't matter, the performance of the computer is the problem

dongzhuoyao commented 2 years ago

same

pinruiy723 commented 1 year ago

Hi Gitsamshi, did you solve it by changing a better computer?

ikb-a commented 1 year ago

I don't have any problems with the image generation getting stuck, but I did put some time into looking at the sources of the error messages; that may be of some help.

The convertViewVec: called in an invalid context error seems to be the same problem as here; I believe I've fixed that by changing how the object translation is done, specifically by replacing the line below with bpy.context.active_object.location += Vector((x, y, scale)) https://github.com/facebookresearch/clevr-dataset-gen/blob/f0ce2c81750bfae09b5bf94d009f42e055f2cb3a/image_generation/utils.py#L106

The "BROKEN MARGIN" errors can be safely ignored (just comment out the lines below): https://github.com/facebookresearch/clevr-dataset-gen/blob/f0ce2c81750bfae09b5bf94d009f42e055f2cb3a/image_generation/render_images.py#L386-L387

shim94kr commented 1 year ago

same