Closed Sanketyeru closed 6 years ago
Hey, Sanket. To run the deepRanking.py you need the triplets.txt file. To generate the triplets.txt, you will have to run the tripletSampler.py. For your custom dataset, you will have to segregate similar images to different folders. The structure of your dataset will be like:
dataset/
|__SimilarityClass1/
| |__Image1.jpg, Image2.jpg and so on....
|
|__SimilarityClass2/
| |_Image1.jpg, Image2.jpg and so on....
|
and so on...
Now, run the tripletSampler.py script with this. Hope this helps :) Let me know if you have any further questions
How to I generate the deepranking.h5?
I am currently getting an error when I try to run deepRanking.py: python deepRanking.py
Traceback (most recent call last):
File "deepRanking.py", line 121, in
@CattleOfRa, Inside the file "deepranking.py", you need to comment the line where it is loading that model. as shown in image below.
And that should solve this problem.
Hey, Daniel. Sanket is right, you just have to comment out that line. The line tries to load the saved weights. If the weights are not in the path mentioned in that line, it throws this error.
Hey hi, Akarsh, I am new in this area of work. Needs some guidance from you. For the image-similarity-ranking how do I generate the triplet.txt file? Basically, I didn't understand which script has to be run fast and how to use it with my custom dataset. it will be very useful for me if you could guild me for this.