Code Monkey home page Code Monkey logo

instant-dexnerf's People

Contributors

salykova avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

instant-dexnerf's Issues

Reading wrong rotation

Hi and Thanks for your work!

I am trying to get the repo running with my own data. However, the extrinsics get messed up when loaded (they should point inward, not outward the circle):

image

I want to mention that the poses were generated with COLMAP in a transforms.json file. They are displayed correctly by instant-ngp and produce good results.

Also, I am getting this error when I try to start the training, which is probably because of it not being able to build the rays from the positions.

WARNING  Nerf training generated 0 samples. Aborting training.

Question about camera pose in groundtruth_handeye.txt

Hi,

I have a question about the convention used in groundtruth_handeye.txt. How to generate it given the pose in COLMAP format?

I tried the following code to generate groundtruth_handeye.txt and then use it with instrinsics.txt to generated the json file using ours2nerf.py but the generated camera poses are incorrect, as shown below (they should be 360)

image

This code reads images.txt file in COLMAP format

	for line in f:
		line = line.strip()
		if line[0] == "#":
			continue
		i = i + 1
		if i < SKIP_EARLY*2:
			continue
		if  i % 2 == 1:
			elems=line.split(" ") # 1-4 is quat, 5-7 is trans, 9ff is filename (9, if filename contains no spaces)
			image_rel = os.path.relpath(IMAGE_FOLDER)
			name = str(f"./{image_rel}/{'_'.join(elems[9:])}")	
			image_id = int(elems[0])
			qvec = np.array(tuple(map(float, elems[1:5])))
			tvec = np.array(tuple(map(float, elems[5:8])))
			R = qvec2rotmat(qvec)
			t = tvec.reshape([3,1])
			m = np.concatenate([np.concatenate([R, t], 1), bottom], 0)
			c2w = np.linalg.inv(m)
			R = c2w[:3,:3]
			t = c2w[:3,3]
			q = rotm2quat(R)
			f_c2w_pose_file.write(f"{counter} {q[0]} {q[1]} {q[2]} {q[3]} {t[0]} {t[1]} {t[2]}\n")
			counter = counter + 1

run error

The error is "colmap fail for some images". How to resolve it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.