Skip to content

Fbopt matchdiva - #746

Merged
smilesun merged 3 commits into
fboptfrom
fbopt_matchdiva
Jan 18, 2024
Merged

Fbopt matchdiva#746
smilesun merged 3 commits into
fboptfrom
fbopt_matchdiva

Conversation

@smilesun

@smilesunsmilesun commented Jan 16, 2024

Copy link
Copy Markdown
Collaborator

sh run_fbopt_match_diva.sh

comparing output vs setpoint:
[7085897.750000001, -30.02172746658325, 0.0, -1261.7133605957033, 6.6677789211273195]
[7015038.7725, -30.32497723897298, 0.0, -1274.4579399956597, 6.601101131916046]
after epoch: 3,now: 2024-01-16 16:12:00.724106,epoch time: 0:01:26.027096,used: 0:04:57.465544,model: mini_vlcs_te_caltech_diva_b472e25e4_not_commited_2024md_01md_16_16_07_02_seed_0
working direcotry: /home/sunxd/domainlab_master
before controller: current mu: {'beta_d': 0.0009990906643792777, 'beta_y': 0.0009624879443975664, 'beta_x': 0.001, 'gamma_d': 0.001000200053375642, 'mu_recon': 3269.0173724721103}
epo reg loss: [7085897.75, -30.02172746658325, 0.0, -1261.713360595703, 6.6677789211273195]
name reg loss:['mu_recon', 'beta_d', 'beta_x', 'beta_y', 'gamma_d']
after contoller: current mu: {'beta_d': 0.0009987877362964655, 'beta_y': 0.0009502992750782151, 'beta_x': 0.001, 'gamma_d': 0.0010002667467274278, 'mu_recon': 10000.0}
current multiplier: {'mu_recon': 10000.0, 'beta_d': 0.0009987877362964655, 'beta_x': 0.001, 'beta_y': 0.0009502992750782151, 'gamma_d': 0.0010002667467274278}
Traceback (most recent call last):
File "/home/sunxd/domainlab_master/main_out.py", line 17, in <module>
exp.execute()
File "/home/sunxd/domainlab_master/domainlab/exp/exp_main.py", line 72, in execute
flag_stop = self.trainer.tr_epoch(epoch)
File "/home/sunxd/domainlab_master/domainlab/algos/trainers/train_fbopt_b.py", line 138, in tr_epoch
flag = self._decoratee.tr_epoch(epoch, self.flag_setpoint_updated)
File "/home/sunxd/domainlab_master/domainlab/algos/trainers/train_matchdg.py", line 51, in tr_epoch
self.mk_match_tensor(epoch)
File "/home/sunxd/domainlab_master/domainlab/algos/trainers/train_matchdg.py", line 298, in mk_match_tensor
obj_match(
File "/home/sunxd/domainlab_master/domainlab/algos/trainers/compos/matchdg_match.py", line 146, in __call__
self._fill_data(loader)
File "/home/sunxd/domainlab_master/domainlab/algos/trainers/compos/matchdg_match.py", line 68, in _fill_data
list_idx_several_ds.extend(list(idx_e.cpu().numpy()))
AttributeError: 'tuple' object has no attribute 'cpu'

@smilesun
smilesun changed the base branch from master to fboptJanuary 17, 2024 08:45
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (100c687) 92.88% compared to head (2d70f93) 92.86%.

FilesPatch %Lines
domainlab/algos/trainers/train_fbopt_b.py66.66%1 Missing ⚠️
Additional details and impacted files
@@ Coverage Diff @@## fbopt #746 +/- ##
==========================================
- Coverage 92.88% 92.86% -0.02% 
==========================================
Files 133 133 Lines 5509 5511 +2 ==========================================
+ Hits 5117 5118 +1 - Misses 392 393 +1 
FlagCoverage Δ
unittests92.86% <75.00%> (-0.02%)⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@smilesun

Copy link
Copy Markdown
CollaboratorAuthor

should be fixed after #751

@smilesun
smilesun merged commit 7c92b5e into fboptJan 18, 2024
@smilesun
smilesun deleted the fbopt_matchdiva branch January 18, 2024 14:20
Sign up for freeto 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

@smilesun@codecov-commenter