🚩 Report

#2
by seniorghser - opened

can't use the model both using the interface or locally installed,same problem met maybe is

2024-07-11 22:49:24.670634: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0.
2024-07-11 22:49:25.971787: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0.
WARNING:tensorflow:From D:\Anaconda\envs\mono_project\Lib\site-packages\tf_keras\src\losses.py:2976: The name tf.losses.sparse_softmax_cross_entropy is deprecated. Please use tf.compat.v1.losses.sparse_softmax_cross_entropy instead.

Traceback (most recent call last):
File "F:\TOOL\works\image_quality_definer\hand_detect\badhand_detecter.py", line 4, in
pipe = pipeline("image-classification", model="zac/Bad_hands")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Anaconda\envs\mono_project\Lib\site-packages\transformers\pipelines_init_.py", line 906, in pipeline
framework, model = infer_framework_load_model(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Anaconda\envs\mono_project\Lib\site-packages\transformers\pipelines\base.py", line 296, in infer_framework_load_model
raise ValueError(
ValueError: Could not load model zac/Bad_hands with any of the following classes: (<class 'transformers.models.auto.modeling_auto.AutoModelForImageClassification'>, <class 'transformers.models.auto.modeling_tf_auto.TFAutoModelForImageClassification'>, <class 'transformers.models.vit.modeling_vit.ViTForImageClassification'>, <class 'transformers.models.vit.modeling_tf_vit.TFViTForImageClassification'>). See the original errors:

while loading with AutoModelForImageClassification, an error is thrown:
Traceback (most recent call last):
File "D:\Anaconda\envs\mono_project\Lib\site-packages\transformers\pipelines\base.py", line 283, in infer_framework_load_model
model = model_class.from_pretrained(model, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Anaconda\envs\mono_project\Lib\site-packages\transformers\models\auto\auto_factory.py", line 563, in from_pretrained
return model_class.from_pretrained(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Anaconda\envs\mono_project\Lib\site-packages\transformers\modeling_utils.py", line 3418, in from_pretrained
raise EnvironmentError(
OSError: zac/Bad_hands does not appear to have a file named pytorch_model.bin, tf_model.h5, model.ckpt or flax_model.msgpack.

while loading with TFAutoModelForImageClassification, an error is thrown:
Traceback (most recent call last):
File "D:\Anaconda\envs\mono_project\Lib\site-packages\transformers\pipelines\base.py", line 283, in infer_framework_load_model
model = model_class.from_pretrained(model, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Anaconda\envs\mono_project\Lib\site-packages\transformers\models\auto\auto_factory.py", line 563, in from_pretrained
return model_class.from_pretrained(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Anaconda\envs\mono_project\Lib\site-packages\transformers\modeling_tf_utils.py", line 2877, in from_pretrained
raise EnvironmentError(
OSError: zac/Bad_hands does not appear to have a file named pytorch_model.bin, tf_model.h5 or model.ckpt

while loading with ViTForImageClassification, an error is thrown:
Traceback (most recent call last):
File "D:\Anaconda\envs\mono_project\Lib\site-packages\transformers\pipelines\base.py", line 283, in infer_framework_load_model
model = model_class.from_pretrained(model, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Anaconda\envs\mono_project\Lib\site-packages\transformers\modeling_utils.py", line 3418, in from_pretrained
raise EnvironmentError(
OSError: zac/Bad_hands does not appear to have a file named pytorch_model.bin, tf_model.h5, model.ckpt or flax_model.msgpack.

while loading with TFViTForImageClassification, an error is thrown:
Traceback (most recent call last):
File "D:\Anaconda\envs\mono_project\Lib\site-packages\transformers\pipelines\base.py", line 283, in infer_framework_load_model
model = model_class.from_pretrained(model, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Anaconda\envs\mono_project\Lib\site-packages\transformers\modeling_tf_utils.py", line 2877, in from_pretrained
raise EnvironmentError(
OSError: zac/Bad_hands does not appear to have a file named pytorch_model.bin, tf_model.h5 or model.ckpt

Sign up or log in to comment