Open carter54 opened 3 years ago
Hi @carter54, I don't see anything obvious by reading the code. smooth_step
also looks fine as it seems consistent with OpenGL documentation.
It might help if you could post the resulting output and maybe some intermediate outputs like the masks, the output before smooth_step and few others.
Hi @carter54, did you ever manage to implement the light wrapping in python?
Hi @Volcomix , thx for this nice work.
I'm interested in the light wrapping function of the post process pipeline and try to rewrite the following function it in python.
https://github.com/Volcomix/virtual-background/blob/8530c56ce419618a3679ca379e76bfd1518a35f5/src/pipelines/webgl2/backgroundImageStage.ts#L68-L78
however, the output result is different with the output of your original code...
I paste my python implementation here
I feel something might be wrong in smooth_step, but I cannot find more information except for this link.
Could you help me check if there is an obvious error in this python code please?
Thx in advance~