Comments (3)
I generated the skip list using this file -- hope it helps!
import argparse
import os
import numpy as np
from tqdm import tqdm
def crawl_and_check_pose_files(root_dir, output_file=None):
scenes = [
d for d in os.listdir(root_dir) if os.path.isdir(os.path.join(root_dir, d))
]
with open(output_file, "w") if output_file else None as f:
for scene in tqdm(scenes, desc="Processing scenes"):
scene_dir = os.path.join(root_dir, scene, "pose")
if os.path.exists(scene_dir):
for file in os.listdir(scene_dir):
if file.endswith(".txt"):
file_path = os.path.join(scene_dir, file)
try:
matrix = np.loadtxt(file_path)
if np.any(np.isinf(matrix)):
frame_id = file.replace(".txt", "")
output = f"{scene} {frame_id}\n"
if f:
f.write(output)
else:
print(output)
except Exception as e:
print(f"Error reading {file_path}: {e}")
def main():
parser = argparse.ArgumentParser(
description="Crawl directories for pose files, identify files with all -inf values, and save the results."
)
parser.add_argument(
"path", type=str, help="The root directory to start crawling from."
)
parser.add_argument(
"--output",
"-o",
type=str,
default=None,
help="File to save the output. Prints to stdout if not specified.",
)
args = parser.parse_args()
crawl_and_check_pose_files(args.path, args.output)
if __name__ == "__main__":
main()
from ponderv2.
Hi, thanks for your interest and your awesome code! Sorry for the late reply, I was on vacation last month :)Yeah we skip some broken data, and this is the skip.lst we use. I think your code can produce similar file with ours:)
skip.lst.txt
from ponderv2.
Related Issues (11)
- Some question about outdoor rendering results HOT 4
- Training w/ default config diverges and ultimately crashes: NaN or Inf found in input tensor HOT 2
- Estimated release date HOT 3
- Looking forward to seeing more instructions and code HOT 3
- How can I run the downsteam tasks with your model? HOT 2
- Will this project support KITTI dateset in the future? : ) HOT 1
- Can you provide per-class IoU for semantic segmentation on S3DIS 6-fold? HOT 1
- how to use the network for semantic segmentation? HOT 1
- Change method for rendering decoder HOT 1
- 请问室内场景在训练的时候,如果没有 rgb 信息,同样需要做颜色的渲染监督吗? 在训练的时候遇到没有 rgb 信息的点云时候是怎么做的呢? 训练的用于渲染的 shallow MLP 是所有场景共享的,还是每个场景有各自的 MLP 参数? 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 ponderv2.