fix training
This commit is contained in:
parent
b87c1dd859
commit
4349f5af41
4 changed files with 85068 additions and 118911 deletions
|
|
@ -61,13 +61,14 @@ class HistogramDataset(Dataset):
|
|||
|
||||
edited = random_edit(original, seed=idx)
|
||||
|
||||
original_histogram = compute_histogram(
|
||||
original, bins=self._bin_count, normalize=True
|
||||
)
|
||||
edited_histogram = compute_histogram(
|
||||
edited, bins=self._bin_count, normalize=True
|
||||
)
|
||||
|
||||
original_histogram = compute_histogram(
|
||||
original, bins=self._bin_count, normalize=True
|
||||
)
|
||||
|
||||
result = (
|
||||
torch.tensor(edited_histogram, dtype=torch.float).unsqueeze(0),
|
||||
torch.tensor(original_histogram, dtype=torch.float).unsqueeze(0),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue