This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import torch | |
import torch.nn as nn | |
import torch.nn.functional as F | |
from timm.layers import DropPath, to_2tuple, trunc_normal_ | |
import torch.utils.checkpoint as checkpoint | |
import nibabel as nib | |
import numpy as np | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
pybind11/cast.h: Partial template specializations to cast between | |
C++ and Python types | |
Copyright (c) 2016 Wenzel Jakob <[email protected]> | |
All rights reserved. Use of this source code is governed by a | |
BSD-style license that can be found in the LICENSE file. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |