haofanwang / inswapper

One-click Face Swapper and Restoration powered by insightface 🔥
522 stars 81 forks source link

output and inferred shape have different ranks - when running the example in readme #20

Open bamtheboozle opened 6 months ago

bamtheboozle commented 6 months ago

following the basic example in readme, (swap man1 and man2 into mans1.jpeg) it does not generate the face swap and it throws:

running on a mac, CPU provider

2024-04-10 10:17:33.073537 [E:onnxruntime:, sequential_executor.cc:514 ExecuteKernel] Non-zero status code returned while running CoreML_11777492068329204276_6 node. Name:'CoreMLExecutionProvider_CoreML_11777492068329204276_6_6' Status Message: Exception: /Users/runner/work/1/s/onnxruntime/core/providers/coreml/model/model.mm:71 InlinedVector<int64_t> (anonymous namespace)::GetStaticOutputShape(gsl::span<const int64_t>, gsl::span<const int64_t>, const logging::Logger &) inferred_shape.size() == coreml_static_shape.size() was false. CoreML static output shape ({1,1,1,800,1}) and inferred shape ({3200,1}) have different ranks.

Toshi711 commented 5 months ago

any solution?

stefanotto commented 4 months ago

I'm having the same issue.

virtuemantra commented 4 months ago

is there any solution for this error its happening on Mac

randylu commented 2 months ago

any solution?