Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Development
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 16th February 2017, 06:58   #1121  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633
to have similar results, "h" in v1.0.1 should be around 1.6 ~ 1.8 x "h" in v0.7.7
@Khanattila
is there an explanation for what's happening here?
did you switch from SSE to SAD?
feisty2 is offline   Reply With Quote
Old 16th February 2017, 11:07   #1122  |  Link
Khanattila
Registered User
 
Khanattila's Avatar
 
Join Date: Nov 2014
Posts: 440
Mathematics is the same, there will be a bug somewhere.
__________________
github.com
Khanattila is offline   Reply With Quote
Old 16th February 2017, 11:29   #1123  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633
@Khanattila
That doesn't sound good...
Are you planning on fixing it?
feisty2 is offline   Reply With Quote
Old 16th February 2017, 11:38   #1124  |  Link
Khanattila
Registered User
 
Khanattila's Avatar
 
Join Date: Nov 2014
Posts: 440
Quote:
Originally Posted by feisty2 View Post
@Khanattila
That doesn't sound good...
Are you planning on fixing it?
I already found the problem...
You can consider it a side effect of the new channels mode.
The result is correct, I might add an internal multiplier to maintain compatibility with the older versions.

PS. It is more correct the new version instead of the old.
__________________
github.com

Last edited by Khanattila; 16th February 2017 at 11:42.
Khanattila is offline   Reply With Quote
Old 16th February 2017, 12:33   #1125  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633
I did my tests on GRAYS clips...
So that channel thing, will affect GRAY stuff as well?
feisty2 is offline   Reply With Quote
Old 16th February 2017, 12:36   #1126  |  Link
Khanattila
Registered User
 
Khanattila's Avatar
 
Join Date: Nov 2014
Posts: 440
Quote:
Originally Posted by feisty2 View Post
I did my tests on GRAYS clips...
So that channel thing, will affect GRAY stuff as well?
All modes are affected.
As a temporary fix using ~1,732 (square root of 3) as a multiplier for h.
__________________
github.com
Khanattila is offline   Reply With Quote
Old 16th February 2017, 14:59   #1127  |  Link
burfadel
Registered User
 
Join Date: Aug 2006
Posts: 2,229
Quote:
Originally Posted by Khanattila View Post
All modes are affected.
As a temporary fix using ~1,732 (square root of 3) as a multiplier for h.
Just be aware that a comma is also a thousand separator in half the world. Basically, to many people out there, you said to set h to one thousand seven hundred thirty two (1732) .

Yes it's Wikipedia, but it's good enough:
https://en.wikipedia.org/w/index.php?title=Decimal_mark

Basically it's the exact opposite, where you use commas' as a decimal separator as in your usage, a decimal is used, and where we would use a comma, you use a decimal as a thousands separator.

Makes it confusing when there are multiple different systems (more than just these) around the world. The correct form in Australia for 1,732 is 1 732, although a comma is typically used. Not to confuse things with the comma at the end there for a sentence break! Many people would also write 1 732 as 1,732, but if the number were much larger as in 92,345,764 they would use spaces. The spaces are used as part of the SI system I believe to avoid confusion between the various systems used around the world.

Last edited by burfadel; 16th February 2017 at 15:09.
burfadel is offline   Reply With Quote
Old 16th February 2017, 16:32   #1128  |  Link
Khanattila
Registered User
 
Khanattila's Avatar
 
Join Date: Nov 2014
Posts: 440
Quote:
Originally Posted by burfadel View Post
Just be aware that a comma is also a thousand separator in half the world. Basically, to many people out there, you said to set h to one thousand seven hundred thirty two (1732) .

Yes it's Wikipedia, but it's good enough:
https://en.wikipedia.org/w/index.php?title=Decimal_mark

Basically it's the exact opposite, where you use commas' as a decimal separator as in your usage, a decimal is used, and where we would use a comma, you use a decimal as a thousands separator.

Makes it confusing when there are multiple different systems (more than just these) around the world. The correct form in Australia for 1,732 is 1 732, although a comma is typically used. Not to confuse things with the comma at the end there for a sentence break! Many people would also write 1 732 as 1,732, but if the number were much larger as in 92,345,764 they would use spaces. The spaces are used as part of the SI system I believe to avoid confusion between the various systems used around the world.
I thank you, but really, I know the difference.
I live in the limbo in which I program using '.' and in the lives of everyday I use ','.
__________________
github.com

Last edited by Khanattila; 16th February 2017 at 16:34.
Khanattila is offline   Reply With Quote
Old 16th February 2017, 16:55   #1129  |  Link
MysteryX
Soul Architect
 
MysteryX's Avatar
 
Join Date: Apr 2014
Posts: 2,559
Quote:
Originally Posted by Khanattila View Post
I thank you, but really, I know the difference.
I live in the limbo in which I program using '.' and in the lives of everyday I use ','.
Modern programming languages have no issue with that (as long as you set the right parameters for formatting) but this used to be a major source of frustration with old programming languages. A program would run 100% fine, then on another computer, it would totally crash on every comma.
MysteryX is offline   Reply With Quote
Old 21st February 2017, 10:52   #1130  |  Link
KingLir
Registered User
 
Join Date: Jan 2017
Posts: 146
I am getting the following error when running on macOS with latest versions (vapoursynth R36 and KNLMeansCL built from master - commit 08755c5). Anyone got an idea how to fix ?

Script evaluation failed:
Python exception: knlm.KNLMeansCL: build programm error!
Please report Log-KNLMeansCL.txt.
Traceback (most recent call last):
File "src/cython/vapoursynth.pyx", line 1712, in vapoursynth.vpy_evaluateScript (src/cython/vapoursynth.c:34991)
File "VIVTC_with_TComb_script.vpy", line 11, in <module>
clip = core.knlm.KNLMeansCL(clip=clip)
File "src/cython/vapoursynth.pyx", line 1604, in vapoursynth.Function.__call__ (src/cython/vapoursynth.c:33131)
vapoursynth.Error: knlm.KNLMeansCL: build programm error!

script:

import vapoursynth as vs
core = vs.get_core()
core.max_cache_size = 12000

clip = core.ffms2.Source(source=filename)
clip = core.knlm.KNLMeansCL(clip=clip)

Last edited by KingLir; 26th February 2017 at 17:21.
KingLir is offline   Reply With Quote
Old 21st February 2017, 10:59   #1131  |  Link
Khanattila
Registered User
 
Khanattila's Avatar
 
Join Date: Nov 2014
Posts: 440
Quote:
Originally Posted by KingLir View Post
I am getting the following error when running on macOS. Anyone got an idea how to fix ?

Script evaluation failed:
Python exception: knlm.KNLMeansCL: build programm error!
Please report Log-KNLMeansCL.txt.
Traceback (most recent call last):
File "src/cython/vapoursynth.pyx", line 1712, in vapoursynth.vpy_evaluateScript (src/cython/vapoursynth.c:34991)
File "VIVTC_with_TComb_script.vpy", line 11, in <module>
clip = core.knlm.KNLMeansCL(clip=clip)
File "src/cython/vapoursynth.pyx", line 1604, in vapoursynth.Function.__call__ (src/cython/vapoursynth.c:33131)
vapoursynth.Error: knlm.KNLMeansCL: build programm error!

script:
clip = core.knlm.KNLMeansCL(clip=clip)
> Please report Log-KNLMeansCL.txt
__________________
github.com
Khanattila is offline   Reply With Quote
Old 21st February 2017, 11:27   #1132  |  Link
KingLir
Registered User
 
Join Date: Jan 2017
Posts: 146
Quote:
Originally Posted by Khanattila View Post
> Please report Log-KNLMeansCL.txt
Sure, but where can I find it on macOS ? I searched and haven't found it.
KingLir is offline   Reply With Quote
Old 21st February 2017, 16:58   #1133  |  Link
Khanattila
Registered User
 
