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

Learning Online-3D-BPP-DRL - Get amount of the used containers #15

Closed
alex-ams opened this issue Aug 26, 2022 · 3 comments
Closed

Learning Online-3D-BPP-DRL - Get amount of the used containers #15

alex-ams opened this issue Aug 26, 2022 · 3 comments

Comments

@alex-ams
Copy link

Hello,

I'm studying the 3D Bin packing with this repository: [https://github.com/alexfrom0815/Online-3D-BPP-DRL].
I have some troubles with the evaluation.py file. I'm using my own data by generating a ".pt" but I don't know how to retrieve the number of used containers and the number of items packed in each one.
Could you please help with this?

Thanks in advance

@alex-ams
Copy link
Author

Hello,

In evaluation.py, we get eval_ens.space.boxes and we display the list after running the evaluation function. But I notice that one item in this list is not present in the item list given to evaluate the model.
Can you help me with this also?

Thanks in advance

@alexfrom0815
Copy link
Owner

Hello,

I'm studying the 3D Bin packing with this repository: [https://github.com/alexfrom0815/Online-3D-BPP-DRL]. I have some troubles with the evaluation.py file. I'm using my own data by generating a ".pt" but I don't know how to retrieve the number of used containers and the number of items packed in each one. Could you please help with this?

Thanks in advance

Hello! In our problem, we assume that only one container is used for loading online items. When the container is full, it will be reset and another packing episode starts. You can print 'self.boxes' in 'envs/bpp0/space.py' for reading information of the packed items.

@alexfrom0815
Copy link
Owner

Hello,

In evaluation.py, we get eval_ens.space.boxes and we display the list after running the evaluation function. But I notice that one item in this list is not present in the item list given to evaluate the model. Can you help me with this also?

Thanks in advance

‘eval_ens.space.boxes’ records all the boxes that were successfully loaded into the container. For the online packing problem, when a box that cannot be placed is encountered, the round ends. That is, the last box of each packing round will not be recorded in 'eval_ens.space.boxes'.

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

2 participants