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

added optional params cp_path and logfile_name to the setup_logger fu… #862

Merged
merged 3 commits into from
Sep 7, 2024

Conversation

MaxJoas
Copy link

@MaxJoas MaxJoas commented Feb 16, 2024

As of my understanding, the only way to get information about the loss, is in the ~/.cellpose/run.log file.
For me (and probably for others too) I often start multiple runs in parallel. To have one log file per run, it would be useful to set a custom logging dir and logfile name in the function logger_setup in cellpose/io.py.
I've added the optional params cp_path and logfile_name with the default values ".cellpose" and "run.log" (same values that are harcoded in the code)

@carsen-stringer carsen-stringer merged commit 25c0e89 into MouseLand:main Sep 7, 2024
9 checks passed
@carsen-stringer
Copy link
Member

thanks! I am also adding the train and test loss as outputs from train.train_seg

Copy link

codecov bot commented Sep 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 52.97%. Comparing base (49d462b) to head (5f2f541).
Report is 55 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #862      +/-   ##
==========================================
- Coverage   56.00%   52.97%   -3.03%     
==========================================
  Files          17       18       +1     
  Lines        3875     4119     +244     
==========================================
+ Hits         2170     2182      +12     
- Misses       1705     1937     +232     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants