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
Copy file name to clipboardExpand all lines: data/__init__.py
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,14 @@
1
-
"""This package """
1
+
"""This package includes all the modules related to data loading and Preprocessing
2
+
3
+
To add a custom dataset class called dummy, you need to add a file called 'dummy_dataset.py' and define a subclass 'DummyDataset' inherited from BaseDataset.
4
+
You need to implement four functions:
5
+
-- <__init__> (initialize the class, first call BaseDataset.__init__(self, opt))
6
+
-- <__len__> (return the size of dataset)
7
+
-- <__getitem__> (get a data point)
8
+
-- (optionally) <modify_commandline_options> (add dataset-specific options and set default options).
9
+
Now you can use the dataset class by specifying flag '--dataset_mode dummy'.
10
+
See our template dataset class 'template_dataset.py' for an example.
0 commit comments