aimet icon indicating copy to clipboard operation
aimet copied to clipboard

Aimet-tensorflow-Resnet50

Open keerthana-soundarrajan opened this issue 2 years ago • 4 comments

Traceback (most recent call last): File "evaluators/resnet50_tf2_quanteval.py", line 13, in from aimet_zoo_tensorflow.resnet50_tf2.model.model_definition import Resnet50 File "/home/keerdhan/anaconda3/envs/ai_tf/lib/python3.8/site-packages/aimet_zoo_tensorflow/resnet50_tf2/model/model_definition.py", line 13, in from aimet_tensorflow.keras.quantsim import QuantizationSimModel # pylint:disable = import-error File "/home/keerdhan/anaconda3/envs/ai_tf/lib/python3.8/site-packages/aimet_tensorflow/keras/quantsim.py", line 53, in from aimet_tensorflow.keras.quant_sim.qc_quantize_wrapper import QcQuantizeWrapper, QuantizerSettings File "/home/keerdhan/anaconda3/envs/ai_tf/lib/python3.8/site-packages/aimet_tensorflow/keras/quant_sim/qc_quantize_wrapper.py", line 47, in from aimet_tensorflow.keras.quant_sim.tensor_quantizer import ActivationTensorQuantizer,
File "/home/keerdhan/anaconda3/envs/ai_tf/lib/python3.8/site-packages/aimet_tensorflow/keras/quant_sim/tensor_quantizer.py", line 46, in import aimet_common.libaimet_tf_ops as qcops File "/home/keerdhan/anaconda3/envs/ai_tf/lib/python3.8/site-packages/aimet_common/libaimet_tf_ops/init.py", line 38, in __module = tf.load_op_library(str(pathlib.Path(file).parent.parent / 'libaimet_tf_ops.so')) File "/home/keerdhan/anaconda3/envs/ai_tf/lib/python3.8/site-packages/tensorflow/python/framework/load_library.py", line 57, in load_op_library lib_handle = py_tf.TF_LoadLibrary(library_filename) tensorflow.python.framework.errors_impl.NotFoundError: /home/keerdhan/anaconda3/envs/ai_tf/lib/python3.8/site-packages/aimet_common/libaimet_tf_ops.so: undefined symbol: _ZNK10tensorflow8OpKernel11TraceStringERKNS_15OpKernelContextEb

I am facing issue to execute this command, I have installed all the aimet dependencies I have the path to my dataset also but still if I try to execute the below command im getting the above error

python aimet_zoo_tensorflow/resnet50_tf2/evaluators/resnet50_tf2_quanteval.py
--dataset-path
--batch-size
--model-config

keerthana-soundarrajan avatar Jun 19 '23 11:06 keerthana-soundarrajan

@quic-hanwxion, could you please take a look at this. Thanks

quic-mangal avatar Jun 20 '23 16:06 quic-mangal

Sure I'll take a look

quic-hanwxion avatar Jun 20 '23 16:06 quic-hanwxion

@keerthana-soundarrajan , it looks like your AIMET is missing some ops so it might not be built correctly. Can you share your running environment? AIMET version: tensorflow version:

quic-hanwxion avatar Jun 20 '23 21:06 quic-hanwxion

I'm having the same problem. My AIMET=1.26.1 , tensorflow-gpu=2.4.3。 $python auto_quant.py image

I see that AIMET version 1.26.1 is compatible with tensorflow 2.4, but it still reports an error when installing: aimettensorflow tf-gpu-1.26.1 requires tensorflow-gpu==2.10.1, but you have tensorflow-gpu 2.4.3 which is incompatible.

chengao923 avatar Jun 18 '24 10:06 chengao923