Khanattila's Avatar
 
Join Date: Nov 2014
Posts: 440
Quote:
Originally Posted by KingLir View Post
Sure, but where can I find it on macOS ? I searched and haven't found it.
It is in the script folder.
__________________
github.com
Khanattila is offline   Reply With Quote
Old 21st February 2017, 19:32   #1134  |  Link
KingLir
Registered User
 
Join Date: Jan 2017
Posts: 146
Quote:
Originally Posted by Khanattila View Post
It is in the script folder.
Thanks, sorry I missed it.
Here:

OpenCL Platform
------------------------------------------------------------
CL_PLATFORM_VENDOR: Apple
CL_PLATFORM_NAME: Apple
CL_PLATFORM_VERSION: OpenCL 1.2 (Jan 4 2017 22:35:59)
CL_PLATFORM_PROFILE: FULL_PROFILE

OpenCL Device
------------------------------------------------------------
CL_DEVICE_VENDOR: AMD
CL_DEVICE_NAME: AMD Radeon R9 M395X Compute Engine
CL_DRIVER_VERSION: 1.2 (Jan 10 2017 22:25:08)
CL_DEVICE_VERSION: OpenCL 1.2
CL_DEVICE_PROFILE: FULL_PROFILE
CL_DEVICE_IMAGE_SUPPORT: 1
CL_DEVICE_IMAGE2D_MAX_WIDTH: 16384
CL_DEVICE_IMAGE2D_MAX_HEIGHT: 16384
CL_DEVICE_IMAGE_MAX_ARRAY_SIZE: 2048

Program Build
------------------------------------------------------------
CL_PROGRAM_BUILD_OPTIONS:
CL_PROGRAM_BUILD_LOG:


RETURN: 0
KingLir is offline   Reply With Quote
Old 22nd February 2017, 14:40   #1135  |  Link
KingLir
Registered User
 
Join Date: Jan 2017
Posts: 146
Any ideas ?
KingLir is offline   Reply With Quote
Old 24th February 2017, 18:25   #1136  |  Link
Khanattila
Registered User
 
Khanattila's Avatar
 
Join Date: Nov 2014
Posts: 440
Quote:
Originally Posted by KingLir View Post
Any ideas ?
v1.0.2, definitely
__________________
github.com
Khanattila is offline   Reply With Quote
Old 24th February 2017, 19:01   #1137  |  Link
Khanattila
Registered User
 
Khanattila's Avatar
 
Join Date: Nov 2014
Posts: 440
@ KingLir
https://github.com/Khanattila/KNLMea...ive/master.zip
Can you test this version and report log?
__________________
github.com

Last edited by Khanattila; 28th February 2017 at 18:04.
Khanattila is offline   Reply With Quote
Old 26th February 2017, 17:22   #1138  |  Link
KingLir
Registered User
 
Join Date: Jan 2017
Posts: 146
Quote:
Originally Posted by Khanattila View Post
@ KingLir
https://github.com/Khanattila/KNLMea...ive/master.zip
Can you test this version and report log?
Thanks and sorry for the late reply.

Here is the new output:

Script evaluation failed:
Python exception: knlm.KNLMeansCL: build programm error!
Please report Log-KNLMeansCL.txt.
Traceback (most recent call last):
File "src/cython/vapoursynth.pyx", line 1712, in vapoursynth.vpy_evaluateScript (src/cython/vapoursynth.c:34991)
File "VIVTC_with_TComb_script.vpy", line 16, in <module>
clip = core.knlm.KNLMeansCL(clip=clip)
File "src/cython/vapoursynth.pyx", line 1604, in vapoursynth.Function.__call__ (src/cython/vapoursynth.c:33131)
vapoursynth.Error: knlm.KNLMeansCL: build programm error!

And the new log:

