Эх сурвалжийг харах

Merge pull request #112 from facebookresearch/header_fix

Header fix around license
Ning 2 жил өмнө
parent
commit
65617b658d
27 өөрчлөгдсөн 37 нэмэгдсэн , 27 устгасан
  1. 1 1
      scripts/m4t/audio_to_units/__init__.py
  2. 1 1
      scripts/m4t/audio_to_units/audio_to_units.py
  3. 1 1
      scripts/m4t/finetune/__init__.py
  4. 1 1
      scripts/m4t/predict/__init__.py
  5. 1 1
      scripts/m4t/predict/predict.py
  6. 1 1
      src/seamless_communication/assets/__init__.py
  7. 5 0
      src/seamless_communication/datasets/__init__.py
  8. 1 1
      src/seamless_communication/models/inference/__init__.py
  9. 6 0
      src/seamless_communication/models/inference/ngram_repeat_block_processor.py
  10. 2 3
      src/seamless_communication/models/inference/translator.py
  11. 1 1
      src/seamless_communication/models/unit_extraction/__init__.py
  12. 1 1
      src/seamless_communication/models/unit_extraction/kmeans.py
  13. 1 1
      src/seamless_communication/models/unit_extraction/unit_extraction.py
  14. 1 1
      src/seamless_communication/models/unit_extraction/wav2vec2_layer_output.py
  15. 1 1
      src/seamless_communication/models/unity/__init__.py
  16. 1 1
      src/seamless_communication/models/unity/adaptor_block.py
  17. 1 1
      src/seamless_communication/models/unity/builder.py
  18. 1 1
      src/seamless_communication/models/unity/generator.py
  19. 1 1
      src/seamless_communication/models/unity/loader.py
  20. 1 1
      src/seamless_communication/models/unity/model.py
  21. 1 1
      src/seamless_communication/models/unity/unit_tokenizer.py
  22. 1 1
      src/seamless_communication/models/vocoder/__init__.py
  23. 1 1
      src/seamless_communication/models/vocoder/builder.py
  24. 1 1
      src/seamless_communication/models/vocoder/codehifigan.py
  25. 1 1
      src/seamless_communication/models/vocoder/hifigan.py
  26. 1 1
      src/seamless_communication/models/vocoder/loader.py
  27. 1 1
      src/seamless_communication/models/vocoder/vocoder.py

+ 1 - 1
scripts/m4t/audio_to_units/__init__.py

@@ -1,5 +1,5 @@
 # Copyright (c) Meta Platforms, Inc. and affiliates.
 # All rights reserved.
 #
-# This source code is licensed under the BSD-style license found in the
+# This source code is licensed under the license found in the
 # LICENSE file in the root directory of this source tree.

+ 1 - 1
scripts/m4t/audio_to_units/audio_to_units.py

@@ -1,6 +1,6 @@
 # Copyright (c) Meta Platforms, Inc. and affiliates.
 #
-# This source code is licensed under the MIT license found in the
+# This source code is licensed under the license found in the
 # LICENSE file in the root directory of this source tree.
 
 import argparse

+ 1 - 1
scripts/m4t/finetune/__init__.py

@@ -1,5 +1,5 @@
 # Copyright (c) Meta Platforms, Inc. and affiliates.
 # All rights reserved.
 #
-# This source code is licensed under the BSD-style license found in the
+# This source code is licensed under the license found in the
 # LICENSE file in the root directory of this source tree.

+ 1 - 1
scripts/m4t/predict/__init__.py

@@ -1,5 +1,5 @@
 # Copyright (c) Meta Platforms, Inc. and affiliates.
 # All rights reserved.
 #
-# This source code is licensed under the BSD-style license found in the
+# This source code is licensed under the license found in the
 # LICENSE file in the root directory of this source tree.

+ 1 - 1
scripts/m4t/predict/predict.py

@@ -1,6 +1,6 @@
 # Copyright (c) Meta Platforms, Inc. and affiliates.
 #
-# This source code is licensed under the MIT license found in the
+# This source code is licensed under the license found in the
 # LICENSE file in the root directory of this source tree.
 
 import argparse

+ 1 - 1
src/seamless_communication/assets/__init__.py

@@ -1,7 +1,7 @@
 # Copyright (c) Meta Platforms, Inc. and affiliates.
 # All rights reserved.
 #
