-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Hello Dr.Pati,
I am trying to run the train_image_vae.py script on Colab (where I have copied over all the necessary components). I am running into the following error when calling the main() function without arguments:
TypeError: main() missing 13 required positional arguments: 'dataset_type', 'batch_size', 'num_epochs', 'lr', 'beta', 'capacity', 'gamma', 'delta', 'dec_dist', 'train', 'log', 'rand', and 'reg_type'
I tried passing the required parameters (based on the values specified in the class ImageVAETrainer(Trainer)
as follows:
main('EchoLV', 2, 10, 1e-04, 4.0, 0.0, 10.0, 1.0, 'bernoulli', 'train', 'log', 'rand', 'volume')
but it seems to be reading in the 'volume' argument letter-by-letter. Here is the error I am getting:
in main(dataset_type, batch_size, num_epochs, lr, beta, capacity, gamma, delta, dec_dist, train, log, rand, reg_type)
35 reg_dim = []
36 for r in reg_type:
---> 37 reg_dim.append(attr_dict[r])
38 else:
39 reg_dim = [0]
KeyError: 'v'
I tried using ['volume'] but ran into: TypeError: unhashable type: 'list'
What am I missing? Any help would be appreciated. Thank you!