-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing requirements file #1
Comments
Hello, dear Mohammad, I am very happy that you found my tool interesting.❤️
Thank you very much for reminding me of the requirements.txt file, I
uploaded it to GitHub a few minutes ago.
Regarding the error you encountered, it is related to the
TFAutoModelForCausalLM class in the transformers library.
If you already have this library installed in Python, I suggest that you
first make sure that you are using the latest version of transformers. You
can update this library to the latest version with the following command:
pip install --upgrade transformers
If you still encounter this error, I suggest you install the version of the
libraries that we currently use for the tool.
These versions are: transformers==4.36.2, opencv-python==4.8.0.74, numpy.
The versions of the libraries that are in the requirements.txt file are
similar to the versions that I introduced to you.
If you still have this error, send us an email, we will be happy to help
you again and try to solve your problem with new instructions.🤝
…On Mon, Jan 22, 2024 at 6:48 PM Mohmmd ***@***.***> wrote:
hey amir, nice job with your work , you just forgot the requirements.txt
in source, i`m kinda having problem here , it may caused by requirements
installed version.
the error :
while loading with TFVisionEncoderDecoderModel, an error is thrown:
Traceback (most recent call last):
File
"C:\Users\Mohmd\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\transformers\pipelines\base.py",
line 278, in infer_framework_load_model
model = model_class.from_pretrained(model, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"C:\Users\Mohmd\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\transformers\modeling_tf_utils.py",
line 2902, in from_pretrained
model = cls(config, *model_args, **model_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"C:\Users\Mohmd\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\transformers\models\vision_encoder_decoder\modeling_tf_vision_encoder_decoder.py",
line 219, in *init*
decoder = TFAutoModelForCausalLM.from_config(config.decoder,
name="decoder")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"C:\Users\Mohmd\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\transformers\models\auto\auto_factory.py",
line 443, in from_config
raise ValueError(
ValueError: Unrecognized configuration class <class
'transformers.models.trocr.configuration_trocr.TrOCRConfig'> for this kind
of AutoModel: TFAutoModelForCausalLM.
Model type should be one of BertConfig, CamembertConfig, CTRLConfig,
GPT2Config, GPT2Config, GPTJConfig, OpenAIGPTConfig, OPTConfig,
RemBertConfig, RobertaConfig, RobertaPreLayerNormConfig, RoFormerConfig,
TransfoXLConfig, XGLMConfig, XLMConfig, XLMRobertaConfig, XLNetConfig.
/\thanks again/\
—
Reply to this email directly, view it on GitHub
<#1>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AX3DU4ATY55PAGRPNK7KKFDYPZ7N5AVCNFSM6AAAAABCFMMJAOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA4TIMJVGIYTQOI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
hello please help me in solve captcha ve.cbi.ir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hey amir, nice job with your work , you just forgot the requirements.txt in source, i`m kinda having problem here , it may caused by requirements installed version.
the error :
while loading with TFVisionEncoderDecoderModel, an error is thrown:
Traceback (most recent call last):
File "C:\Users\Mohmd\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\transformers\pipelines\base.py", line 278, in infer_framework_load_model
model = model_class.from_pretrained(model, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Mohmd\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\transformers\modeling_tf_utils.py", line 2902, in from_pretrained
model = cls(config, *model_args, **model_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Mohmd\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\transformers\models\vision_encoder_decoder\modeling_tf_vision_encoder_decoder.py", line 219, in init
decoder = TFAutoModelForCausalLM.from_config(config.decoder, name="decoder")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Mohmd\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\transformers\models\auto\auto_factory.py", line 443, in from_config
raise ValueError(
ValueError: Unrecognized configuration class <class 'transformers.models.trocr.configuration_trocr.TrOCRConfig'> for this kind of AutoModel: TFAutoModelForCausalLM.
Model type should be one of BertConfig, CamembertConfig, CTRLConfig, GPT2Config, GPT2Config, GPTJConfig, OpenAIGPTConfig, OPTConfig, RemBertConfig, RobertaConfig, RobertaPreLayerNormConfig, RoFormerConfig, TransfoXLConfig, XGLMConfig, XLMConfig, XLMRobertaConfig, XLNetConfig.
/\thanks again/\
The text was updated successfully, but these errors were encountered: