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

Training Loop Accessibility #27

Open
Ruining0916 opened this issue Feb 18, 2025 · 1 comment
Open

Training Loop Accessibility #27

Ruining0916 opened this issue Feb 18, 2025 · 1 comment

Comments

@Ruining0916
Copy link

Hi Excellent Authors,

I noticed that you are using xtuner.train() for training. I wonder is there any way that we can access the main training loop such that we can monitor the pred_mask and gt_mask from each iteration, and also monitor ciou score for each iteration? Additionally, I wonder if there is any way to visualize training loss with mmengine (such as the tensorboard visualization)?

Thanks,
Ruining

@HarborYuan
Copy link
Collaborator

Hi @Ruining0916 ,

The loss is calculated here:

sam_loss_mask = self.loss_mask(pred_masks, gt_masks)

You can add some code here to generate some information to monitor.

For the Tensorboard, I think Xtuner already supports Tensorboard. (https://github.com/InternLM/xtuner/blob/main/docs/zh_cn/training/visualization.rst)

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

No branches or pull requests

2 participants