Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Some questions about training my custom datasets #185

Open
bjutlss opened this issue Feb 17, 2023 · 13 comments
Open

Some questions about training my custom datasets #185

bjutlss opened this issue Feb 17, 2023 · 13 comments

Comments

@bjutlss
Copy link

bjutlss commented Feb 17, 2023

First of all, thank you for your work!
First,I consulted ObjectDatasetsTools and made my custom datasets with D435i.
1.I read this paper and learned that the regularization parameter needs to be set to 0 in pre-training. So am I right to train my data set directly with the following code?
python train.py --datacfg cfg/myobj.data --modelcfg cfg/yolo-pose.cfg --initweightfile cfg/darknet19_448.conv.23 --pretrain_num_epochs 15
or
python train.py --datacfg cfg/myobj.data --modelcfg cfg/yolo-pose.cfg --initweightfile backup/duck/init.weights
What's the difference between yolo-pose.cfg and yolo-pose-pre. cfg?
yolo -pose-pre. cfg is used for pre-training my target object?

2.After training, I had ran valid.py to evaluate the model and get the following results:
image
The Acc 3D transformation is significantly lower than the other two terms. Is this a normal result?

3.If the above steps are correct, I take a frame of the video stream and use it as RGB input to get the results of R_pr and t_pr, which coordinate system are they relative to the camera? (I used Realsense D435i).I'm going to view the resulting RT matrix as relative to the optical coordinate system. It was sent to the robot arm and got an incorrect grab.

@btekin @snsinha Can you answer these questions for me? Look forward to your quick answer!

@AristideLaignel
Copy link

AristideLaignel commented Mar 17, 2023

Hi @bjutlss ,

I have no answer to your question, but I'm trying to train the model on the LINEMOD dataset and I have no good results.

How did you do to train your model and with which version of CUDA, python and PyTorch ?

I'm using CUDA 11.6, python 3.9.16, pytorch 1.13.1
and with this command :

command

and I have this result :

iron_train

and these parameters in yolo-pose.cfg :

yolo-pose cfg

Did you know which parameters to adjust to have a good result on the training ?

Many thanks

Aristide

@bjutlss
Copy link
Author

bjutlss commented Mar 17, 2023 via email

@AristideLaignel
Copy link

Thanks you for your quick answer !
I will try with your version of pytorch and python.

@bjutlss
Copy link
Author

bjutlss commented Mar 17, 2023 via email

@AristideLaignel
Copy link

AristideLaignel commented Mar 17, 2023

So why I have no results on the training with the exact parameters, I change nothing and the validation works fine with there weights but not the training, I don't understand !!
Here what I have on all images, it seems to detect but not with the right dimensions :

1AAABOX3D9

1AAABOX3D10

1AAABOX3D1

1AAABOX3D0

1AAABOX3D79

The prediction is in red and the ground truth in green

@bjutlss
Copy link
Author

bjutlss commented Mar 17, 2023 via email

@AristideLaignel
Copy link

Many thanks for your response.
Just what do you have in your yolo-pose.cfg about weight and height please ?
thanks

@bjutlss
Copy link
Author

bjutlss commented Mar 17, 2023 via email

@AristideLaignel
Copy link

Sorry I can't see your response correctly

@bjutlss
Copy link
Author

bjutlss commented Mar 17, 2023 via email

@AristideLaignel
Copy link

Thank you @bjutlss I have the same !

@zongt-yu
Copy link

谢谢@bjutlss我有同样的 !

I have the same problem, did you solve it?

@bjutlss
Copy link
Author

bjutlss commented Mar 25, 2023 via email

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

No branches or pull requests

3 participants