Closed internnos closed 3 years ago
Describe the bug ImportError: You must import Comet before these modules: torch, tensorboard is encountered when using comet-ml
ImportError: You must import Comet before these modules: torch, tensorboard
To Reproduce Steps to reproduce the behavior:
instantiate CometLogger with the required parameters and fit the model using the logger
comet_logger = CometLogger() trainer = pl.Trainer(logger=comet_logger) trainer.fit(model)
Expected behavior Logging happens without error
Screenshots If applicable, add screenshots to help explain your problem.
Solution Simply import import comet_ml at the very top of the training script, as suggested in this post
import comet_ml
thanks @amajidsinar
Describe the bug
ImportError: You must import Comet before these modules: torch, tensorboard
is encountered when using comet-mlTo Reproduce Steps to reproduce the behavior:
instantiate CometLogger with the required parameters and fit the model using the logger
Expected behavior Logging happens without error
Screenshots If applicable, add screenshots to help explain your problem.
Solution Simply import
import comet_ml
at the very top of the training script, as suggested in this post