mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-01 02:31:11 +06:00
[fix] cannot import name 'Pop2PianoFeatureExtractor' from 'transformers' (#35604)
* update pop2piano __init__ * add lib check * update fix * revert
This commit is contained in:
parent
b80e334e71
commit
3998fa8aab
@ -448,3 +448,6 @@ class Pop2PianoFeatureExtractor(SequenceFeatureExtractor):
|
||||
)
|
||||
|
||||
return output
|
||||
|
||||
|
||||
__all__ = ["Pop2PianoFeatureExtractor"]
|
||||
|
@ -137,3 +137,6 @@ class Pop2PianoProcessor(ProcessorMixin):
|
||||
def from_pretrained(cls, pretrained_model_name_or_path, **kwargs):
|
||||
args = cls._get_arguments_from_pretrained(pretrained_model_name_or_path, **kwargs)
|
||||
return cls(*args)
|
||||
|
||||
|
||||
__all__ = ["Pop2PianoProcessor"]
|
||||
|
@ -714,3 +714,6 @@ class Pop2PianoTokenizer(PreTrainedTokenizer):
|
||||
return BatchEncoding({"notes": notes_list, "pretty_midi_objects": pretty_midi_objects_list})
|
||||
|
||||
return BatchEncoding({"notes": notes_list})
|
||||
|
||||
|
||||
__all__ = ["Pop2PianoTokenizer"]
|
||||
|
Loading…
Reference in New Issue
Block a user