Amir (Warrior)
User

Projects

User does not belong to any projects.

User Details

User Since
Mar 14 2018, 6:07 AM (6 w, 1 d)

Recent Activity

Thu, Apr 19

Amir (Warrior) added a comment to T54314: Contents of "Viewer Node" image block do not get updated .

@Philipp Oeser (lichtwerk) @Jeroen Bakker (jbakker) Thanks for investigating this more. I also remember at some point when I was accessing the pixels directly through "Viewer Node" image block and stored them on disk. What I realized however was the pixels were sort of rotated. I remember the depth map rendering that I got was shown 90 degrees rotated. So I have a request from you: I would appreciate if you can provide a nice Python API that allows people to easily access the rendering results without having to store the renderings on disk. Maybe bpy.ops.render.render() could take an argument like keepInMemory=True. Then people can access the rendering results through something like renderings = np.array(bpy.ops.render.results). The should also account for having a couple of output nodes. For instance, if in the node editor I have 5 Viewer nodes, renderings should be a 5 x 4 x resolution x resolution tensor.

Thu, Apr 19, 5:41 PM · Python, Nodes, Cycles, BF Blender

Wed, Apr 11

Amir (Warrior) added a comment to T54461: Unable to export/import EXR files after doing `import bpy` and when using the multiprocessing in Python (Blender freezes).

@Brecht Van Lommel (brecht) Just an update: I can get somehow around the forking issue using subprocess and doing one rendering at the time. However, the problem with using subprocess is I have to literally import everything I need from scratch. This makes the rendering much more time-consuming than doing the rendering normally. Sorry if it's too obvious that I'm just trying to convince you to prioritize this :) I hope that happens :)

Wed, Apr 11, 5:24 PM · Python, Nodes, Cycles, BF Blender
Amir (Warrior) added a comment to T54561: Import order matters: segmentation fault if PyTorch is imported before bpy.

This issue on PyTorch GitHub page might be helpful for the developers: https://github.com/pytorch/pytorch/issues/6194

Wed, Apr 11, 4:49 PM · Python, BF Blender
Amir (Warrior) added a comment to T54561: Import order matters: segmentation fault if PyTorch is imported before bpy.
Wed, Apr 11, 4:48 PM · Python, BF Blender

Tue, Apr 10

Amir (Warrior) updated the task description for T54561: Import order matters: segmentation fault if PyTorch is imported before bpy.
Tue, Apr 10, 6:01 PM · Python, BF Blender
Amir (Warrior) created T54561: Import order matters: segmentation fault if PyTorch is imported before bpy.
Tue, Apr 10, 5:59 PM · Python, BF Blender

Wed, Apr 4

Amir (Warrior) added a comment to T54461: Unable to export/import EXR files after doing `import bpy` and when using the multiprocessing in Python (Blender freezes).

@Brecht Van Lommel (brecht) I hope you will prioritize this in the future. Many people like me need to use Blender as a module for their research work. Anyways, I used gdb to get you the back trace after Python freezes. Here's what I get (I had to CTRL+C at the end):

Wed, Apr 4, 5:46 AM · Python, Nodes, Cycles, BF Blender
Amir (Warrior) renamed T54461: Unable to export/import EXR files after doing `import bpy` and when using the multiprocessing in Python (Blender freezes) from Unable to export renderings in OpenEXR when using the multiprocessing in Python (Blender freezes) to Unable to export/import EXR files after doing `import bpy` and when using the multiprocessing in Python (Blender freezes).
Wed, Apr 4, 4:54 AM · Python, Nodes, Cycles, BF Blender
Amir (Warrior) raised the priority of T54461: Unable to export/import EXR files after doing `import bpy` and when using the multiprocessing in Python (Blender freezes) from Incomplete to Needs Triage.
Wed, Apr 4, 4:53 AM · Python, Nodes, Cycles, BF Blender
Amir (Warrior) added a comment to T54461: Unable to export/import EXR files after doing `import bpy` and when using the multiprocessing in Python (Blender freezes).

