-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bad performance of pytorch model compared to lua #22
Comments
Hello @shuuchen |
@shuuchen Thanks for sharing your version. I am getting the same error as I was getting in @art-programmer code. Do you know how to solve this? |
IOError: [Errno 2] No such file or directory: '../data/train_1.txt' It says you don' t have this file. |
@shuuchen |
@riti1302 |
@shuuchen The same problem persists. |
@riti1302 |
@shuuchen Thanks. It solved my problem. Actually, I am new to pytorch and I am having trouble writing the code for prediction. It will help a lot if you send me your code for prediction. |
@riti1302 |
@shuuchen |
@riti1302 |
@shuuchen I did that. |
@riti1302 |
@shuuchen Hi, I also face issue training this network. I went into the Pytorch folder and follow the instruction (1: install requirment.txt, 2: python train.py -restore = 0) then it returned No such file or directory: '../data/train.txt' error. How can I solve this? Thanks |
you don't have the '../data/train.txt'. |
Hi. Thanks for your reply. Where can I download it? How about the test.txt
file? I am not sure if I have misread the documents. Thank you for helping
me out with this
San
…On Sat, Jun 22, 2019, 11:35 PM Shuchen Du ***@***.***> wrote:
@sanwong15 <https://github.com/sanwong15>
you don't have the '../data/train.txt'.
just download the file, put it in the right path, and try again.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#22?email_source=notifications&email_token=ABWPLCK4ROCSFP5OLRQVWG3P3ZBAFA5CNFSM4HBMG7F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYKLZLY#issuecomment-504675503>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABWPLCO6CHB72NSJWQ37UGTP3ZBAFANCNFSM4HBMG7FQ>
.
|
@shuuchen How you test the output for a floorplan? |
@riti1302 |
@shuuchen As you said in this issue that you tested the image. Can you tell me what command you used to test the image? |
@riti1302
|
@shuuchen |
@riti1302 |
@shuuchen Where is the output text files are stored? |
@riti1302 |
@shuuchen There is no option of creating a issue in your repository. |
@riti1302 |
@shuuchen I have tried training the model with 100 epochs, batch size=5 and number of images = 600. The performance of the model is very poor. Have you tried improving the accuracy? If yes, then can you tell me what changes should I make to improve the accuracy? |
what train data did you use?
you can use the data on my github, the result is good.
2019年6月25日(火) 14:26 Ritika Kumari <[email protected]>:
… @shuuchen <https://github.com/shuuchen> I have tried training the model
with 100 epochs, batch size=5 and number of images = 600. The performance
of the model is very poor. Have you tried improving the accuracy? If yes,
then can you tell me what changes should I make to improve the accuracy?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#22?email_source=notifications&email_token=ADFCC2LWOS236GHPXNP6273P4GT7FA5CNFSM4HBMG7F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYPBMKY#issuecomment-505288235>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADFCC2OTAC6AMHBET7DZDI3P4GT7FANCNFSM4HBMG7FQ>
.
|
@shuuchen I used your data. Can you give me some of your training details like number of epochs, learning rate and batch size? |
@riti1302 |
@shuuchen Yes, a little. I am saving the checkpoint every 5 epochs. Nothing else. |
@shuuchen Also the the default epochs is 1000. Have you trained the model on 1000 epochs? |
I think 500 epoch is enough. Have you trained that much? I updated my
repository. Please reload that
Ritika Kumari <[email protected]>于2019年6月26日 周三下午3:41写道:
… @shuuchen <https://github.com/shuuchen> Also the the default epochs is
1000. Have you trained the model on 1000 epochs?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#22?email_source=notifications&email_token=ADFCC2PK6KVDGCZ3PPFBH5TP4MFQ5A5CNFSM4HBMG7F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYSQGIA#issuecomment-505742112>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADFCC2PA2XQ562TAJ75JTL3P4MFQ5ANCNFSM4HBMG7FQ>
.
|
@shuuchen I trained it at 100 epochs with your dataset and it is showing infeasible. |
@riti1302 |
@shuuchen I figured out my mistake. I was saving the checkpoint after every 5 epochs and the base was set to 0. When I was executing the code for validation it was still set to 0. For validation I have to change the base to 95 so that it will load the latest checkpoint. Now it's giving good accuracy. Thanks a lot for your help. |
@shuuchen What is the meaning of last two columns of the text file? |
@riti1302 |
@riti1302 |
@shuuchen Okay, i got it. I am trying to train the model on my dataset but it is giving error. I posted that error above. |
@riti1302 |
hello @shuuchen i have traind the model for 200 epochs,but the result of the predict is very poor,can you give me a trained model to have a test? thanks,[email protected] |
when I run “python train.py --task=test”,output: |
Hello, could you explain what the change was? I do not understand what base you were referring to in your comment. |
how many GPU memory you need to train? it is huge on my side. |
Hi,
I compared the model performance of both pytorch and lua.
Pytorch model is trained 30 epochs while lua model is provided by the author.
The same training data is used.
However, when I test the following image, 33 walls were detected by lua model while only 11 were detected by pytorch model.
The picture is
lua output:
(in which 33 walls are detected)
pytorch output:
(in which only 11 walls are detected)
While the corners are all predicted correctly, the walls are predicted poorly.
Since the performance of pytorch model is not checked, is it a bad model or something wrong with IP ? or should I train more epoch ?
The text was updated successfully, but these errors were encountered: