comet-ml / issue-tracking

Questions, Help, and Issues for Comet ML
https://www.comet.ml
85 stars 7 forks source link

🐛 in Y-axis of Loss Graph #555

Closed LuluW8071 closed 1 month ago

LuluW8071 commented 1 month ago

Describe the Bug

The same line of code logs correct loss values for train_loss graph that is logged for 50steps and another loss graph logs different value.

Expected behavior

Y-axis of both graphs need to be on same range

Where is the issue?

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Stack Trace

If possible please include the full stack trace of your issue here

self.log('train_loss', loss, on_step=True, on_epoch=False, prog_bar=True, logger=True, sync_dist=self.sync_dist)

Screenshots or GIFs

image

Link to Comet Project/Experiment

link to project

dsblank commented 1 month ago

Hello @LuluW8071! What is the "self" in the above code? I don't know of a log() method in any Comet SDK.

LuluW8071 commented 1 month ago

What is the "self" in the above code? I don't know of a log() method in any Comet SDK.

Thanks for responding @dsblank. The self.log logs the metrics on progress bar which also logs in comet_ml. The framework I used is lighting AI.

The full trainer code can be found here