@Brecht Van Lommel (brecht) I'm not sure if this could be very relevant but I used OpenEXR Python bindings package to do some tests. Here's what I found out: if I have a function that simply loads an exr file and separates its channels into (R, G,B) as shown below and I execute this function via multiprocessing.Process everything works fine. However, when I just do import bpy and execute the same function via multiprocessing.Process things do not work and Python freezes. I would say this is a bug in Blender. Could you please look into this? I would really appreciate it.

Wed, Apr 4, 4:53 AM · Python, Nodes, Cycles, BF Blender

Tue, Apr 3

Amir (Warrior) renamed T54461: Unable to export/import EXR files after doing `import bpy` and when using the multiprocessing in Python (Blender freezes) from Unable to export rendering results in OpenEXR format using Python (Blender freezes) to Unable to export renderings in OpenEXR when using the multiprocessing in Python (Blender freezes).
Tue, Apr 3, 6:13 AM · Python, Nodes, Cycles, BF Blender
Amir (Warrior) added a comment to T54461: Unable to export/import EXR files after doing `import bpy` and when using the multiprocessing in Python (Blender freezes).

@Brecht Van Lommel (brecht) I also posted an issue on OpenEXR's GitHub repo (link here). Hopefully they can also make some clarification from their side.

Tue, Apr 3, 6:09 AM · Python, Nodes, Cycles, BF Blender
Amir (Warrior) added a comment to T54461: Unable to export/import EXR files after doing `import bpy` and when using the multiprocessing in Python (Blender freezes).

@Brecht Van Lommel (brecht) You said it wouldn't surprise you if some parts of Blender of OpenEXr does not work well with forking. So I wonder, which one do you think is more likely to be the case given that I can store my renderings in other formats? Would you think it's more likely that OpenEXR is the one to blame here?

Tue, Apr 3, 5:51 AM · Python, Nodes, Cycles, BF Blender

Mon, Apr 2

Amir (Warrior) added a comment to T54461: Unable to export/import EXR files after doing `import bpy` and when using the multiprocessing in Python (Blender freezes).

@Brecht Van Lommel (brecht) I tried with spawn but I keep getting weird errors and things do not work. It seems that I have to somehow make the process spawnable and I don't know how to do that precisely. I hope you can find a solution for this. It's so annoying for me since I have to millions of renderings and I didn't expect to do it sequentially :(

Mon, Apr 2, 9:00 PM · Python, Nodes, Cycles, BF Blender
Amir (Warrior) updated the task description for T54461: Unable to export/import EXR files after doing `import bpy` and when using the multiprocessing in Python (Blender freezes).
Mon, Apr 2, 5:52 PM · Python, Nodes, Cycles, BF Blender
Amir (Warrior) updated the task description for T54461: Unable to export/import EXR files after doing `import bpy` and when using the multiprocessing in Python (Blender freezes).
Mon, Apr 2, 5:33 PM · Python, Nodes, Cycles, BF Blender
Amir (Warrior) added a comment to T54461: Unable to export/import EXR files after doing `import bpy` and when using the multiprocessing in Python (Blender freezes).

@Brecht Van Lommel (brecht) Sorry for the missing information. I just realized that the problem is being caused if I call the rendering function using multiprocessing.Process and updated the script in my bug report that shows how exactly I do rendering in my project, with all other irrelevant details removed. The strange thing is I can easily render my meshes if I do not want the rendering result to be stored in EXR files. So, if I replace OPEN_EXR with PNG and replace 32 with 8/16 I will definitely get the rendering results stored on disk. This does not happen when trying to store the result in OpenEXR format and I did not know that the multiprocessing package might be causing it. What should I do now? Why I cannot store EXR files when using multiprocessing.Process?

Mon, Apr 2, 5:33 PM · Python, Nodes, Cycles, BF Blender
Amir (Warrior) updated the task description for T54461: Unable to export/import EXR files after doing `import bpy` and when using the multiprocessing in Python (Blender freezes).
Mon, Apr 2, 5:24 PM · Python, Nodes, Cycles, BF Blender
Amir (Warrior) raised the priority of T54461: Unable to export/import EXR files after doing `import bpy` and when using the multiprocessing in Python (Blender freezes) from Incomplete to Needs Triage.
Mon, Apr 2, 3:53 PM · Python, Nodes, Cycles, BF Blender
Amir (Warrior) added a comment to T54461: Unable to export/import EXR files after doing `import bpy` and when using the multiprocessing in Python (Blender freezes).

