Traceback (most recent call last):


 "<stdin>", line 1, in <module>


 "~/.virt/lib/python3.6/site-packages/allennlp/commands/__init__.py", line 7, in <module>

from allennlp.commands.evaluate import Evaluate


 "~/.virt/lib/python3.6/site-packages/allennlp/commands/evaluate.py", line 43, in <module>

from allennlp.models.archival import load_archive


 "~/.virt/lib/python3.6/site-packages/allennlp/models/__init__.py", line 7, in <module>

from allennlp.models.crf_tagger import CrfTagger


 "~/.virt/lib/python3.6/site-packages/allennlp/models/crf_tagger.py", line 15, in <module>

from allennlp.training.metrics import SpanBasedF1Measure


 "~/.virt/lib/python3.6/site-packages/allennlp/training/__init__.py", line 1, in <module>

from allennlp.training.trainer import Trainer


 "~/.virt/lib/python3.6/site-packages/allennlp/training/trainer.py", line 35, in <module>

from allennlp.training.learning_rate_schedulers import LearningRateScheduler


 "~/.virt/lib/python3.6/site-packages/allennlp/training/learning_rate_schedulers.py", line 38, in <module>

"cosine": torch.optim.lr_scheduler.CosineAnnealingLR,
AttributeError: module 'torch.optim.lr_scheduler' has no attribute 'CosineAnnealingLR'

Traceback (most recent call last):


 "object_detection/builders/model_builder_test.py", line 29, in <module>

from object_detection.builders import model_builder


 "C:\deteksi\models\research\object_detection\builders\model_builder.py", line 22, in <module>

from object_detection.builders import box_predictor_builder


 "C:\deteksi\models\research\object_detection\builders\box_predictor_builder.py", line 20, in <module>

from object_detection.predictors import convolutional_box_predictor


 "C:\deteksi\models\research\object_detection\predictors\convolutional_box_predictor.py", line 23, in <module>

slim = tf.contrib.slim
AttributeError: module 'tensorflow' has no attribute 'contrib'