Giter Club home page Giter Club logo

Comments (17)

Dealizey avatar Dealizey commented on July 17, 2024 1

Thanks! Hope the Chinese version will be published soon.❤️❤️❤️

from queryable.

mazzzystar avatar mazzzystar commented on July 17, 2024

It appears to be a bug introduced in the iOS 17 beta, where input text is being embedded into the same vector. Currently, I am unable to determine the exact cause of this issue.

from queryable.

RupGautam avatar RupGautam commented on July 17, 2024

I can confirm the results are the same, not always, but most of the time.

from queryable.

mazzzystar avatar mazzzystar commented on July 17, 2024

@RupGautam
I've debugged the issue. I found that all text inputs were embedded into the same value in iOS 17 beta. However, it works correctly on iOS 16. I suspect it was the issue related with model loading, didn't figured out the problem yet.

from queryable.

RupGautam avatar RupGautam commented on July 17, 2024

@mazzzystar
"Deep green/blue water with mountains around"

"Deep green/blue water without mountains around"

Gives me the same results. ⁉️

from queryable.

mazzzystar avatar mazzzystar commented on July 17, 2024

@RupGautam Right, you're using iOS 17 beta. As I've mentioned before, every input query in iOS 17 got the same text embedding vector output, which may be cause by model loading failure.

from queryable.

mazzzystar avatar mazzzystar commented on July 17, 2024

@RupGautam @flipped0119
did you use Xcode 15 beta to compile? I've just tried iOS 17.0 simulator on my Xcode 14.3.1 and it works correctly. I do got abnormal result on my Xcode 15, it seems to be a Xcode issue.

from queryable.

Dealizey avatar Dealizey commented on July 17, 2024

@mazzzystar So has the bug been fixed with Xcode beta?

from queryable.

mazzzystar avatar mazzzystar commented on July 17, 2024

@mazzzystar So has the bug been fixed with Xcode beta?

No, I'm saying that when using Xcode 14 + iOS 17 beta simulator to run the app, everything seems to be normal. While in Xcode 15 + iOS 17 the issue occurs.

But I only have one phone, and when your phone is upgraded to iOS 17 beta, you can't submit new app to App Store. So I couldn't test this issue on my my real phone.

from queryable.

mazzzystar avatar mazzzystar commented on July 17, 2024

Confirmed, when upgraded to iOS 17 public beta, everything back to normal.

from queryable.

mazzzystar avatar mazzzystar commented on July 17, 2024

@flipped0119 @RupGautam @Dealizey
Finally I found the issue. For iOS 17, ou need to explicitly set dtype=np.int32 for the input tensor when export model.

max_seq_length = 77

text_encoder_model = ct.convert(
            traced_model,
            convert_to="mlprogram",
            minimum_deployment_target=ct.target.iOS16,
            inputs=[ct.TensorType(name="prompt",
                                 shape=example_input.shape),
                                 dtype=np.int32)],
            outputs=[ct.TensorType(name="embOutput", dtype=np.float32)],
        )

from queryable.

Dealizey avatar Dealizey commented on July 17, 2024

@mazzzystar Great! When will this bug fix be published?

from queryable.

mazzzystar avatar mazzzystar commented on July 17, 2024

@Dealizey
It's just published. https://apps.apple.com/us/app/queryable-find-photo-by-text/id1661598353

from queryable.

Dealizey avatar Dealizey commented on July 17, 2024

It's quite interesting that the Chinese App Store didn't show that update, but the US one did. Maybe it's because of the CDN configuration.

from queryable.

mazzzystar avatar mazzzystar commented on July 17, 2024

@Dealizey Queryable & 寻隐 are using two models, so it's two app. In Chinese version, this update is still under beta testing.

from queryable.

mazzzystar avatar mazzzystar commented on July 17, 2024

@Dealizey It is available now.

from queryable.

Dealizey avatar Dealizey commented on July 17, 2024

Got that. Thanks a lot!

from queryable.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.