@Brecht Van Lommel (brecht) Sorry I should have been more clear. The problem is I am compiling Blender as Python module in Ubuntu 16.04. I don't think it is possible to import the Blender module given those arguments you mentioned. Could you please double-check this as well?

Mon, Apr 2, 3:51 PM · Python, Nodes, Cycles, BF Blender

Sun, Apr 1

Amir (Warrior) updated the task description for T54461: Unable to export/import EXR files after doing `import bpy` and when using the multiprocessing in Python (Blender freezes).
Sun, Apr 1, 5:09 AM · Python, Nodes, Cycles, BF Blender
Amir (Warrior) updated the task description for T54461: Unable to export/import EXR files after doing `import bpy` and when using the multiprocessing in Python (Blender freezes).
Sun, Apr 1, 3:06 AM · Python, Nodes, Cycles, BF Blender

Sat, Mar 31

Amir (Warrior) updated the task description for T54461: Unable to export/import EXR files after doing `import bpy` and when using the multiprocessing in Python (Blender freezes).
Sat, Mar 31, 4:07 PM · Python, Nodes, Cycles, BF Blender

Thu, Mar 29

Amir (Warrior) updated the task description for T54461: Unable to export/import EXR files after doing `import bpy` and when using the multiprocessing in Python (Blender freezes).
Thu, Mar 29, 4:03 PM · Python, Nodes, Cycles, BF Blender
Amir (Warrior) updated the task description for T54461: Unable to export/import EXR files after doing `import bpy` and when using the multiprocessing in Python (Blender freezes).
Thu, Mar 29, 4:02 PM · Python, Nodes, Cycles, BF Blender
Amir (Warrior) added a project to T54461: Unable to export/import EXR files after doing `import bpy` and when using the multiprocessing in Python (Blender freezes): Python.
Thu, Mar 29, 4:02 PM · Python, Nodes, Cycles, BF Blender
Amir (Warrior) added projects to T54314: Contents of "Viewer Node" image block do not get updated : Nodes, Python.
Thu, Mar 29, 4:01 PM · Python, Nodes, Cycles, BF Blender
Amir (Warrior) created T54461: Unable to export/import EXR files after doing `import bpy` and when using the multiprocessing in Python (Blender freezes).
Thu, Mar 29, 4:00 PM · Python, Nodes, Cycles, BF Blender

Mar 14 2018

Amir (Warrior) added a project to T54314: Contents of "Viewer Node" image block do not get updated : Cycles.
Mar 14 2018, 10:46 PM · Python, Nodes, Cycles, BF Blender
Amir (Warrior) updated the task description for T54314: Contents of "Viewer Node" image block do not get updated .
Mar 14 2018, 7:44 AM · Python, Nodes, Cycles, BF Blender
Amir (Warrior) renamed T54314: Contents of "Viewer Node" image block do not get updated from Contents of "Viewer Node" image block do not get updated even with backdrop on to Contents of "Viewer Node" image block do not get updated .
Mar 14 2018, 7:34 AM · Python, Nodes, Cycles, BF Blender
Amir (Warrior) renamed T54314: Contents of "Viewer Node" image block do not get updated from Contents of "Viewer Node" image block do not get updated to Contents of "Viewer Node" image block do not get updated even with backdrop on.
Mar 14 2018, 7:34 AM · Python, Nodes, Cycles, BF Blender
Amir (Warrior) renamed T54314: Contents of "Viewer Node" image block do not get updated from Unable to update the contents of "Viewer Node" image block to Contents of "Viewer Node" image block do not get updated.
Mar 14 2018, 7:34 AM · Python, Nodes, Cycles, BF Blender
Amir (Warrior) updated the task description for T54314: Contents of "Viewer Node" image block do not get updated .
Mar 14 2018, 7:30 AM · Python, Nodes, Cycles, BF Blender
Amir (Warrior) updated the task description for T54314: Contents of "Viewer Node" image block do not get updated .
Mar 14 2018, 7:23 AM · Python, Nodes, Cycles, BF Blender
Amir (Warrior) created T54314: Contents of "Viewer Node" image block do not get updated .
Mar 14 2018, 7:23 AM · Python, Nodes, Cycles, BF Blender