{"action":"created","issue":{"url":"https://api.github.com/repos/jakezhaojb/ARAE/issues/16","repository_url":"https://api.github.com/repos/jakezhaojb/ARAE","labels_url":"https://api.github.com/repos/jakezhaojb/ARAE/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/jakezhaojb/ARAE/issues/16/comments","events_url":"https://api.github.com/repos/jakezhaojb/ARAE/issues/16/events","html_url":"https://github.com/jakezhaojb/ARAE/issues/16","id":344101728,"node_id":"MDU6SXNzdWUzNDQxMDE3Mjg=","number":16,"title":"Error when running yelp/train.py","user":{"login":"jiwoongim","id":848514,"node_id":"MDQ6VXNlcjg0ODUxNA==","avatar_url":"https://avatars0.githubusercontent.com/u/848514?v=4","gravatar_id":"","url":"https://api.github.com/users/jiwoongim","html_url":"https://github.com/jiwoongim","followers_url":"https://api.github.com/users/jiwoongim/followers","following_url":"https://api.github.com/users/jiwoongim/following{/other_user}","gists_url":"https://api.github.com/users/jiwoongim/gists{/gist_id}","starred_url":"https://api.github.com/users/jiwoongim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiwoongim/subscriptions","organizations_url":"https://api.github.com/users/jiwoongim/orgs","repos_url":"https://api.github.com/users/jiwoongim/repos","events_url":"https://api.github.com/users/jiwoongim/events{/privacy}","received_events_url":"https://api.github.com/users/jiwoongim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-07-24T15:58:40Z","updated_at":"2018-08-24T23:44:41Z","closed_at":null,"author_association":"NONE","body":"I followed README.md  and ran \r\n`\r\npython train.py --data_path ./data`\r\n\r\nBut then I got the following errors:\r\n\r\n```\r\n{'dropout': 0.0, 'lr_ae': 1, 'load_vocab': '', 'nlayers': 1, 'batch_size': 64, 'beta1': 0.5, 'gan_gp_lambda': 0.1, 'nhidden': 128, 'vocab_size': 30000, 'niters_gan_schedule': '', 'niters_gan_d': 5, 'lr_gan_d': 0.0001, 'grad_lambda': 0.01, 'sample': False, 'arch_classify': '128-128', 'clip': 1, 'hidden_init': False, 'cuda': True, 'log_interval': 200, 'device_id': '0', 'temp': 1, 'seed': 1111, 'maxlen': 25, 'lowercase': True, 'data_path': './data', 'lambda_class': 1, 'lr_classify': 0.0001, 'outf': 'yelp_example', 'noise_r': 0.1, 'noise_anneal': 0.9995, 'lr_gan_g': 0.0001, 'niters_gan_g': 1, 'arch_g': '128-128', 'z_size': 32, 'epochs': 25, 'niters_ae': 1, 'arch_d': '128-128', 'emsize': 128, 'niters_gan_ae': 1}\r\nOriginal vocab 9599; Pruned to 9603\r\nNumber of sentences dropped from ./data/valid1.txt: 0 out of 38205 total\r\nNumber of sentences dropped from ./data/valid2.txt: 0 out of 25278 total\r\nNumber of sentences dropped from ./data/train1.txt: 0 out of 267314 total\r\nNumber of sentences dropped from ./data/train2.txt: 0 out of 176787 total\r\nVocabulary Size: 9603\r\n382 batches\r\n252 batches\r\n4176 batches\r\n2762 batches\r\nLoaded data!\r\nSeq2Seq2Decoder(\r\n  (embedding): Embedding(9603, 128)\r\n  (embedding_decoder1): Embedding(9603, 128)\r\n  (embedding_decoder2): Embedding(9603, 128)\r\n  (encoder): LSTM(128, 128, batch_first=True)\r\n  (decoder1): LSTM(256, 128, batch_first=True)\r\n  (decoder2): LSTM(256, 128, batch_first=True)\r\n  (linear): Linear(in_features=128, out_features=9603, bias=True)\r\n)\r\nMLP_G(\r\n  (layer1): Linear(in_features=32, out_features=128, bias=True)\r\n  (bn1): BatchNorm1d(128, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)\r\n  (activation1): ReLU()\r\n  (layer2): Linear(in_features=128, out_features=128, bias=True)\r\n  (bn2): BatchNorm1d(128, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)\r\n  (activation2): ReLU()\r\n  (layer7): Linear(in_features=128, out_features=128, bias=True)\r\n)\r\nMLP_D(\r\n  (layer1): Linear(in_features=128, out_features=128, bias=True)\r\n  (activation1): LeakyReLU(negative_slope=0.2)\r\n  (layer2): Linear(in_features=128, out_features=128, bias=True)\r\n  (bn2): BatchNorm1d(128, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)\r\n  (activation2): LeakyReLU(negative_slope=0.2)\r\n  (layer6): Linear(in_features=128, out_features=1, bias=True)\r\n)\r\nMLP_Classify(\r\n  (layer1): Linear(in_features=128, out_features=128, bias=True)\r\n  (activation1): ReLU()\r\n  (layer2): Linear(in_features=128, out_features=128, bias=True)\r\n  (bn2): BatchNorm1d(128, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)\r\n  (activation2): ReLU()\r\n  (layer6): Linear(in_features=128, out_features=1, bias=True)\r\n)\r\nTraining...\r\nTraceback (most recent call last):\r\n  File \"train.py\", line 574, in <module>\r\n    train_ae(1, train1_data[niter], total_loss_ae1, start_time, niter)\r\n  File \"train.py\", line 400, in train_ae\r\n    output = autoencoder(whichdecoder, source, lengths, noise=True)\r\n  File \"/localhome/imd/anaconda2/envs/Pytorch/lib/python3.5/site-packages/torch/nn/modules/module.py\", line 491, in __call__\r\n    result = self.forward(*input, **kwargs)\r\n  File \"/groups/branson/home/imd/Documents/project/ARAE/yelp/models.py\", line 143, in forward\r\n    hidden = self.encode(indices, lengths, noise)\r\n  File \"/groups/branson/home/imd/Documents/project/ARAE/yelp/models.py\", line 160, in encode\r\n    batch_first=True)\r\n  File \"/localhome/imd/anaconda2/envs/Pytorch/lib/python3.5/site-packages/torch/onnx/__init__.py\", line 56, in wrapper\r\n    if not might_trace(args):\r\n  File \"/localhome/imd/anaconda2/envs/Pytorch/lib/python3.5/site-packages/torch/onnx/__init__.py\", line 130, in might_trace\r\n    first_arg = args[0]\r\nIndexError: tuple index out of range\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/jakezhaojb/ARAE/issues/comments/415909697","html_url":"https://github.com/jakezhaojb/ARAE/issues/16#issuecomment-415909697","issue_url":"https://api.github.com/repos/jakezhaojb/ARAE/issues/16","id":415909697,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTkwOTY5Nw==","user":{"login":"rainyrainyguo","id":32846406,"node_id":"MDQ6VXNlcjMyODQ2NDA2","avatar_url":"https://avatars1.githubusercontent.com/u/32846406?v=4","gravatar_id":"","url":"https://api.github.com/users/rainyrainyguo","html_url":"https://github.com/rainyrainyguo","followers_url":"https://api.github.com/users/rainyrainyguo/followers","following_url":"https://api.github.com/users/rainyrainyguo/following{/other_user}","gists_url":"https://api.github.com/users/rainyrainyguo/gists{/gist_id}","starred_url":"https://api.github.com/users/rainyrainyguo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rainyrainyguo/subscriptions","organizations_url":"https://api.github.com/users/rainyrainyguo/orgs","repos_url":"https://api.github.com/users/rainyrainyguo/repos","events_url":"https://api.github.com/users/rainyrainyguo/events{/privacy}","received_events_url":"https://api.github.com/users/rainyrainyguo/received_events","type":"User","site_admin":false},"created_at":"2018-08-24T23:44:41Z","updated_at":"2018-08-24T23:44:41Z","author_association":"NONE","body":"@jiwoongim \r\nYou can try using my forked version of the repository, I have resolved the issue by doing several changes to the original code.\r\nI have verified it to be working for python 3.6.5 and PyTorch 0.4.1\r\nhttps://github.com/rainyrainyguo/ARAE"}}
{"actor":{"display_login":"rainyrainyguo"}}