mirror of
https://github.com/placeholder-soft/chroma.git
synced 2026-04-30 04:45:01 +08:00
Merge pull request #80 from chroma-core/jeff/backup-restore
Clickhouse/Index backup and restore scripts
This commit is contained in:
5
examples/yolov3/results.py
Normal file
5
examples/yolov3/results.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from chroma_client import Chroma
|
||||
|
||||
chroma = Chroma()
|
||||
|
||||
print(chroma.get_results('yolov3_1_1'))
|
||||
@@ -89,6 +89,10 @@ if __name__ == "__main__":
|
||||
end = time.time()
|
||||
print("Time to get nearest neighbors: " +'{0:.2f}'.format((end - start)) + 's')
|
||||
|
||||
task = chroma.calculate_results()
|
||||
print(task)
|
||||
print(chroma.get_task_status(task['task_id']))
|
||||
|
||||
fetched = chroma.count()
|
||||
print("Records loaded into the database: ", fetched)
|
||||
del chroma
|
||||
|
||||
Reference in New Issue
Block a user