gulvarol / surreal

Learning from Synthetic Humans, CVPR 2017
http://www.di.ens.fr/willow/research/surreal
Other
587 stars 107 forks source link

Problem in the datageneration #56

Closed elammarin closed 3 years ago

elammarin commented 3 years ago

I have set the variables of run.sh and of the config file correctly and it gives me this error when I run run.sh. I understand that AVERAGE is not part of the enum but I don't know what to replace by especially that AVERAGE isn't and doesn't look like an operation. Can someone gives me a hint ?

Traceback (most recent call last):
  File "/home/pji/surreal/datageneration/main_part1.py", line 826, in <module>
    main()
  File "/home/pji/surreal/datageneration/main_part1.py", line 553, in main
    create_sh_material(mat_tree, sh_dst, cloth_img)
  File "/home/pji/surreal/datageneration/main_part1.py", line 178, in create_sh_material
    uv_xform.operation = 'AVERAGE'
TypeError: bpy_struct: item.attr = val: enum "AVERAGE" not found in ('ADD', 'SUBTRACT', 'MULTIPLY', 'DIVIDE', 'CROSS_PRODUCT', 'PROJECT', 'REFLECT', 'DOT_PRODUCT', 'DISTANCE', 'LENGTH', 'SCALE', 'NORMALIZE', 'SNAP', 'FLOOR', 'CEIL', 'MODULO', 'FRACTION', 'ABSOLUTE', 'MINIMUM', 'MAXIMUM')

Blender quit
gulvarol commented 3 years ago

Thanks for reporting this. Maybe this link can help, i.e., replacing with ADD+NORMALIZE.