Skip to content

Chapter 13 (CycleGAN) #77

Description

@chdaesung

I met the following error while testing CycleGAN.ipynb of Chapter 13.

NameError                                 Traceback (most recent call last)
<ipython-input-18-af85a4b0ad99> in <cell line: 1>()
----> 1 trn_ds = CycleGANDataset('apples_train', 'oranges_train')
      2 val_ds = CycleGANDataset('apples_test', 'oranges_test')
      3 
      4 trn_dl = DataLoader(trn_ds, batch_size=1, shuffle=True, collate_fn=trn_ds.collate_fn)
      5 val_dl = DataLoader(val_ds, batch_size=5, shuffle=True, collate_fn=val_ds.collate_fn)

<ipython-input-17-eca7eea9b41b> in __init__(self, apples, oranges)
      1 class CycleGANDataset(Dataset):
      2     def __init__(self, apples, oranges):
----> 3         self.apples = Glob(apples)
      4         self.oranges = Glob(oranges)

NameError: name 'Glob' is not defined

I could not find a source file in which Glob() was defined. Where does Glob() come from?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions