yta-editor-nodes-gpu 0.0.3__tar.gz → 0.0.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yta-editor-nodes-gpu
3
- Version: 0.0.3
3
+ Version: 0.0.4
4
4
  Summary: Youtube Autonomous Main Editor Nodes GPU module
5
5
  License-File: LICENSE
6
6
  Author: danialcala94
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "yta-editor-nodes-gpu"
3
- version = "0.0.3"
3
+ version = "0.0.4"
4
4
  description = "Youtube Autonomous Main Editor Nodes GPU module"
5
5
  authors = [
6
6
  {name = "danialcala94",email = "danielalcalavalera@gmail.com"}
@@ -348,9 +348,9 @@ class AlphaPediaMaskTransitionProcessorGPU(_TransitionProcessorGPU):
348
348
 
349
349
  def process(
350
350
  self,
351
- input_a: Union[moderngl.Texture, 'np.ndarray'],
352
- input_b: Union[moderngl.Texture, 'np.ndarray'],
353
- input_mask: Union[moderngl.Texture, 'np.ndarray'],
351
+ first_input: Union[moderngl.Texture, 'np.ndarray'],
352
+ second_input: Union[moderngl.Texture, 'np.ndarray'],
353
+ mask_input: Union[moderngl.Texture, 'np.ndarray'],
354
354
  progress: float,
355
355
  output_size: Union[tuple[int, int], None] = None,
356
356
  **kwargs
@@ -368,15 +368,15 @@ class AlphaPediaMaskTransitionProcessorGPU(_TransitionProcessorGPU):
368
368
  We use and return textures to maintain
369
369
  the process in GPU and optimize it.
370
370
  """
371
- ParameterValidator.validate_mandatory_instance_of('input_a', input_a, [moderngl.Texture, np.ndarray])
372
- ParameterValidator.validate_mandatory_instance_of('input_b', input_b, [moderngl.Texture, np.ndarray])
373
- ParameterValidator.validate_mandatory_instance_of('input_mask', input_mask, [moderngl.Texture, np.ndarray])
371
+ ParameterValidator.validate_mandatory_instance_of('first_input', first_input, [moderngl.Texture, np.ndarray])
372
+ ParameterValidator.validate_mandatory_instance_of('second_input', second_input, [moderngl.Texture, np.ndarray])
373
+ ParameterValidator.validate_mandatory_instance_of('mask_input', mask_input, [moderngl.Texture, np.ndarray])
374
374
  ParameterValidator.validate_mandatory_positive_float('progress', progress, do_include_zero = True)
375
375
 
376
376
  textures_map = {
377
- 'first_texture': input_a,
378
- 'second_texture': input_b,
379
- 'mask_texture': input_mask
377
+ 'first_texture': first_input,
378
+ 'second_texture': second_input,
379
+ 'mask_texture': mask_input
380
380
  }
381
381
 
382
382
  # TODO: There is an 'use_alpha_channel' uniform to use