YOUR ACCOUNT

Login or Register to post new topics or replies
WillowRaven
Posts: 47
I never noticed this before, and it didn't do it with another filter, but this particular 'midtone enhancer' filter is taking forever to render.

The image isn't all that large (I've rendered larger before) but this was started 13 hours ago and is maybe 1/4 of the way rendered.

The first filter was finished in about five minutes. Is it the filter having problems or just this particular filter vs this particular image?

Initially, I loaded the layer through Photoshop, but it crashed twice when I tried to 'apply'. This time, still loaded via Photoshop, but being saved as a fresh jpeg.

I hate to cancel and restart again for fear of having to repeat this same 13 hours worth of render again, since the restart after the last crash didn't seem to make a difference.

Ideas?
  Details E-Mail
CFandM
ForgeSmith

Posts: 4761
Filters: 266
Yep...Some filters take longer then others to render the same image. This is due to the components in the filter itself...Some of the blurs are known for this....What filter is it that is slow in rendering?..
Stupid things happen to computers for stupid reasons at stupid times!
  Details E-Mail
WillowRaven
Posts: 47
I had a feeling that might be the case. I am trying to use the 'Midtone Enhancer' by ThreeDee, the tenth default option. I've used other options for this particular filter before, without this much trouble, but this particular filter is the best option for this image. It's for a book cover and I really don't want to have to choose something else if I can avoid it.

We are approaching the 15th hours, my computer is getting warm, and still not even a third of the way. Have a better way of doing it?
  Details E-Mail
Skybase
2D/3D Generalist

Posts: 4025
Filters: 76
It doesn't sound like FF is behaving right. Renders shouldn't take 15 hours unless your image is ridiculously huge or the filter is ridiculously heavy.
  Details E-Mail
WillowRaven
Posts: 47
Well, it is a rather large image (high rez for print book cover). I dropped the pixels back as far as I dare, and now it renders in an hour. But what surprised me is other filters had no problem, just a couple did. So it must have been a combined issue, but mostly file size.
  Details E-Mail
Sphinx.
Filter Optimizer

Posts: 1750
Filters: 39
The filter in question use some quite old versions of the components - perhaps if you rebuild the filter with "modern" editions it will speed up things smile:-)
  Details E-Mail
WillowRaven
Posts: 47
I'd have no idea where to even start doing that, lol. Maybe I never noticed the lag with this filter because I just updated from 3 to 4 and it worked better in 3, possibly?

But, I made it work. If the author okays the draft, I'll share it with ya'll smile:D
  Details E-Mail
JoannaK

Posts: 15
Filters: 2
Some notes on this.

Are you using pro version? FilterForge is hevily CPU depependant, so having multiple cores (like 6 or 8 ) help a lot? Normal version uses only 2 cores.

FilterForge is 32 bit program and thus limited with it's memory use, have you checked if that's the issue? That much slowdown sounds a lot like swap-trashing...

Big blur filter (like this 70pix side = 70*70 = 4900) means that app needs to do a *lot* samplling... => try smaller Blur.

I have no idea if the newer filters have speed optimizations.. You should ask fiter maker if he's willing to tesr/make an upgrade. I could do that (it looks simple filter) but I'd ask author first fors permission.


Addendum:
My FF4-demo crashed while testing this, report sent. Looks like FForge has some memory handling issues.

Standalone version of FF. Using Midtone Enchancher filer on 14 Mp Photo with Bitmap aliasing option on.. Happened during saving to disk (aka final rendering).

Exception reported at thread 00002F48 'RenderingMgr 131A6C70/4':
<class XFW::Kernel::StdException> bad allocation
  Details E-Mail
WillowRaven
Posts: 47
Yes. I am using FF4 Pro. I render large scenes at high rez because it has to be for book publishing regs.

The scene was over 7000 pixels wide, so I took it down to 5000 pixels wide, the lowest I dare go, just to get that particular filter to work.

However, most of the filters didn't even notice. It was just a couple I wanted for this particular scene that just HAD to give me problems, lol.

It's a new computer with an independent graphics card. So that shouldn't be the issue.

So you think it's an FF issue?
  Details E-Mail
JoannaK

Posts: 15
Filters: 2
Graphics card speed gives no boost to FF4 since it does all rendering on CPU.

7000 pixels wide and I'd assume some decent aspect ratio .. Say 5000 Pix high? Let's do some math.

7000 * 5000 = 35MPIX

Assuming the entire imaged is blurred at once (note: I have no idea how FF works internally, this is plenty quesses).

35MPIX * 4 channels (with alpha?) 140 Million values of whatever format this program internally uses. I'd expect it to be 64-bit floats. => 1100 Megabytes per each image stage buffered.

Not to mention the workload of 140M blurs (with each having 4900 fetches+math).

So yes.. I think that you are hitting the upper bounds on the FF system.


IMHO you should ask this from the program authors. It may well be that there is a way to make things faster, but I'm out of ideas atm.
  Details E-Mail
WillowRaven
Posts: 47
That's what I figured. I backed it down to 5000 x 3462 (13 x 9 ratio at 300 ppi).

Luckily it helped because if I'd gone any small smaller, it would have been below print standards.
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
Yes, it is definitely mostly due to the large radius blur. Turning off the Gaussian checkbox helps some, or lowering the blur radius value, but the output will be somewhat different from the preset in both cases.
  Details E-Mail
GMM
Moderator
Filter Forge, Inc
Posts: 3491
I won't go into details but JoannaK is generally right. If Filter Forge is unable to store a huge blur cache in the memory it will offload it into the swap file and load it back which takes... well... a long time. Get rid of the blurs or at least decrease the blur radius.
  Details E-Mail
WillowRaven
Posts: 47
Then I lose the effect I want, lol. But as I said, I lowered the rez and it worked. smile:D I'll show the finished image here probably on Monday.

Thanks, guys smile:D
  Details E-Mail
JoannaK

Posts: 15
Filters: 2
Good to know that you'll image is ok (and acceptable to print).

For images this large it would make a lot more sense to do some kind of 'sparse sampling' of the data. There's no reasonable need to calculate *exact* highly blurred value (from 4900 samples) for each and every 35Million pixels at that image..

So, this filter is made in most simple way and it works nicely on smaller images. But this much data you are having it would make sense to rethink the thingy and save (perhaps) 99.9% of ram and CPU work.
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
For large images, the filter should really be reworked.

Sparse sampling can be achieved using the scale-down-then-blur-then-scale-up trick -- I mean doing this internally in FF by adding those scaling steps in the filter editor. For example, if you scale down an image to 1/10th the original size then blur it by 1/10th of the original blur amount and then scale it up to 10X, you will only need 1/100th of the samples compared to doing the blur at full size. With no significant change in quality.
  Details E-Mail
JoannaK

Posts: 15
Filters: 2
Threedee, like reading my mind..

If I'd had to do images like this big, I'd make 1/10 scale resizes on some other batch program (preferable one that uses GPU acceleration).

I'd greated the filter (if possible) thatäs capable to handle both original and the 1/10 scale image (that's used for blur calculations).

I have no idea if that would visibly affect the final result, but I'm sure the speed/memory gain would be *huge*.
  Details E-Mail
WillowRaven
Posts: 47
Wouldn't scaling up and down like that affect the resolution, ThreeDee?
  Details E-Mail
WillowRaven
Posts: 47
Oh ... and here is the final result ...



  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
Quote
here is the final result ...


Very nice!

Quote
Wouldn't scaling up and down like that affect the resolution, ThreeDee?


You wouldn't scale the main image, just the branch that gets blurred. I'll update the filter with a "Use Sparse Blur" option so you can see what I mean.
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
I tested the new version on a 7500x5000pixel image, Preset 10 took less than 30 seconds on my machine. As for the old version... didn't have the patience to wait for it.

Another thing I've found makes a huge difference in speed (for some unknown reason) is using Filter Forge on the background layer of a layered PS file rather than any of the other layers. In the same exact image, the background layer processes in fraction of the time of any of the other layers, so I either flatten the image before running FF or copy the layer into a new document and flatten it there for filtering.
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
JoannaK,

The trick works internally in Filter Forge, you don't need to take it to another program.

It may seem illogical at first, but since FF samples from Result "backwards", the second scaling step (scale up) ensures that only 1/100th of the scaled down image is actually sampled and thus blurred.

An earlier discussion on the subject here.

The trick works as long as it keeps the processing in RAM as opposed to virtual memory (hard disc), so the suitable settings and maximum image size depend on the filter construction, the image size and how much RAM is available for FF.
  Details E-Mail
WillowRaven
Posts: 47
Thank you, ThreeDee. Still not sure I understand, lol, but the fact that you learned of my little dilemma, then tweaked the filter (I hadn't realized you were the creator until now) is just mindblowing, lol.

So am I to understand it will work better for larger sizes now? Or do I still need to do something within filter forge?

BTW, I use your filters a lot for my book covers. Is there a way I can help to promote your filters?
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
Hi WillowRaven,

You're welcome. It will work better with large images now without having to anything but install the updated filter (Midtone Enhancer V2).

Glad to hear that you're finding use for the filters. Thanks for asking, but just knowing that they're useful to people is good enough for me. I checked out your website -- you have certainly made a lot of great looking book covers!

TD
  Details E-Mail
WillowRaven
Posts: 47
Thanks, ThreeDee smile:D

I found and installed V2, but in FF, it loads w/out 'V2' in the name. Is that right?
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
If it's got the "Use Sparse Blur" checkbox option, it is the updated version.
  Details E-Mail

Join Our Community!

Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!

33,712 Registered Users
+19 new in 30 days!

153,533 Posts
+31 new in 30 days!

15,348 Topics
+73 new in year!

Create an Account

Online Users Last minute:

38 unregistered users.