Git Product home page Git Product logo

Comments (11)

alexppppp avatar alexppppp commented on June 3, 2024

I've trained this model with 8 keypoints, and it works very good

It's important to have a large dataset to train the model well

from keypoint_rcnn_training_pytorch.

madenburak avatar madenburak commented on June 3, 2024

The model is work well, if all keypoints are marked. if there is not all keypoint in annotated image, when txt files convert to json some keypoint is null. I start training, it stop.

from keypoint_rcnn_training_pytorch.

alexppppp avatar alexppppp commented on June 3, 2024

There are two ways to solve the problem:
a). either mark all unmarked keypoints
b). or remove images where not all keypoints are marked

from keypoint_rcnn_training_pytorch.

madenburak avatar madenburak commented on June 3, 2024

I annotated all point on images but I getting this error.

---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
/tmp/ipykernel_8167/1220785760.py in <module>
     11 
     12 model = get_model(num_keypoints = 5)
---> 13 model.to(device)
     14 
     15 params = [p for p in model.parameters() if p.requires_grad]

~/anaconda3/envs/point/lib/python3.8/site-packages/torch/nn/modules/module.py in to(self, *args, **kwargs)
    897             return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking)
    898 
--> 899         return self._apply(convert)
    900 
    901     def register_backward_hook(

~/anaconda3/envs/point/lib/python3.8/site-packages/torch/nn/modules/module.py in _apply(self, fn)
    568     def _apply(self, fn):
    569         for module in self.children():
--> 570             module._apply(fn)
    571 
    572         def compute_should_use_set_data(tensor, tensor_applied):

~/anaconda3/envs/point/lib/python3.8/site-packages/torch/nn/modules/module.py in _apply(self, fn)
    568     def _apply(self, fn):
    569         for module in self.children():
--> 570             module._apply(fn)
    571 
    572         def compute_should_use_set_data(tensor, tensor_applied):

~/anaconda3/envs/point/lib/python3.8/site-packages/torch/nn/modules/module.py in _apply(self, fn)
    568     def _apply(self, fn):
    569         for module in self.children():
--> 570             module._apply(fn)
    571 
    572         def compute_should_use_set_data(tensor, tensor_applied):

~/anaconda3/envs/point/lib/python3.8/site-packages/torch/nn/modules/module.py in _apply(self, fn)
    591             # `with torch.no_grad():`
    592             with torch.no_grad():
--> 593                 param_applied = fn(param)
    594             should_use_set_data = compute_should_use_set_data(param, param_applied)
    595             if should_use_set_data:

~/anaconda3/envs/point/lib/python3.8/site-packages/torch/nn/modules/module.py in convert(t)
    895                 return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None,
    896                             non_blocking, memory_format=convert_to_format)
--> 897             return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking)
    898 
    899         return self._apply(convert)

RuntimeError: CUDA error: device-side assert triggered
CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.

from keypoint_rcnn_training_pytorch.

alexppppp avatar alexppppp commented on June 3, 2024

Don't know, I didn't get such error

If you share your notebook and dataset, I can check it once I have a free time

from keypoint_rcnn_training_pytorch.

madenburak avatar madenburak commented on June 3, 2024

How can I send my dataset? Mail or drive?

from keypoint_rcnn_training_pytorch.

alexppppp avatar alexppppp commented on June 3, 2024

What is your email?

from keypoint_rcnn_training_pytorch.

sowmyakavali avatar sowmyakavali commented on June 3, 2024

I annotated all point on images but I getting this error.

---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
/tmp/ipykernel_8167/1220785760.py in <module>
     11 
     12 model = get_model(num_keypoints = 5)
---> 13 model.to(device)
     14 
     15 params = [p for p in model.parameters() if p.requires_grad]

~/anaconda3/envs/point/lib/python3.8/site-packages/torch/nn/modules/module.py in to(self, *args, **kwargs)
    897             return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking)
    898 
--> 899         return self._apply(convert)
    900 
    901     def register_backward_hook(

~/anaconda3/envs/point/lib/python3.8/site-packages/torch/nn/modules/module.py in _apply(self, fn)
    568     def _apply(self, fn):
    569         for module in self.children():
--> 570             module._apply(fn)
    571 
    572         def compute_should_use_set_data(tensor, tensor_applied):

~/anaconda3/envs/point/lib/python3.8/site-packages/torch/nn/modules/module.py in _apply(self, fn)
    568     def _apply(self, fn):
    569         for module in self.children():
--> 570             module._apply(fn)
    571 
    572         def compute_should_use_set_data(tensor, tensor_applied):

~/anaconda3/envs/point/lib/python3.8/site-packages/torch/nn/modules/module.py in _apply(self, fn)
    568     def _apply(self, fn):
    569         for module in self.children():
--> 570             module._apply(fn)
    571 
    572         def compute_should_use_set_data(tensor, tensor_applied):

~/anaconda3/envs/point/lib/python3.8/site-packages/torch/nn/modules/module.py in _apply(self, fn)
    591             # `with torch.no_grad():`
    592             with torch.no_grad():
--> 593                 param_applied = fn(param)
    594             should_use_set_data = compute_should_use_set_data(param, param_applied)
    595             if should_use_set_data:

~/anaconda3/envs/point/lib/python3.8/site-packages/torch/nn/modules/module.py in convert(t)
    895                 return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None,
    896                             non_blocking, memory_format=convert_to_format)
--> 897             return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking)
    898 
    899         return self._apply(convert)

RuntimeError: CUDA error: device-side assert triggered
CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.

@madenburak
you are getting this error because you don't have enough memory in your system to process the batch of images.

from keypoint_rcnn_training_pytorch.

HanSeulChung avatar HanSeulChung commented on June 3, 2024

@madenburak how did you mark annotations not visible in the image? I set annotations not visible in the image [0,0,0]. because [x,y,visibility] visibility =0 means that the keypoint is not visible.

from keypoint_rcnn_training_pytorch.

HanSeulChung avatar HanSeulChung commented on June 3, 2024

@alexppppp

[[530, 555, 4400, 2025]]

ValueError Traceback (most recent call last)
in <cell line: 21>()
20
21 for epoch in range(num_epochs):
---> 22 train_one_epoch(model, optimizer, data_loader_train, device, epoch, print_freq=1000)
23 lr_scheduler.step()
24 evaluate(model, data_loader_test, device)

13 frames
/usr/local/lib/python3.9/dist-packages/albumentations/core/keypoints_utils.py in convert_keypoint_to_albumentations(keypoint, source_format, rows, cols, check_validity, angle_in_degrees)
197
198 if source_format == "xy":
--> 199 if len(keypoint[:2])== 0 | len(keypoint[2:])==0:
200 (x, y), tail = [0,0], tuple(0, 0)
201 else:

ValueError: not enough values to unpack (expected 2, got 0)

My keypoints are 5. and There are keypoints not visible in the image. so after annotation i change empty list to [0,0,0].
what can i do?.....

from keypoint_rcnn_training_pytorch.

ericfried1204 avatar ericfried1204 commented on June 3, 2024

Please see your dataset. If the value in annotation of dataset is empty, the above error is occur. I deleted the files that have empty value and then it is worked.

from keypoint_rcnn_training_pytorch.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.