Comments (11)
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.
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.
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.
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.
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.
How can I send my dataset? Mail or drive?
from keypoint_rcnn_training_pytorch.
What is your email?
from keypoint_rcnn_training_pytorch.
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.
@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.
[[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.
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)
- labeling tool HOT 2
- How to load the Custom Trained Model for Inference on new Image set
- Can the annotations include "keypoints" without "bboxes"?
- How do I get `evaluate()` to work? HOT 2
- Name of annotation format and/or converter to COCO?
- Training on dataset which also contain images without annotations gives error.
- Licence Addition Request HOT 1
- Training on multi classes HOT 3
- Results do not correspond to current coco set HOT 1
- AttributeError: module 'albumentations' has no attribute 'Sequentials' HOT 7
- Training on custom dataset HOT 3
- Which label tool i have to use for custom dataset preparation ? HOT 1
- I met this error when train with this code. HOT 1
- I met a error when train with this code.
- training error HOT 4
- glue_tubes_keypoints_dataset_134imgs annotations json file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keypoint_rcnn_training_pytorch.