Comments (17)
Thanks! Hope the Chinese version will be published soon.❤️❤️❤️
from queryable.
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.
I can confirm the results are the same, not always, but most of the time.
from queryable.
@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.
@mazzzystar
"Deep green/blue water with mountains around"
"Deep green/blue water without mountains around"
Gives me the same results.
from queryable.
@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.
@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.
@mazzzystar So has the bug been fixed with Xcode beta?
from queryable.
@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.
Confirmed, when upgraded to iOS 17 public beta
, everything back to normal.
from queryable.
@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.
@mazzzystar Great! When will this bug fix be published?
from queryable.
@Dealizey
It's just published. https://apps.apple.com/us/app/queryable-find-photo-by-text/id1661598353
from queryable.
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.
@Dealizey Queryable & 寻隐 are using two models, so it's two app. In Chinese version, this update is still under beta testing.
from queryable.
@Dealizey It is available now.
from queryable.
Got that. Thanks a lot!
from queryable.
Related Issues (20)
- Multiple languages supports HOT 4
- Synology(群晖) NAS really needs this feature to search photos. HOT 13
- Android support HOT 56
- Method of calculating similarity HOT 2
- Could you please share the Chinese CLIP model used in 「寻隐」? HOT 3
- RuntimeError when convert to CoreML model HOT 2
- Search does not return the correct image when using iCloud Library HOT 1
- To quickly locate photos in the album HOT 1
- think about image-to-text HOT 4
- Feature: Image Library Auto Indexing HOT 1
- PhotoSearchModel.swift: "cosine_similarity" function HOT 3
- Is it possible to give support to devices running Android 9? HOT 1
- Using LSH to Accelerate Embedding Similarity Search HOT 1
- Similarities seem wrong HOT 1
- Adds favorites and saves to album features.
- [Feature Request] Export calculated embeddings from the app HOT 2
- Photo similarity look a little bit low HOT 2
- 实在无法注册一个Google账户,每次都被封,请问能不能给一个安卓版apk文件? HOT 2
- 目前已有一个win10版,哪位大佬能开发一个支持中文的win10版
- pytorch version and coremltools version?export failed with coremltools. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from queryable.