updates
This commit is contained in:
parent
f270269d43
commit
256bf72f8e
|
@ -2,11 +2,11 @@
|
|||
FROM nvcr.io/nvidia/pytorch:19.08-py3
|
||||
|
||||
# Install dependencies (pip or conda)
|
||||
RUN pip install -U gsutil
|
||||
# RUN pip install -U -r requirements.txt
|
||||
# RUN conda update -n base -c defaults conda
|
||||
# RUN conda install -y -c anaconda future numpy opencv matplotlib tqdm pillow
|
||||
# RUN conda install -y -c conda-forge scikit-image tensorboard pycocotools
|
||||
# conda install pytorch torchvision -c pytorch
|
||||
|
||||
# Install OpenCV with Gstreamer support
|
||||
#WORKDIR /usr/src
|
||||
|
|
|
@ -684,7 +684,7 @@ def print_mutation(hyp, results, bucket=''):
|
|||
with open('evolve.txt', 'a') as f: # append result
|
||||
f.write(c + b + '\n')
|
||||
x = np.unique(np.loadtxt('evolve.txt', ndmin=2), axis=0) # load unique rows
|
||||
np.savetxt('evolve.txt', x[np.argsort(-fitness(x))], '%10.3g') # save sort by fitness
|
||||
np.savetxt('evolve.txt', x[np.argsort(-fitness(x))], '%10.5g') # save sort by fitness
|
||||
|
||||
if bucket:
|
||||
os.system('gsutil cp evolve.txt gs://%s' % bucket) # upload evolve.txt
|
||||
|
|
Loading…
Reference in New Issue