OpenCL Platform
------------------------------------------------------------
CL_PLATFORM_VENDOR: Apple
CL_PLATFORM_NAME: Apple
CL_PLATFORM_VERSION: OpenCL 1.2 (Jan 4 2017 22:35:59)
CL_PLATFORM_PROFILE: FULL_PROFILE

OpenCL Device
------------------------------------------------------------
CL_DEVICE_VENDOR: AMD
CL_DEVICE_NAME: AMD Radeon R9 M395X Compute Engine
CL_DRIVER_VERSION: 1.2 (Jan 10 2017 22:25:08)
CL_DEVICE_VERSION: OpenCL 1.2
CL_DEVICE_PROFILE: FULL_PROFILE
CL_DEVICE_IMAGE_SUPPORT: 1
CL_DEVICE_IMAGE2D_MAX_WIDTH: 16384
CL_DEVICE_IMAGE2D_MAX_HEIGHT: 16384
CL_DEVICE_IMAGE_MAX_ARRAY_SIZE: 2048

Program Build
------------------------------------------------------------
CL_PROGRAM_BUILD_ERROR: CL_INVALID_BUILD_OPTIONS
CL_PROGRAM_BUILD_OPTIONS:
CL_PROGRAM_BUILD_LOG:


RETURN: 0
KingLir is offline   Reply With Quote
Old 28th February 2017, 17:07   #1139  |  Link
Khanattila
Registered User
 
Khanattila's Avatar
 
Join Date: Nov 2014
Posts: 440
Quote:
Originally Posted by KingLir View Post
Thanks and sorry for the late reply.

Here is the new output:

Script evaluation failed:
Python exception: knlm.KNLMeansCL: build programm error!
Please report Log-KNLMeansCL.txt.
Traceback (most recent call last):
File "src/cython/vapoursynth.pyx", line 1712, in vapoursynth.vpy_evaluateScript (src/cython/vapoursynth.c:34991)
File "VIVTC_with_TComb_script.vpy", line 16, in <module>
clip = core.knlm.KNLMeansCL(clip=clip)
File "src/cython/vapoursynth.pyx", line 1604, in vapoursynth.Function.__call__ (src/cython/vapoursynth.c:33131)
vapoursynth.Error: knlm.KNLMeansCL: build programm error!

And the new log:

OpenCL Platform
------------------------------------------------------------
CL_PLATFORM_VENDOR: Apple
CL_PLATFORM_NAME: Apple
CL_PLATFORM_VERSION: OpenCL 1.2 (Jan 4 2017 22:35:59)
CL_PLATFORM_PROFILE: FULL_PROFILE

OpenCL Device
------------------------------------------------------------
CL_DEVICE_VENDOR: AMD
CL_DEVICE_NAME: AMD Radeon R9 M395X Compute Engine
CL_DRIVER_VERSION: 1.2 (Jan 10 2017 22:25:08)
CL_DEVICE_VERSION: OpenCL 1.2
CL_DEVICE_PROFILE: FULL_PROFILE
CL_DEVICE_IMAGE_SUPPORT: 1
CL_DEVICE_IMAGE2D_MAX_WIDTH: 16384
CL_DEVICE_IMAGE2D_MAX_HEIGHT: 16384
CL_DEVICE_IMAGE_MAX_ARRAY_SIZE: 2048

Program Build
------------------------------------------------------------
CL_PROGRAM_BUILD_ERROR: CL_INVALID_BUILD_OPTIONS
CL_PROGRAM_BUILD_OPTIONS:
CL_PROGRAM_BUILD_LOG:


RETURN: 0
Apple... why not follow the standard?
__________________
github.com
Khanattila is offline   Reply With Quote
Old 28th February 2017, 18:04   #1140  |  Link
Khanattila
Registered User
 
Khanattila's Avatar
 
Join Date: Nov 2014
Posts: 440
@ KingLir
https://github.com/Khanattila/KNLMea...ive/master.zip
now, it should work for you.
__________________
github.com
Khanattila is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:09.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.