-# This source code is licensed under the BSD-style license found in the
+# This source code is licensed under the license found in the
 # LICENSE file in the root directory of this source tree.
 from seamless_communication.assets.download_manager import (
     download_manager as download_manager,

+ 5 - 0
src/seamless_communication/datasets/__init__.py

@@ -0,0 +1,5 @@
+# Copyright (c) Meta Platforms, Inc. and affiliates
+# All rights reserved.
+#
+# This source code is licensed under the license found in the
+# LICENSE file in the root directory of this source tree.

+ 1 - 1
src/seamless_communication/models/inference/__init__.py

@@ -1,6 +1,6 @@
 # Copyright (c) Meta Platforms, Inc. and affiliates.
 # All rights reserved.
 #
-# This source code is licensed under the BSD-style license found in the
+# This source code is licensed under the license found in the
 # LICENSE file in the root directory of this source tree.
 from seamless_communication.models.inference.translator import Translator as Translator

+ 6 - 0
src/seamless_communication/models/inference/ngram_repeat_block_processor.py

@@ -1,3 +1,9 @@
+# Copyright (c) Meta Platforms, Inc. and affiliates
+# All rights reserved.
+#
+# This source code is licensed under the license found in the
+# LICENSE file in the root directory of this source tree.
+
 from fairseq2.generation.logits_processor import LogitsProcessor as LogitsProcessor
 from typing import List
 from torch import Tensor

+ 2 - 3
src/seamless_communication/models/inference/translator.py

@@ -1,6 +1,6 @@
 # Copyright (c) Meta Platforms, Inc. and affiliates.
-#
-# This source code is licensed under the MIT license found in the
+# All rights reserved.
+# This source code is licensed under the license found in the
 # LICENSE file in the root directory of this source tree.
 
 from pathlib import Path
@@ -107,7 +107,6 @@ class Translator(nn.Module):
         unit_max_len_a: Optional[int] = None,
         unit_max_len_b: Optional[int] = None,
     ) -> Tuple[SequenceToTextOutput, Optional[SequenceToUnitOutput]]:
-
         if unit_max_len_a is None:
             # need to adjust this for T2ST since src_len is smaller for text.
             if input_modality == Modality.TEXT:

+ 1 - 1
src/seamless_communication/models/unit_extraction/__init__.py

@@ -1,7 +1,7 @@
 # Copyright (c) Meta Platforms, Inc. and affiliates.
 # All rights reserved.
 #
-# This source code is licensed under the BSD-style license found in the
+# This source code is licensed under the license found in the
 # LICENSE file in the root directory of this source tree.
 
 from seamless_communication.models.unit_extraction.unit_extraction import (

+ 1 - 1
src/seamless_communication/models/unit_extraction/kmeans.py

@@ -1,7 +1,7 @@
 # Copyright (c) Meta Platforms, Inc. and affiliates.
 # All rights reserved.
 #
-# This source code is licensed under the BSD-style license found in the
+# This source code is licensed under the license found in the
 # LICENSE file in the root directory of this source tree.
 
 import torch

+ 1 - 1
src/seamless_communication/models/unit_extraction/unit_extraction.py

@@ -1,7 +1,7 @@
 # Copyright (c) Meta Platforms, Inc. and affiliates.
 # All rights reserved.
 #
-# This source code is licensed under the BSD-style license found in the
+# This source code is licensed under the license found in the
 # LICENSE file in the root directory of this source tree.
 
 from typing import Union

+ 1 - 1
src/seamless_communication/models/unit_extraction/wav2vec2_layer_output.py

@@ -1,7 +1,7 @@
 # Copyright (c) Meta Platforms, Inc. and affiliates.
 # All rights reserved.
 #
-# This source code is licensed under the BSD-style license found in the
+# This source code is licensed under the license found in the
 # LICENSE file in the root directory of this source tree.
 from fairseq2.nn.transformer import TransformerEncoder, TransformerNormOrder
 from fairseq2.models.wav2vec2 import (

+ 1 - 1
src/seamless_communication/models/unity/__init__.py

@@ -1,7 +1,7 @@
 # Copyright (c) Meta Platforms, Inc. and affiliates.
 # All rights reserved.
 #
-# This source code is licensed under the BSD-style license found in the
+# This source code is licensed under the license found in the
 # LICENSE file in the root directory of this source tree.
 
 from seamless_communication.models.unity.builder import UnitYBuilder as UnitYBuilder

+ 1 - 1
src/seamless_communication/models/unity/adaptor_block.py

@@ -1,7 +1,7 @@
 # Copyright (c) Meta Platforms, Inc. and affiliates.
 # All rights reserved.
 #
-# This source code is licensed under the BSD-style license found in the
+# This source code is licensed under the license found in the
 # LICENSE file in the root directory of this source tree.
 
 from typing import Iterable, Optional, Tuple, final

+ 1 - 1
src/seamless_communication/models/unity/builder.py

@@ -1,7 +1,7 @@
 # Copyright (c) Meta Platforms, Inc. and affiliates.
 # All rights reserved.
 #
-# This source code is licensed under the BSD-style license found in the
+# This source code is licensed under the license found in the
 # LICENSE file in the root directory of this source tree.
 
 from dataclasses import dataclass

+ 1 - 1
src/seamless_communication/models/unity/generator.py

@@ -1,7 +1,7 @@
 # Copyright (c) Meta Platforms, Inc. and affiliates.
 # All rights reserved.
 #
-# This source code is licensed under the BSD-style license found in the
+# This source code is licensed under the license found in the
 # LICENSE file in the root directory of this source tree.
 
 from dataclasses import dataclass

+ 1 - 1
src/seamless_communication/models/unity/loader.py

@@ -1,7 +1,7 @@
 # Copyright (c) Meta Platforms, Inc. and affiliates.
 # All rights reserved.
 #
-# This source code is licensed under the BSD-style license found in the
+# This source code is licensed under the license found in the
 # LICENSE file in the root directory of this source tree.
 
 from typing import Any, Dict, Mapping, Union, final

+ 1 - 1
src/seamless_communication/models/unity/model.py

@@ -1,7 +1,7 @@
 # Copyright (c) Meta Platforms, Inc. and affiliates.
 # All rights reserved.
 #
-# This source code is licensed under the BSD-style license found in the
+# This source code is licensed under the license found in the
 # LICENSE file in the root directory of this source tree.
 
 from dataclasses import dataclass

+ 1 - 1
src/seamless_communication/models/unity/unit_tokenizer.py

@@ -1,7 +1,7 @@
 # Copyright (c) Meta Platforms, Inc. and affiliates.
 # All rights reserved.
 #
-# This source code is licensed under the BSD-style license found in the
+# This source code is licensed under the license found in the
 # LICENSE file in the root directory of this source tree.
 
 from typing import Dict, Optional, Sequence

+ 1 - 1
src/seamless_communication/models/vocoder/__init__.py

@@ -1,7 +1,7 @@
 # Copyright (c) Meta Platforms, Inc. and affiliates.
 # All rights reserved.
 #
-# This source code is licensed under the BSD-style license found in the
+# This source code is licensed under the license found in the
 # LICENSE file in the root directory of this source tree.
 
 from seamless_communication.models.vocoder.builder import (

+ 1 - 1
src/seamless_communication/models/vocoder/builder.py

@@ -1,7 +1,7 @@
 # Copyright (c) Meta Platforms, Inc. and affiliates.
 # All rights reserved.
 #
-# This source code is licensed under the BSD-style license found in the
+# This source code is licensed under the license found in the
 # LICENSE file in the root directory of this source tree.
 
 from dataclasses import dataclass

+ 1 - 1
src/seamless_communication/models/vocoder/codehifigan.py

@@ -1,7 +1,7 @@
 # Copyright (c) Meta Platforms, Inc. and affiliates.
 # All rights reserved.
 #
-# This source code is licensed under the BSD-style license found in the
+# This source code is licensed under the license found in the
 # LICENSE file in the root directory of this source tree.
 from typing import Any, Dict, List, Optional
 

+ 1 - 1
src/seamless_communication/models/vocoder/hifigan.py

@@ -1,7 +1,7 @@
 # Copyright (c) Meta Platforms, Inc. and affiliates.
 # All rights reserved.
 #
-# This source code is licensed under the BSD-style license found in the
+# This source code is licensed under the license found in the
 # LICENSE file in the root directory of this source tree.
 
 from typing import List, Optional

+ 1 - 1
src/seamless_communication/models/vocoder/loader.py

@@ -1,7 +1,7 @@
 # Copyright (c) Meta Platforms, Inc. and affiliates.
 # All rights reserved.
 #
-# This source code is licensed under the BSD-style license found in the
+# This source code is licensed under the license found in the
 # LICENSE file in the root directory of this source tree.
 
 from typing import Any, Mapping, final

+ 1 - 1
src/seamless_communication/models/vocoder/vocoder.py

@@ -1,7 +1,7 @@
 # Copyright (c) Meta Platforms, Inc. and affiliates.
 # All rights reserved.
 #
-# This source code is licensed under the BSD-style license found in the
+# This source code is licensed under the license found in the
 # LICENSE file in the root directory of this source tree.
 
 from typing import List, Optional