-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can this model work when I don't give the bndbox? #35
Comments
Hi, @zeroXscorpion7 . You can try inference without bndbox, but, the performance can not be guaranteed, some skeleton flex is very likely to happen because of the mean/std shift. |
I want to test the efficacy in real-time, how do I identify one picture at a time? |
def main():
This is the code I edited, but it has some promble. |
do u solove it ? |
I remove my_dataloader and enter depthTemp into dataPreprocess, then I use torch.from_numpy to make it to tensor def dataPreprocess(img, depth_thres=0.4):
img=np.zeros((1,1,288,288),np.float32) Like these. |
thank you !! |
If you don't to use bndbox, you may train the data by yourself, or modify the train code. |
I see. Can u share the train code? you train on ITOP or K2PHD? I have seen some people use just use depth map to train a alphapose or openpose model . |
import cv2 os.environ["CUDA_VISIBLE_DEVICES"] = "0" DataHyperParmsTrainImgFrames = 1000 randomseed = 12345 save_dir = '' try: trainingImageDir = '' def pixel2world(x): def world2pixel(x): joint_id_to_name = { loading GT keypoints and center pointskeypointsWorldtest = scio.loadmat(keypointsfileTest)['keypoints3D'].astype(np.float32) keypointsWorldtrain = scio.loadmat(keypointsfileTrain)['keypoints3D'].astype(np.float32) def transform(img, label, matrix):
def dataPreprocess(index, img, keypointsUVD, depth_thres=0.4, augment=True):
###################### Pytorch dataloader #################
train_image_datasets = my_dataloader(trainingImageDir, keypointsWorldtrain, TrainImgFrames, augment=True) test_image_datasets = my_dataloader(testingImageDir, keypointsWorldtest, TestImgFrames, augment=False) def train():
def test():
def errorCompute(source, target):
def writeTxt(result):
if name == 'main': |
|
Hi bro.Can u share the itop model or k2phd model. |
Hi @zeroXscorpion7 ,
|
I am trying to use this model to Identify my pictures, if the bndbox is need?
The text was updated successfully, but these errors were encountered: