-
Notifications
You must be signed in to change notification settings - Fork 594
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
Memory issues with 3.0 obj loader and large files #510
Comments
Ah yeah, can confirm does consume all of my memory and take out my computer haha. I added some debug stuff to the trimesh/trimesh/exchange/obj.py Lines 180 to 199 in e35bfdb
Otherwise it's watch
|
It's this line:
|
Issue resolved with the original problem mesh - next up, Sorry I'm not being very helpful in terms of resolving these issues - I'm down a rabbit hole trying to preprocess shapenet and need to start working my way back up. The easiest (though highly unsatisfying) way of doing that is to blacklist certain models. I figure reporting the blacklist is better than nothing. |
No worries, I wanted to get all of ShapeNet to load at some point! That mesh was dying because of the numpy string array allocation thing (arrays are allocated so every slot is the size of the largest string), which I replaced with more sensible and slightly faster |
Confirmed fix of above car mesh in Attempted to load all shapenet core CAD models on that branch. There seems to be index issues in both failed_ids = {
'02828884': ('2f0cd28e2f8cdac16121178eafd002fd',),
'02933112': (),
'02958343': (),
'03001627': ('747d2db60ca6b98f3eec26c23f5bc80b', '1de733a48e5607b22d9c1884c92fce12',),
'03636649': ('3259e491870a8c49eef5d83b671bb264',),
'03211117': (),
'02691156': ('6f0ad1fb7917fd9b50577cf04f3bf74a', 'dbab9feed7e936cfa87372b03d6dc78b', 'f9209166fc259d8885e96081cfe0563b', 'c88275e49bc23ee41af5817af570225e',),
'04090263': ('661ad35c5c3a908c6d1e04c7ae242f3d',),
'04256520': ('ecf29f5698798a74104d78b9947ee8', '9f5fd43df32187739f2349486c570dd4',),
'03691459': (),
'04379243': ('dc0e0beba650c0b78bc6f322a9608b07', '56ea26c10c478555a31cc7b61ec6561', '1846b3533f41ae82f8c4b4cfc2702232',),
'04401088': (),
'04530566': ('18761559208a970188d5590328ce0ddf', '80d381a6760185d8c45977b13fbe7645', '587cc1fc65ac4991ff920fdb73e92549',),
'02747177': (),
'02773838': (),
'02801938': (),
'02808440': (),
'02818832': (),
'02843684': (),
'02871439': (),
'02876657': ('8099b9d546231dd27b9c6deef486a7d8', '2d1aa4e124c0dd5bf937e5c6aa3f9597'),
'02880940': (),
'02924116': (),
'02942699': (),
'02946921': (),
'02954340': (),
'02992529': (),
'03046257': (),
'03085013': (),
'03207941': (),
'03261776': (),
'03325088': (),
'03337140': (),
'03467517': ('3c125ee606b03cd263ae8c3a62777578',),
'03513137': (),
'03593526': (),
'03624134': ('67ada28ebc79cc75a056f196c127ed77',),
'03642806': (),
'03710193': (),
'03759954': (),
'03761084': (),
'03790512': (),
'03797390': (),
'03928116': (),
'03938244': (),
'03948459': (),
'03991062': (),
'04004475': (),
'04074963': (),
'04099429': (),
'04225987': (),
'04330267': ('cfa1ad5b5b023fe81d2e2161e7c7075', '993d687908792787672e57a20276f6e9'),
'04460130': (),
'04468005': (),
'04554684': (),
}
( |
Thanks for the updated ID's! |
How is this looking after the changes? I'm going to close this issue for now since we made major changes, though feel free to open a new issue with failing ID's. Thanks for testing against shapenet! |
Sorry for the late response - phd deadline is looming :S. Things are looking much better. Currently having issues with a single bottle, though I won't be losing any sleep over it myself. I'm running a full sweep now of lesser-used categories too... 02876657/8099b9d546231dd27b9c6deef486a7d8 |
Looping over faces for very large obj files creates memory issues that cause my computer to crash. Issues arise in this loop. I wish I could give more details, but the debug cycle is long when I need to hard restart each time.
Example model causing issues:
synset id: 02691156 (plane)
model id: b644db95fe32d115d8d90babf3c5509a
This file is 46mb. My system has 16gb ram.
For anyone with shapenet data already saved/extracted:
Otherwise, the following downloads the entire planes shapenet archive and attempts to load the above model. That's a lot to download for just one model - sorry about that, but there are licensing issues with redistributing part of it...
The text was updated successfully, but these errors were encountered: