Skip to content

Training error #4

Open
Open
@darkasevgen

Description

@darkasevgen

Hi @LeslieZhoa ! How can you compare the dictionary and the float?

if loss < mn_loss:

This method is called here:

acc_num,mn_loss,stop_flag = self.early_stop_wait(self.get_loss_from_val(val_loss),acc_num,mn_loss,epoch)

But the val_loss obtained in CCNTrainer.evalution is an empty dictionary:

def evalution(self,test_loader,steps,epoch):
loss_dict = {}
with torch.no_grad():
fake_s,_ = self.netGs([self.sample_z])
fake_t,_ = self.gt_ema([self.sample_z])
if self.args.rank == 0 :
self.val_vis.display_current_results(self.select_img([fake_s,fake_t]),steps)
# self.val_vis.display_current_results(self.select_img([fake_t]),steps)
return loss_dict

I want to understand how to fix this and what metrics to count? And as I understand it, you trained the network without early_stopping. How many epochs/iterations did it take?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions