cosine_metric_learning icon indicating copy to clipboard operation
cosine_metric_learning copied to clipboard

Training Sample Dataset Error

Open NaeemKhan333 opened this issue 5 years ago • 3 comments

I am training on the Mars data set but I am facing following error "" EnqueueError: Cannot take a larger sample than population when 'replace=False' "" Please guide me

NaeemKhan333 avatar Jul 18 '19 10:07 NaeemKhan333

Looks like there is something wrong with the data. My guess is that the error occurs during batch sampling. Have a look at issue #9. The training script prints the number of identities in the data here. What is the output?

nwojke avatar Jul 19 '19 06:07 nwojke

@nwojke Hello, Thank you for your sharing for this code.

I got the following error when running the train_veri.py.

/home/duyao/anaconda3/envs/cosine_metric_learning/lib/python3.7/site-packages/tensorflow/python/summary/writer/writer.py:386: UserWarning: Attempting to use a closed FileWriter. The operation will be a noop unless the FileWriter is explicitly reopened.

However, I found the reopen.py was existed in your profile.

def reopen(self): """Reopens the EventFileWriter.

Can be called after `close()` to add more events in the same directory.
The events will go into a new events file.

Does nothing if the EventFileWriter was not closed.
"""
self.event_writer.reopen()
self._closed = False

So could you give me some advice for solving this problem? Thank you so much.

duyao-art avatar Jun 02 '20 12:06 duyao-art

@nwojke Hello, Thank you for your sharing for this code.

I got the following error when running the train_veri.py.

/home/duyao/anaconda3/envs/cosine_metric_learning/lib/python3.7/site-packages/tensorflow/python/summary/writer/writer.py:386: UserWarning: Attempting to use a closed FileWriter. The operation will be a noop unless the FileWriter is explicitly reopened.

However, I found the reopen.py was existed in your profile.

def reopen(self): """Reopens the EventFileWriter.

Can be called after close() to add more events in the same directory. The events will go into a new events file.

Does nothing if the EventFileWriter was not closed. """ self.event_writer.reopen() self._closed = False

So could you give me some advice for solving this problem? Thank you so much.

duyao-art avatar Jun 09 '20 06:06 duyao-art