Closed dnth closed 9 months ago
@dnth please create a function def init_search inside of fastdup_controller, it will call the fastdup.init_search() and assign d and model path from self. (fastdup has no state, fd.init_search() will have state
Currently fd.init_search
returns an error. As far as I remember V1 API does not yet support search.
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[14], line 1
----> 1 fd.init_search(10)
AttributeError: 'Fastdup' object has no attribute 'init_search'
should be fixed in 1.41
What happened?
I ran fastdup with
model_path='dinov2s'
. However when I raninit_search
I notice that the
d
andmodel_path
are NOT passed into theinit_search
function. It defaults to usingd=576
model_path=/home/dnth/anaconda3/envs/dinov2/lib/python3.10/site-packages/fastdup/UndisclosedFastdupModel.ort
To make the search function work with
dinov2s
I had to specify the parameters explicitly:What did you expect to see?
Arguments are passed into the search function without users specifying it explicitly.
The usage of
Should be the same regardless of whether the user uses dinov2s or fastdup model.
What version of fastdup were you runnning on?
1.38
What version of Python were you running on?
Python 3.10
Operating System
Ubuntu 22.04
Reproduction steps
No response
Relevant log output
No response
Attach a screenshot [Optional]
No response
Contact Details [Optional]
No response