This is an official PyTorch implementation of our NeurIPS 2023 paper "GeoCLIP: Clip-Inspired Alignment between Locations and Images for Effective Worldwide Geo-localization"
In the following code, weather the self.gps of self._dequeue_and_enqueue(self.gps) should be modified to self.gps_queue?
def append_gps_queue_features(self, gps_features):
""" Compute the GPS queue features and append them to the given GPS features."""
# Get the GPS queue features
location_queue = self.gps_queue.t().detach()
gps_queue_features = self.location_encoder(location_queue)
gps_queue_features = F.normalize(gps_queue_features, dim=1)
# Concatenate Features (GPS Features & GPS Queue Features)
gps_features = torch.cat([gps_features, gps_queue_features], dim=0)
# Update GPS queue
self._dequeue_and_enqueue(self.gps)
return gps_features
Dear author, I appreciate your work and would like to get the details of Geoclip's training. Can you publish the complete training code? Thank you.
Also, in the geoclip code, self. opt is not defined in init. How can this be changed?
In the following code, weather the self.gps of self._dequeue_and_enqueue(self.gps) should be modified to self.gps_queue?
Looking forward to your response, thank you.