Skip to content
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

How can I use this code for training and testing? #8

Open
daigang896 opened this issue Mar 7, 2022 · 6 comments
Open

How can I use this code for training and testing? #8

daigang896 opened this issue Mar 7, 2022 · 6 comments

Comments

@daigang896
Copy link

Hello. How can I use this code for training and testing?

@yjyjy131
Copy link

I modified the code a bit and requested a pull-request make it easier to train and test the author's SPFCN (not light version), but I'm not sure if this code will be accepted by the author.
If not, please see this one. https://github.com/yjyjy131/SPFCN-ParkingSlotDetection.
And please share issues if you have some !

@wangzh63
Copy link

wangzh63 commented Jul 7, 2022

I modified the code a bit and requested a pull-request make it easier to train and test the author's SPFCN (not light version), but I'm not sure if this code will be accepted by the author. If not, please see this one. https://github.com/yjyjy131/SPFCN-ParkingSlotDetection. And please share issues if you have some !

Process is killed during the training, have you met this problem before? thank you in advance

@yjyjy131
Copy link

yjyjy131 commented Jul 7, 2022

I modified the code a bit and requested a pull-request make it easier to train and test the author's SPFCN (not light version), but I'm not sure if this code will be accepted by the author. If not, please see this one. https://github.com/yjyjy131/SPFCN-ParkingSlotDetection. And please share issues if you have some !

Process is killed during the training, have you met this problem before? thank you in advance

Yes, I have. The process was killed when I tried it with a computer running out of GPU memory. Can you tell me exactly what error you're getting?

If it is an out of memory problem, there seem to be two ways.

One trick (although this is not the right way) was to delete validation process in the training the code and reduce the training batch size or num_workers size, so that it could be trained even on a computer with insufficient memory.

There is currently no SPFCN-light version of the training code, so if you do not have enough GPU, it would be better to write and use the light version of the training code.

@wangzh63
Copy link

wangzh63 commented Jul 8, 2022

I modified the code a bit and requested a pull-request make it easier to train and test the author's SPFCN (not light version), but I'm not sure if this code will be accepted by the author. If not, please see this one. https://github.com/yjyjy131/SPFCN-ParkingSlotDetection. And please share issues if you have some !

Process is killed during the training, have you met this problem before? thank you in advance

Yes, I have. The process was killed when I tried it with a computer running out of GPU memory. Can you tell me exactly what error you're getting?

If it is an out of memory problem, there seem to be two ways.

One trick (although this is not the right way) was to delete validation process in the training the code and reduce the training batch size or num_workers size, so that it could be trained even on a computer with insufficient memory.

There is currently no SPFCN-light version of the training code, so if you do not have enough GPU, it would be better to write and use the light version of the training code.

I think the error shows up during the process of creating the training dataset, It seems like I do not have enough memory to load it.

@wslyw
Copy link

wslyw commented Feb 22, 2023

I modified the code a bit and requested a pull-request make it easier to train and test the author's SPFCN (not light version), but I'm not sure if this code will be accepted by the author. If not, please see this one. https://github.com/yjyjy131/SPFCN-ParkingSlotDetection. And please share issues if you have some !

Hi, is the dataset you are using Ps2.0 dataset?

@MihaiBlagu
Copy link

MihaiBlagu commented Mar 21, 2023

Hi @yjyjy131, did you encounter key errors when loading the state_dict of the trained model? I get a bunch of missing keys and some unexpected ones too.

I am loading the merge_bn_epoch150_loss.pkl (I trained for 150 epochs).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants