This file contains 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 | |
from itertools import product | |
# voxel range | |
range_size = 11 | |
x_lin = np.linspace(-1.5, 1.5, range_size) | |
y_lin = np.linspace(-1.5, 1.5, range_size) | |
z_lin = np.linspace(-1.5, 1.5, range_size) |
This file contains 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 open3d as o3d | |
if __name__ == "__main__": | |
object_txt = np.loadtxt('myfile.3dp') | |
points = object_txt[:, 2:5] | |
colors = object_txt[:, 5:] / 255 | |
pcd = o3d.geometry.PointCloud() |
This file contains 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
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
void read(char** sample, char* file_name) | |
{ | |
FILE* fp; | |
int i = 0; | |
fp = fopen(file_name, "r"); |
This file contains 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
#!/usr/bin/env python | |
from __future__ import print_function | |
import argparse | |
import glob | |
import json | |
import os | |
import os.path as osp | |
import sys |
This file contains 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
Apple_porcelain | |
Beer | |
Book | |
Carbonated_drinks | |
Cup | |
Dispenser | |
Desk_lamp | |
Drugs | |
Glasses_case | |
Kettle |
This file contains 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 | |
import torch.nn as nn | |
import torchvision.models as models | |
from pprint import pprint | |
class Net(nn.Module): | |
def __init__(self): | |
super().__init__() | |
model = models.vgg19(pretrained=False) | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 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.company; | |
import java.awt.*; | |
import java.awt.event.KeyEvent; | |
import java.awt.event.KeyListener; | |
import java.awt.event.WindowEvent; | |
import java.awt.event.WindowListener; | |
import java.util.ArrayList; | |
public class Report2 extends Frame implements WindowListener, KeyListener, Runnable { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder