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

Training on customized Dataset #52

Open
chrisxu1995 opened this issue May 21, 2021 · 2 comments
Open

Training on customized Dataset #52

chrisxu1995 opened this issue May 21, 2021 · 2 comments

Comments

@chrisxu1995
Copy link

Hi,
I generate my customized PBR Dataset from BlenderProc for BOP_challenge, and also generate mask and gt from bop_toolkit. Now I uesd run_pose_training.py with config "bop_ycbv_pbr_coarse". And I got the error :

Exception has occurred: AssertionError
exception: no description
File "/home/u2/cosypose/cosypose/lib3d/mesh_ops.py", line 33, in sample_points
assert n_points <= points.shape[1]
File "/home/u2/cosypose/cosypose/lib3d/rigid_mesh_database.py", line 94, in sample_points
return sample_points(self.points, n_points, deterministic=deterministic)
File "/home/u2/cosypose/cosypose/training/pose_forward_loss.py", line 29, in h_pose
points = meshes.sample_points(cfg.n_points_loss, deterministic=False)
File "/home/u2/cosypose/cosypose/training/train_pose.py", line 320, in train_epoch
loss = h(data=sample, meters=meters_train)
File "/home/u2/cosypose/cosypose/training/train_pose.py", line 353, in train_pose
train_epoch()
File "/home/u2/cosypose/run_pose_training.py", line 209, in
train_pose(cfg)

And n_points=2600, points.shape[1]=1148.

What is the reason for this error. what do the n_points und points mean?

@yupei-git
Copy link

The problem may lie in the fact that ycbv's objects are relatively large and your objects are small. You can try changing cfg.n_points_loss in run_pose_training.py to a smaller number. In my scenario, I used 500 instead of 2600.

@hannes56a
Copy link

Hi @chrisxu1995
were you able to train on your own customized dataset? I have some problems, and i think the reason for my problems are in my 3d data. Do you know any condition for builing own 3d Models for rendering/training?
If i use my own model for training i have problems, if i use a model from "TLESS" and do all the rest on my own (rendering, training), it works...
I have another issue open related to this problem: #64

Do you build also a model on your own? Perhaps you have some hints, tips, ideas?

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

3 participants