Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ce15ae9

Browse filesBrowse files
committed
buxfix
1 parent 8f5c896 commit ce15ae9
Copy full SHA for ce15ae9

File tree

Expand file treeCollapse file tree

3 files changed

+3
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

3 files changed

+3
-3
lines changed
Open diff view settings
Collapse file

‎torchmeta/datasets/one_hundred_plants_margin.py‎

Copy file name to clipboardExpand all lines: torchmeta/datasets/one_hundred_plants_margin.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def download(self, normalize):
232232
# write unique targets to json file.
233233
labels_filename = os.path.join(self.root, self.filename_labels.format(split))
234234
with open(labels_filename, 'w') as f:
235-
json.dump(unique_targets_split, f)
235+
json.dump(unique_targets_split.tolist(), f)
236236

237237
# normalize between 0 and 1 with stats from 'train' split only
238238
if split == 'train':
Collapse file

‎torchmeta/datasets/one_hundred_plants_shape.py‎

Copy file name to clipboardExpand all lines: torchmeta/datasets/one_hundred_plants_shape.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def download(self, normalize):
232232
# write unique targets to json file.
233233
labels_filename = os.path.join(self.root, self.filename_labels.format(split))
234234
with open(labels_filename, 'w') as f:
235-
json.dump(unique_targets_split, f)
235+
json.dump(unique_targets_split.tolist(), f)
236236

237237
# normalize to zero mean and standard deviation 1 with stats from 'train' split only
238238
if split == 'train':
Collapse file

‎torchmeta/datasets/one_hundred_plants_texture.py‎

Copy file name to clipboardExpand all lines: torchmeta/datasets/one_hundred_plants_texture.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def download(self, normalize):
232232
# write unique targets to json file.
233233
labels_filename = os.path.join(self.root, self.filename_labels.format(split))
234234
with open(labels_filename, 'w') as f:
235-
json.dump(unique_targets_split, f)
235+
json.dump(unique_targets_split.tolist(), f)
236236

237237
# normalize between 0 and 1 with stats from 'train' split only
238238
if split == 'train':

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.