mongo
Some checks failed
s434749-training/pipeline/head There was a failure building this commit

This commit is contained in:
Alagris 2021-05-17 11:58:37 +02:00
parent 33491f6458
commit 3e0649786b

View File

@ -22,11 +22,11 @@ import traceback
ex = Experiment("CNN")
ex.observers.append(FileStorageObserver('sacred_file_observer'))
# try:
# ex.observers.append(MongoObserver(url='mongodb://mongo_user:mongo_password_IUM_2021@localhost:27017',
# db_name='sacred'))
# except Exception as e:
# traceback.print_exc()
try:
ex.observers.append(MongoObserver(url='mongodb://mongo_user:mongo_password_IUM_2021@172.17.0.1:27017',
db_name='sacred'))
except Exception as e:
traceback.print_exc()
device = torch.device('cuda:0') if torch.cuda.is_available() else torch.device('cpu')