issue-tracking icon indicating copy to clipboard operation
issue-tracking copied to clipboard

OfflineExperiment does NOT record Git metadata

Open rgaiacs opened this issue 3 years ago • 3 comments

Describe the Bug

When I use OfflineExperiment instead of Experiment, Comet does not record Git metadata.

Expected behavior

OfflineExperiment record Git metadata like Experiment.

Where is the issue?

  • [X] Comet Python SDK
  • [ ] Comet UI
  • [ ] Third Party Integrations (Huggingface, TensorboardX, Pytorch Lighting etc)

To Reproduce

Use

    experiment = comet_ml.OfflineExperiment(
        project_name="project-name",
        workspace="workspace",
        log_code=True,
        log_git_metadata=True,
        log_git_patch=True,
        log_graph=False,
        auto_param_logging=False,
        auto_metric_logging=False,
        auto_output_logging=False,
        auto_log_co2=False,
        disabled=False,
        offline_directory="comet/",
    )

Link to Comet Project/Experiment

https://www.comet.ml/raniere-silva/ai-for-radiograph-classification/3937d546c7ed42d0a42c615d8b333c80

rgaiacs avatar Feb 14 '22 04:02 rgaiacs

Hello @rgaiacs. Thanks for flagging. I Will try to reproduce this and update you here.

DN6 avatar Feb 15 '22 14:02 DN6

Hi @rgaiacs. I was unable to reproduce this issue. Would you be able to share a test code snippet to reproduce the issue? Additionally, when running the snippet, could you set Comet to debug mode?

You will need to set the following environment variables before running your script.

export COMET_LOGGING_FILE=./comet-debug.log
export COMET_LOGGING_FILE_LEVEL=debug

DN6 avatar Feb 21 '22 13:02 DN6

Dear @DN6. Thanks for the help. I will work to get you with a debug log file in the coming days.

rgaiacs avatar Feb 22 '22 00:02 rgaiacs

Please re-open if any questions or comments.

dsblank avatar Oct 18 '23 15:10 dsblank