clevr-dataset-gen icon indicating copy to clipboard operation
clevr-dataset-gen copied to clipboard

image rendering issue

Open elvesdynam opened this issue 5 years ago • 17 comments

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

elvesdynam avatar Aug 03 '19 05:08 elvesdynam

same problem

ShuangLI59 avatar Dec 03 '19 19:12 ShuangLI59

Same problem, have you identified the reason?

Cuberick-Orion avatar Feb 04 '20 12:02 Cuberick-Orion

I have the same issue :(

rivasd avatar Mar 18 '20 16:03 rivasd

Same issue :(

umang13 avatar May 27 '20 12:05 umang13

Same Issue

akshayk1003 avatar Jul 08 '20 01:07 akshayk1003

+1

oleksost avatar Aug 21 '20 10:08 oleksost

Have the same issue- is the solution known?

ishaanchandratreya avatar Nov 21 '20 14:11 ishaanchandratreya

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

beausievers avatar Jan 28 '21 19:01 beausievers

Same issue.

fYYw avatar Feb 19 '21 15:02 fYYw

same here

CarolineGao avatar Apr 17 '21 07:04 CarolineGao

So what is the solution to fix this error?

CarolineGao avatar Apr 17 '21 07:04 CarolineGao

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.

KelestZ avatar Jan 14 '22 00:01 KelestZ

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

Gitsamshi avatar Jan 18 '22 15:01 Gitsamshi

same

dongzhuoyao avatar Apr 07 '22 15:04 dongzhuoyao

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

pinruiy723 avatar Oct 07 '22 20:10 pinruiy723

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

ikb-a avatar Oct 12 '22 20:10 ikb-a

same

shim94kr avatar Mar 14 '23 03:03 shim94kr