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 torch | |
class TwoDimRotary(torch.nn.Module): | |
def __init__(self, dim, base=100, h = 128, w = 128): | |
super().__init__() | |
self.inv_freq = 1.0 / (base ** (torch.arange(0, dim, 2).float() / (dim))) | |
self.h = h | |
self.w = w | |
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 numpy as np | |
import torch | |
import time | |
import imageio | |
import cv2 | |
from tqdm import tqdm | |
import torch.nn.functional as Fu | |
from pytorch3d.implicitron.tools.point_cloud_utils import get_rgbd_point_cloud | |
from pytorch3d.renderer import (AlphaCompositor, MultinomialRaysampler, | |
NDCMultinomialRaysampler, |
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 numpy as np | |
import torch | |
import time | |
import imageio | |
import cv2 | |
from tqdm import tqdm | |
import torch.nn.functional as Fu | |
from pytorch3d.implicitron.tools.point_cloud_utils import get_rgbd_point_cloud | |
from pytorch3d.renderer import (AlphaCompositor, MultinomialRaysampler, | |
NDCMultinomialRaysampler, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
FROM ubuntu | |
RUN apt update | |
RUN apt install -y tini dumb-init python3-pip | |
RUN pip install apache-airflow | |
# place the entrypoint script | |
COPY entrypoint.sh /entrypoint | |
RUN chmod +x /entrypoint | |
# a script that calls airflow (and does test-relevant things too) |
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
#SingleInstance Force | |
#NoTrayIcon ;If you want the tray icon to be visible; comment this line by adding a semicolon ; in front of the #. Example: ;#NoTrayIcon | |
; ALTERNATIVE METHOD: Try the built-in Everything option "hotkey_explorer_path_search" | |
; ^^^INFO: https://www.voidtools.com/forum/viewtopic.php?p=17390#p17390 | |
EverythingPath := "C:\Program Files\Everything\Everything.exe" ;Set this to your everything.exe path. Keep the quotes. | |
;---Optional setup for special folders--- | |
MyRecycleBin := "Recycle Bin" ;If your OS is not English, go to your explorer's "Recycle Bin" (🚮) folder and change this to the title of that window. Keep the quotes. |