Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TensorBoardLogger creates another tfevents file. #740

Closed
S-aiueo32 opened this issue Jan 24, 2020 · 0 comments · Fixed by #777
Closed

TensorBoardLogger creates another tfevents file. #740

S-aiueo32 opened this issue Jan 24, 2020 · 0 comments · Fixed by #777
Labels
bug Something isn't working help wanted Open to be worked on
Milestone

Comments

@S-aiueo32
Copy link
Contributor

🐛 Bug

TensorBoardLogger creates another tfevents file when fit() is running.
It seems that no metrics are logged in the redundant file, but it will be shown in TensorBoard as a run.
I don't do anything about loggers in my LightningModules.

Expected file structure:

|
|- save_dir
|    |- name
|         |- version_0
|               |- events.out.tfevents.1579833025.ip-xxx-xxx-xxx-xxx.17584.0
|               |- meta_tags.csv
|- train.py

Observed file structure:

|
|- save_dir
|    |- name
|         |- version_0
|               |- 1579833032
|                     |- events.out.tfevents.1579833032.ip-xxx-xxx-xxx-xxx.17584.1
|               |- events.out.tfevents.1579833025.ip-xxx-xxx-xxx-xxx.17584.0
|               |- meta_tags.csv
|- train.py

To Reproduce / Code sample

Basic training step of PyTorch Lightning:

# define a logger
logger = TensorBoardLogger(
    save_dir='runs',
    name=args.model
)

# define callbacks
ckpt_path = Path(logger.experiment.log_dir) / 'ckpts'
checkpoint_callback = ModelCheckpoint(filepath=ckpt_path)

# instantiate trainer
trainer = Trainer(
    logger=logger,
    checkpoint_callback=checkpoint_callback,
    gpus=args.gpus
)

# define a model
model = CoolModel(args)

# start training!
trainer.fit(model)

Environment

  • PyTorch Lightning Version (e.g., 1.0): 0.6.0
  • PyTorch Version (e.g., 1.0): 1.3.1
  • OS (e.g., Linux): Ubuntu 16.04 LTS
  • How you installed PyTorch (conda, pip, source): pip
  • Build command you used (if compiling from source):
  • Python version: 3.7.4
  • CUDA/cuDNN version: 10.1
@S-aiueo32 S-aiueo32 added the bug Something isn't working label Jan 24, 2020
@Borda Borda added help wanted Open to be worked on need fix labels Jan 24, 2020
@Borda Borda added this to the 0.6.1 milestone Feb 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Open to be worked on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants