File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88"""
99
1010# SuperAnimal Demo: https://github.com/DeepLabCut/DeepLabCut/blob/main/examples/COLAB/COLAB_YOURDATA_SuperAnimal.ipynb
11- import sys
1211import os
1312import numpy as np
1413import glob
2524from fmpose3d .animals .common .arguments import opts as parse_args
2625from fmpose3d .common .camera import normalize_screen_coordinates , camera_to_world
2726
28- sys .path .append (os .getcwd ())
29-
3027args = parse_args ().parse ()
3128os .environ ["CUDA_VISIBLE_DEVICES" ] = args .gpu
3229
Original file line number Diff line number Diff line change 77Licensed under Apache 2.0
88"""
99
10- import sys
1110import cv2
1211import os
1312import numpy as np
1615from tqdm import tqdm
1716import copy
1817
19- sys .path .append (os .getcwd ())
20-
2118# Auto-download checkpoint files if missing
2219from fmpose3d .lib .checkpoint .download_checkpoints import ensure_checkpoints
2320ensure_checkpoints ()
Original file line number Diff line number Diff line change 1212import glob
1313import os
1414import random
15- import sys
1615
1716import cv2
1817import matplotlib .pyplot as plt
2322from torch .utils .data import Dataset
2423from tqdm import tqdm
2524
26- sys .path .append (os .path .dirname (sys .path [0 ]))
27-
28- from common .camera import normalize_screen_coordinates
29- from common .lifter3d import load_camera_params , load_h5_keypoints
25+ from fmpose3d .common .camera import normalize_screen_coordinates
26+ from fmpose3d .animals .common .lifter3d import load_camera_params , load_h5_keypoints
3027
3128
3229class ArberDataset (Dataset ):
Original file line number Diff line number Diff line change 77Licensed under Apache 2.0
88"""
99
10- import sys
11- sys .path .append (".." )
1210import torch
1311import torch .nn as nn
1412import math
You can’t perform that action at this time.
0 commit comments