PINTO0309 / onnx2tf

Self-Created Tools to convert ONNX files (NCHW) to TensorFlow/TFLite/Keras format (NHWC). The purpose of this tool is to solve the massive Transpose extrapolation problem in onnx-tensorflow (onnx-tf). I don't need a Star, but give me a pull request.
MIT License
662 stars 65 forks source link

Fix multi-platform image push #639

Closed ysohma closed 3 months ago

ysohma commented 3 months ago

1. Content and background

In #636, building and pushing arm64 image are added in release workflow. However, amd64 image not is available in the registory. This PR fix this issue.

2. Summary of corrections

Tested in my fork. I can find both linux/amd64 and linux/arm64 are available for a tag.

image

Test workflow: https://github.com/ysohma/onnx2tf/actions/runs/9173738033

Note

Building arm64 image takes so long (almost 1 hour) because of arm64 emulation on x86.

3. Before/After (If there is an operating log that can be used as a reference)

4. Issue number (only if there is a related issue)

PINTO0309 commented 3 months ago

Thanks!

PINTO0309 commented 3 months ago

It was necessary to address the situation where only lowercase account names were supported.

https://github.com/PINTO0309/onnx2tf/actions/runs/9176998898

#11 [6/8] WORKDIR /workdir
#11 DONE 0.0s

#12 [7/8] RUN sudo chown user:user /workdir
#12 DONE 0.1s

#13 [8/8] RUN echo 'export CUDA_VISIBLE_DEVICES=-1' >> ${HOME}/.bashrc     && echo 'export TF_CPP_MIN_LOG_LEVEL=3' >> ${HOME}/.bashrc
#13 DONE 0.1s

#14 exporting to image
#14 exporting layers
#14 exporting layers 55.9s done
#14 exporting manifest sha256:94ac9a8bce3b87d4aa19b7382044cf2167b179e0d61738374b0cc6d73d0eb454 done
#14 exporting config sha256:5a64b358b7d7f9e85bb8e8a8b4aed5bda9987e59e58cd7124b7d1c0b2a0bb6db done
#14 ERROR: failed to parse ref "ghcr.io/PINTO0309/onnx2tf": invalid reference format: repository name (PINTO0309/onnx2tf) must be lowercase
------
 > exporting to image:
------
ERROR: failed to solve: failed to parse ref "ghcr.io/PINTO0309/onnx2tf": invalid reference format: repository name (PINTO0309/onnx2tf) must be lowercase
Error: buildx failed with: ERROR: failed to solve: failed to parse ref "ghcr.io/PINTO0309/onnx2tf": invalid reference format: repository name (PINTO0309/onnx2tf) must be lowercase
PINTO0309 commented 3 months ago

commit: https://github.com/PINTO0309/onnx2tf/commit/5205c9bf7baedd6e3f4c50f170563a06b9babf5f

https://github.com/PINTO0309/onnx2tf/actions/runs/9191230618