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
#include <cmath> | |
#include <cstdio> | |
#include <iostream> | |
#include "ceres/ceres.h" | |
#include "ceres/rotation.h" | |
// Read a Bundle Adjustment in the Large dataset. | |
class BALProblem | |
{ | |
public: | |
~BALProblem() |
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
# cmake version to be used | |
cmake_minimum_required( VERSION 3.0 ) | |
# message("system: ${CMAKE_LIBRARY_PATH}") | |
# project name | |
project(helloworld) | |
# target |
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 | |
import numpy as np | |
from torchvision import datasets, transforms, models | |
from PIL import Image | |
import torch.nn.functional as F | |
import matplotlib.pyplot as plt | |
import cv2 | |
class GradCAM(): | |
def __init__(self, model, layer_index=-6): |