You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
When I run the example in the reademe. I got the following error after fixing issues mentioned in #20 .
After tracing the code, I found it is caused by Nan happened in ln:383 compute_label_stats in flow.py.
I tried to use using eigen_correction='constant' to ensure the PSDness of cov matrix but it didn't work.
A workaround I found helpful is setting diagonal_cov = True.
I would like to confirm whether setting diagnoal_cov = True is a valid way to deal with the issue. A side question: xonly, xonly-attached, and xyaug are corresponding to fd, jd-fl, and jd-vl in the paper? Thanks for your time in advance.
TypeErrorTraceback (mostrecentcalllast)
/tmp/ipykernel_48265/2326306459.pyin<module>22device='cpu'23 )
--->24d,out=flow.flow()
~/Desktop/kuan/otdd/otdd/pytorch/flows.pyinflow(self, tol)
477pbar.set_description(f'Flow Step {iter}/{len(self.times)}, F_t={obj:8.2f}')
478self.callback.on_step_begin(self.otdd, iter)
-->479obj=self.step(iter)
480logger.info(f't={t:8.2f}, F(a_t)={obj:8.2f}') # Although things have been updated, this is obj of time t still481self.history.append(obj)
~/Desktop/kuan/otdd/otdd/pytorch/flows.pyinstep(self, iter)
454ifself.otdd.inner_ot_method!='exact':
455logger.info('Performing stats update...')
-->456self.stats_update()
457458ifself.compute_coupling=='every_iteration':
~/Desktop/kuan/otdd/otdd/pytorch/flows.pyinstats_update(self)
393 )
394iftorch.isnan(self.otdd.Covs[0]).any():
-->395pdb.set_trace(header='Nans in Cov Matrices')
396397TypeError: set_trace() gotanunexpectedkeywordargument'header'
The text was updated successfully, but these errors were encountered:
Hello
When I run the example in the reademe. I got the following error after fixing issues mentioned in #20 .
After tracing the code, I found it is caused by
Nan
happened inln:383 compute_label_stats
inflow.py
.I tried to use using
eigen_correction='constant'
to ensure the PSDness of cov matrix but it didn't work.A workaround I found helpful is setting
diagonal_cov = True
.I would like to confirm whether setting
diagnoal_cov = True
is a valid way to deal with the issue. A side question: xonly, xonly-attached, and xyaug are corresponding to fd, jd-fl, and jd-vl in the paper? Thanks for your time in advance.The text was updated successfully, but these errors were encountered: