Comments (2)
Yes, you need to call the function manully by yourself.
Here's the code after changes by me, hope it can help you.
It is in prepare_2d_data.py, starting from line 75:
```
for i in range(0,len(scenes)):
sens_file = os.path.join(opt.scannet_path, scenes[i], scenes[i] + '.sens')
label_path = os.path.join(opt.scannet_path, scenes[i], opt.label_type)
if opt.export_label_images and not os.path.isdir(label_path):
print_error('Error: using export_label_images option but label path %s does not exist' % label_path)
output_color_path = os.path.join(opt.output_path, scenes[i], 'color')
if not os.path.isdir(output_color_path):
os.makedirs(output_color_path)
output_depth_path = os.path.join(opt.output_path, scenes[i], 'depth')
if not os.path.isdir(output_depth_path):
os.makedirs(output_depth_path)
output_pose_path = os.path.join(opt.output_path, scenes[i], 'pose')
if not os.path.isdir(output_pose_path):
os.makedirs(output_pose_path)
output_intrinsics_path = os.path.join(opt.output_path, scenes[i], 'intrinsics')
if not os.path.isdir(output_intrinsics_path):
os.makedirs(output_intrinsics_path)
output_label_path = os.path.join(opt.output_path, scenes[i], 'label')
if opt.export_label_images and not os.path.isdir(output_label_path):
os.makedirs(output_label_path)
# read and export
sys.stdout.write('\r[ %d | %d ] %s\tloading...' % ((i + 1), len(scenes), scenes[i]))
sys.stdout.flush()
sd = SensorData(sens_file)
sys.stdout.write('\r[ %d | %d ] %s\texporting...' % ((i + 1), len(scenes), scenes[i]))
sys.stdout.flush()
sd.export_color_images(output_color_path, image_size=[opt.output_image_height, opt.output_image_width],
frame_skip=opt.frame_skip)
sd.export_depth_images(output_depth_path, image_size=[opt.output_image_height, opt.output_image_width],
frame_skip=opt.frame_skip)
sd.export_poses(output_pose_path, frame_skip=opt.frame_skip)
sd.export_intrinsics(output_intrinsics_path)
from segmentanything3d.
Fixed in #38
from segmentanything3d.
Related Issues (20)
- Can I fetch individual objects from the point cloud using this? HOT 8
- Unable to get access to the database HOT 3
- 2D image number for segment HOT 4
- What the lib "pointops" for HOT 2
- Code error
- Can we determine which color belongs to which class through object detection module? HOT 2
- Visual effect problem
- The final step HOT 1
- Error while running libs\pointops\setup.py HOT 3
- Value to determine camera angles HOT 5
- Using Customized Dataset HOT 1
- Can I use the point cloud files generated by colmap to perform segmentation with this model? If so, what data is needed?
- Using SAM3D for Custom Point Clouds via Photogrammetry: Seeking Guidance on Implementation HOT 2
- cannot import open3d
- About Data Structure
- Error when trying to run setup.py, and requirements.txt
- Question Regarding 2D to 3D Mask Projection with Central Pillar Scenario
- How to get SAM Generate Masks HOT 3
- Ground Truth Data HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from segmentanything3d.