opencv/samples
Abduragim Shtanchaev 88f05e49be
Merge pull request #25868 from Abdurrahheem:ash/add-gpt2-sample
Add sample for GPT2 inference #25868

### Pull Request Readiness Checklist

This PR adds sample for inferencing GPT-2 model. More specificly implementation of GPT-2 from [this repository](https://github.com/karpathy/build-nanogpt). Currently inference in OpenCV is only possible to do with fixed window size due to not supported dynamic shapes. 

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [x] The feature is well documented and sample code can be built with the project CMake
2024-07-18 16:47:12 +03:00
..
android Merge branch 4.x 2024-02-12 14:20:35 +03:00
cpp Merge pull request #25252 from gursimarsingh:cpp_samples_cleanup 2024-07-11 15:07:21 +03:00
data Merge pull request #24496 from cabelo:yolov3 2023-11-14 09:06:36 +03:00
directx Merge pull request #22462 from Biswa96:fix-directx-check 2022-10-03 08:37:36 +03:00
dnn Merge pull request #25868 from Abdurrahheem:ash/add-gpt2-sample 2024-07-18 16:47:12 +03:00
gdb Merge pull request #21805 from rogday:pretty_fix 2022-04-20 04:55:04 +00:00
gpu Move objdetect HaarCascadeClassifier and HOGDescriptor to contrib xobjdetect (#25198) 2024-03-21 23:40:10 +03:00
hal build: suppress the warning 2022-07-12 19:42:39 +09:00
install Merge branch 4.x 2021-12-30 21:43:45 +00:00
java Move objdetect HaarCascadeClassifier and HOGDescriptor to contrib xobjdetect (#25198) 2024-03-21 23:40:10 +03:00
opencl samples: fix OpenCL events leaks 2020-05-14 17:15:09 +00:00
opengl Merge branch 4.x 2024-07-17 10:08:16 +03:00
python Merge pull request #25503 from WanliZhong:remove_goturn 2024-05-06 11:57:30 +03:00
semihosting Merge branch 4.x 2021-12-30 21:43:45 +00:00
swift/ios Update tests and samples to work with changes to dynamic build 2020-09-27 21:12:28 +09:00
sycl ocl: fixes for OpenCL multiple contexts support 2020-09-03 20:34:49 +00:00
tapi Move objdetect HaarCascadeClassifier and HOGDescriptor to contrib xobjdetect (#25198) 2024-03-21 23:40:10 +03:00
va_intel samples(va): fix build warnings, use cv::format() 2021-02-19 10:36:26 +00:00
winrt Move objdetect HaarCascadeClassifier and HOGDescriptor to contrib xobjdetect (#25198) 2024-03-21 23:40:10 +03:00
winrt_universal Move objdetect HaarCascadeClassifier and HOGDescriptor to contrib xobjdetect (#25198) 2024-03-21 23:40:10 +03:00
wp8 Merge pull request #20223 from jogo-:3.4_wp8_samples_typos 2021-06-07 17:32:14 +00:00
_winpack_build_sample.cmd next: update versions handling 2020-10-11 08:11:32 +00:00
_winpack_run_python_sample.cmd Merge branch 4.x 2024-01-19 17:32:22 +03:00
CMakeLists.example.in cmake: enable C++11 implicitly 2020-02-03 17:45:37 +03:00
CMakeLists.txt Merge pull request #25197 from invarrow:invbranch-cleanup 2024-03-26 15:17:18 +03:00
samples_utils.cmake imgproc: add IntelligentScissors 2020-12-25 10:57:11 +00:00