-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Engrave example works, but slowly #14
Comments
Hello, I will reply to you tomorrow! Sorry for the delay. |
I will compare the Blender gmic-blender speed of engraving and the official gmic command line command for engraving |
For 1920x1080 image, blender rendering time excluded,
|
As to the Ctrl+S shortcut, it saves a 0 bytes file on my side in the blender executable's directory, named gmic_000000.png for example. Enough for diagnostics. Let me troubleshoot both issues (slow gmic-blender) and (empty saving) come back to you in a next command. Thank you very much for reporting that slowness! Note for now that to save a file in a gmic command string, you have two methods :
|
Further note on saving to file or buffer, gmic-py's Numpy is being prepared so that images can be exported to a Here are the G'MIC display window's shortcut: |
Thank you for testing and drilling this issue! |
Thank you!!! |
You seem to be the first known user of gmic-blender, what a honour :) |
I hope to use gmic on video. |
I forgot to test gmic-py itself. It could prepend a "gmic update" internet update command on "import gmic". This can be nonsense if true. If the 32bits hypothesis were false, the use of debug symbols may be the speed issue, or a non-linking against openMP. Let me come back to you |
@j2l could you please tell about your OS setup? |
Ubuntu 19.10 (PopOS). GTX 970 and i5 |
Thanks |
printing |
Updating stats (on personal old 64bits linux laptop):
I will retry the first two cases with a gcc-optimized .so tomorrow latest |
The test script is:
|
Now with a magically fast computer for 100 engrave runs:
gmic 2.8.4
There is room for 4x optimization. I need a few weeks before releasing gmic-py 2.9.0 or 2.9.1 with such optimizations; I will release gmic-blender v0.0.8 in turn embedding a faster G'MIC binding. |
Great!
…On Fri, Jun 19, 2020 at 5:02 PM Jonathan-David Schröder < ***@***.***> wrote:
Now with a magically fast computer for 100 engrave runs:
import gmic
print(gmic.__spec__)
g = gmic.Gmic()
for a in range(100):
g.run("thumb-1920-935998.png fx_engrave 0.5,50,0,8,40,0,0,0,10,1,0,0,0,1,0")
gmic 2.8.4
- unoptimized (gmic-blender v0.0.7
<https://github.com/myselfhimself/gmic-blender/releases/tag/v0.0.7>):
9m13,392s
- optimized (highest GCC optimizations traditionally used by G'MIC
core unreleased yet
<myselfhimself/gmic-py#39>): 2min39s
There is room for 4x optimization.
I need a few weeks before releasing gmic-py 2.9.0 or 2.9.1 with such
optimizations; I will release gmic-blender v0.0.8 in turn embedding a
faster G'MIC binding.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#14 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAP6LN6G3TF4HXBVMGXUJTRXN4W3ANCNFSM4NTLVNGQ>
.
|
Hi @j2l |
@myselfhimself great! |
You can download the new add-on version with a fresher optimized gmic-py here: https://github.com/myselfhimself/gmic-blender/releases/tag/v0.0.8 |
OK we are good with the 2x-4x promised optimization of gmic-py 2.9.0. After installing the v0.0.8 release add-on,
On Linux x64 with Blender 2.80 on my old laptop, I get 37 seconds with v0.0.7 x gmic-py 2.8.4 versus 13 seconds for v0.0.8 x gmic-py 2.9.0, for an engrave operation for a 1920x* render. Now I am interested in not using the gmic display window to show the result. |
Here is my test file |
Hello,
So great to see this project going on!
I successfully tested the add-on with the example. I can't wait to see nodes. In compositor I guess :)
I noted that Engrave is very slooow. Like +10s for a 1920x1080 basic render image.
I use Ubuntu 19.10 and I wonder if G'MIC 32 bits is used instead of the 64 bits version and it slows down the process.
Might be better to split them in different releases?
Also noted that CTRL+S to save the result, throws a "saved gmic_00001.png" message ,but where?
It's not in /tmp, nor in /home/user/.config/blender/2.83/scripts/addons/gmic_blender or in parent folders.
The text was updated successfully, but these errors were encountered: