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 tensorflow as tf | |
import numpy as np | |
import os | |
import matplotlib.pyplot as plt | |
# Paths to input images, heatmaps, and keypoints directories | |
input_image_dir = 'iMAgE/iMAgE/' | |
heatmap_dir = 'heATMAP/heATMAP/' | |
keypoints_dir = 'kpts2D/kpts2D/' |
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 os | |
import torch | |
from torch.utils.data import Dataset, DataLoader | |
import pandas as pd | |
import numpy as np | |
from PIL import Image | |
class DroneDataset(Dataset): | |
def __init__(self, datacdn_path, trajectories_path, intrinsic_matrix, keypoints_3d): | |
""" |
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 os | |
import torch | |
from torch.utils.data import Dataset, DataLoader | |
import pandas as pd | |
import numpy as np | |
from PIL import Image | |
class DroneDataset(Dataset): | |
def __init__(self, datacdn_path, trajectories_path, intrinsic_matrix): |