Coder Social home page Coder Social logo

Comments (6)

MahmoudAshraf97 avatar MahmoudAshraf97 commented on September 22, 2024 1

Then make sure that you are using compatible versions of transformers and logging

from whisper-diarization.

sbultmann avatar sbultmann commented on September 22, 2024 1

It was in deed the transformer version. With transformers==4.38.2 everything works! Thanks for the help!

from whisper-diarization.

MahmoudAshraf97 avatar MahmoudAshraf97 commented on September 22, 2024

from whisper-diarization.

sbultmann avatar sbultmann commented on September 22, 2024

I am using 3.10.12 but always get this error message:

--- Logging error ---
Traceback (most recent call last):
  File "/home/bultmanns/anaconda3/envs/whisper-dia/lib/python3.10/logging/__init__.py", line 1100, in emit
    msg = self.format(record)
  File "/home/bultmanns/anaconda3/envs/whisper-dia/lib/python3.10/logging/__init__.py", line 943, in format
    return fmt.format(record)
  File "/home/bultmanns/anaconda3/envs/whisper-dia/lib/python3.10/logging/__init__.py", line 678, in format
    record.message = record.getMessage()
  File "/home/bultmanns/anaconda3/envs/whisper-dia/lib/python3.10/logging/__init__.py", line 368, in getMessage
    msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
  File "/home/bultmanns/Documents/whisper-diarization/diarize.py", line 201, in <module>
    labled_words = punct_model.predict(words_list, chunk_size=230)
  File "/home/bultmanns/anaconda3/envs/whisper-dia/lib/python3.10/site-packages/deepmultilingualpunctuation/punctuationmodel.py", line 47, in predict
    result = self.pipe(text)
  File "/home/bultmanns/anaconda3/envs/whisper-dia/lib/python3.10/site-packages/transformers/pipelines/token_classification.py", line 248, in __call__
    return super().__call__(inputs, **kwargs)
  File "/home/bultmanns/anaconda3/envs/whisper-dia/lib/python3.10/site-packages/transformers/pipelines/base.py", line 1167, in __call__
    logger.warning_once(
  File "/home/bultmanns/anaconda3/envs/whisper-dia/lib/python3.10/site-packages/transformers/utils/logging.py", line 329, in warning_once
    self.warning(*args, **kwargs)
Message: 'You seem to be using the pipelines sequentially on GPU. In order to maximize efficiency please use a dataset'
Arguments: (<class 'UserWarning'>,)

from whisper-diarization.

MahmoudAshraf97 avatar MahmoudAshraf97 commented on September 22, 2024

Nemo doesn't support 3.12 so far, but this error seems related to HF transformers, I guess it'll work if you comment out the punctuation part

from whisper-diarization.

sbultmann avatar sbultmann commented on September 22, 2024

I see, I am using python 3.10 though not 3.12

from whisper-diarization.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.