{"action":"created","issue":{"url":"https://api.github.com/repos/XiaLiPKU/RESCAN/issues/1","repository_url":"https://api.github.com/repos/XiaLiPKU/RESCAN","labels_url":"https://api.github.com/repos/XiaLiPKU/RESCAN/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/XiaLiPKU/RESCAN/issues/1/comments","events_url":"https://api.github.com/repos/XiaLiPKU/RESCAN/issues/1/events","html_url":"https://github.com/XiaLiPKU/RESCAN/issues/1","id":347013868,"node_id":"MDU6SXNzdWUzNDcwMTM4Njg=","number":1,"title":"Training setting","user":{"login":"ashkan-abbasi66","id":14981891,"node_id":"MDQ6VXNlcjE0OTgxODkx","avatar_url":"https://avatars2.githubusercontent.com/u/14981891?v=4","gravatar_id":"","url":"https://api.github.com/users/ashkan-abbasi66","html_url":"https://github.com/ashkan-abbasi66","followers_url":"https://api.github.com/users/ashkan-abbasi66/followers","following_url":"https://api.github.com/users/ashkan-abbasi66/following{/other_user}","gists_url":"https://api.github.com/users/ashkan-abbasi66/gists{/gist_id}","starred_url":"https://api.github.com/users/ashkan-abbasi66/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashkan-abbasi66/subscriptions","organizations_url":"https://api.github.com/users/ashkan-abbasi66/orgs","repos_url":"https://api.github.com/users/ashkan-abbasi66/repos","events_url":"https://api.github.com/users/ashkan-abbasi66/events{/privacy}","received_events_url":"https://api.github.com/users/ashkan-abbasi66/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-02T13:33:06Z","updated_at":"2018-09-05T10:37:18Z","closed_at":null,"author_association":"NONE","body":"Hello\r\nCan you please provide a better usage instruction for the algorithm? I did these steps:\r\n1- I created three folders:\r\n`../logdir/`\r\n`../models/`\r\n`../showdir/`\r\n2- I downloaded the RAIN800 dataset which has three folders inside a folder with name `rain`:\r\n`rain/test_nature: 92 real rainy photographs.`\r\n`rain/test_syn: 100 images.`\r\n`rain/training: 700 images. `\r\n3- I changed the name of the last folder.\r\ntraining ---> train\r\nThen, I set `data_dir = 'path/to/dataset/folder'` in settings.py file to `rain`. for example, the algorithm addresses the train folder as `rain/train`.\r\n4- I intentionally disabled all the codes which are used for validation to avoid extra errors. (please specify the validation dataset.)\r\n5- I triggered the training command as `python main.py -a train`\r\n\r\nBut stilll I encountered the following error:\r\n```\r\nINFO - train--loss0:0.004158 loss1:0.00411 loss2:0.004155 loss3:0.004152 ssim0:0.7887 ssim1:0.8015 ssim2:0.7991 ssim3:0.7981 lr:0.005 step:1092\r\nTraceback (most recent call last):\r\n  File \"main.py\", line 227, in <module>\r\n    run_train_val(args.model)\r\n  File \"main.py\", line 170, in run_train_val\r\n    batch_t = next(dt_train)\r\n  File \"C:\\Users\\ashkan\\Anaconda3\\envs\\pytorch\\lib\\site-packages\\torch\\utils\\data\\dataloader.py\", line 276, in __next__\r\n    raise StopIteration\r\nStopIteration\r\n```\r\n\r\nRegards,\r\nAshkan."},"comment":{"url":"https://api.github.com/repos/XiaLiPKU/RESCAN/issues/comments/418683600","html_url":"https://github.com/XiaLiPKU/RESCAN/issues/1#issuecomment-418683600","issue_url":"https://api.github.com/repos/XiaLiPKU/RESCAN/issues/1","id":418683600,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODY4MzYwMA==","user":{"login":"SherlockSunset","id":27830974,"node_id":"MDQ6VXNlcjI3ODMwOTc0","avatar_url":"https://avatars2.githubusercontent.com/u/27830974?v=4","gravatar_id":"","url":"https://api.github.com/users/SherlockSunset","html_url":"https://github.com/SherlockSunset","followers_url":"https://api.github.com/users/SherlockSunset/followers","following_url":"https://api.github.com/users/SherlockSunset/following{/other_user}","gists_url":"https://api.github.com/users/SherlockSunset/gists{/gist_id}","starred_url":"https://api.github.com/users/SherlockSunset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SherlockSunset/subscriptions","organizations_url":"https://api.github.com/users/SherlockSunset/orgs","repos_url":"https://api.github.com/users/SherlockSunset/repos","events_url":"https://api.github.com/users/SherlockSunset/events{/privacy}","received_events_url":"https://api.github.com/users/SherlockSunset/received_events","type":"User","site_admin":false},"created_at":"2018-09-05T10:37:18Z","updated_at":"2018-09-05T10:37:18Z","author_association":"NONE","body":"Hello,\r\nwhen I was runing the codes as \"test\", that is: python main.py --action test\r\nit raised one error like this: \r\n2018-09-05 17:28:12,461 - INFO - set log dir as ../logdir\r\n2018-09-05 17:28:12,461 - INFO - set model dir as ../models\r\nTraceback (most recent call last):\r\n  File \"main.py\", line 229, in <module>\r\n    run_test(args.model)\r\n  File \"main.py\", line 205, in run_test\r\n    for i, batch in enumerate(dt):\r\n  File \"C:\\Users\\pengx\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\torch\\utils\\data\\dataloader.py\", line 314, in __next__\r\n    batch = self.collate_fn([self.dataset[i] for i in indices]) ###\r\n  File \"C:\\Users\\pengx\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\torch\\utils\\data\\dataloader.py\", line 184, in default_collate\r\n    return {key: default_collate([d[key] for d in batch]) for key in batch[0]}\r\n  File \"C:\\Users\\pengx\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\torch\\utils\\data\\dataloader.py\", line 184, in <dictcomp>\r\n    return {key: default_collate([d[key] for d in batch]) for key in batch[0]}\r\n  File \"C:\\Users\\pengx\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\torch\\utils\\data\\dataloader.py\", line 173, in default_collate\r\n    return torch.stack([torch.from_numpy(b) for b in batch], 0)\r\nRuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 0. Got 481 and 321 in dimension 2 at c:\\new-builder_3\\win-wheel\\pytorch\\aten\\src\\th\\generic/THTensorMath.cpp:3616\r\n\r\nDoes anyone know how to fix this problem??"}}
{"actor":{"display_login":"SherlockSunset"}}