Skip to content

Instantly share code, notes, and snippets.

View johnbanq's full-sized avatar
💫
buzy coding

johnbanq

💫
buzy coding
View GitHub Profile
@johnbanq
johnbanq / convert_ornerf_spinnerf.py
Created January 15, 2024 11:09
OR-NeRF to 3DGS conversion script
import argparse
import shutil
from pathlib import Path
from typing import Iterable
from .read_write_model import read_model, Camera, write_model
def main():
parser = argparse.ArgumentParser("script for converting or-nerf sparse dataset into gaussian 3d format")
@johnbanq
johnbanq / diff.patch
Created August 24, 2023 19:35
patch for fixing the header file in pytorch3d #1024
diff --git a/cast.h b/cast.h
index 0caccdb..f2e1db1 100644
--- a/cast.h
+++ b/cast.h
@@ -1424,6 +1424,16 @@ public:
template <typename _T> using cast_op_type = pybind11::detail::cast_op_type<_T>;
};
+// Base implementation for std::tuple and std::pair
+template <template <typename...> class Tuple, typename... Ts>
@johnbanq
johnbanq / cast.h
Created August 24, 2023 19:32
fixed header file for pytorch3d #1024
/*
pybind11/cast.h: Partial template specializations to cast between
C++ and Python types
Copyright (c) 2016 Wenzel Jakob <wenzel.jakob@epfl.ch>
All rights reserved. Use of this source code is governed by a
BSD-style license that can be found in the LICENSE file.
*/
@johnbanq
johnbanq / LoggingVerticle.kt
Created February 20, 2020 11:44
sample of vert.x verticle using a more explicit approach
package com.gzanyan.mcpks.logging
import com.gzanyan.mcpks.common.framework.suspendHandler
import com.gzanyan.mcpks.common.toolkit.auth.jwt.jwtAuthHandler
import com.gzanyan.mcpks.common.toolkit.di.*
import com.gzanyan.mcpks.common.toolkit.eventbus.eventBus
import com.gzanyan.mcpks.common.toolkit.web.httpServer
import com.gzanyan.mcpks.common.toolkit.web.logFailureHandler
import com.gzanyan.mcpks.logging.api.LogEventEBService
import com.gzanyan.mcpks.logging.inbound.LogEventQueryController