pythonlessons / mltu

Machine Learning Training Utilities (for TensorFlow and PyTorch)
MIT License
160 stars 100 forks source link

model.onnx file is not creating #26

Closed Zain-ul-abdin0 closed 11 months ago

Zain-ul-abdin0 commented 11 months ago

hi! first of all when I am creating model, onnx file is not generating. And while training model, do we need to name the image with captcha having characters ???????????????????????????????????????????????????????????????????????????????

pythonlessons commented 11 months ago

First of all, this is rude to write so much "?". I don't want to help you with such a rude attitude. Second, before telling that it's not creating, you should write Python version you use, the tensorflow version and the tf2onnx version.

Naming doesn't matter; it's up to you how you preprocess true labels, either from the name or other source.

Can't help you without any details...

johny1122 commented 11 months ago

Hi, we have the same issue.

we are using:

There is a problem in convert.py of the tf2onnx library which prints us the error: "'funcgraph' object has no attribute '_captures'" in line 457

Thanks!

pythonlessons commented 11 months ago

As of new TensorFlow release (2.13.0), tf2onnx haven't updated their library yet. Downgrade TensorFlow to 2.12.0 and you'll be good.

johny1122 commented 11 months ago

Thanks for the fast reply! We are working on Mac and found that installing tensorflow-macos package version 2.12.0 (without installing tensorflow) and latest mltu version (1.0.15) solved the problem :)

pythonlessons commented 11 months ago

Great!