nodefluxio / vortex

A Deep Learning Model Development Framework for Computer Vision
27 stars 6 forks source link

[BUG] ImportError when using comet-ml #113

Closed internnos closed 3 years ago

internnos commented 3 years ago

Describe the bug ImportError: You must import Comet before these modules: torch, tensorboard is encountered when using comet-ml

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

alifahrri commented 3 years ago

thanks @amajidsinar