সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
টেনসরফ্লো :: অপস:: নমুনা বিকৃত বাউন্ডিংবক্সভি২ :: Attrs
#include <image_ops.h>
SampleDistortedBoundingBoxV2 এর জন্য ঐচ্ছিক অ্যাট্রিবিউট সেটার।
সারাংশ
পাবলিক ফাংশন |
---|
AreaRange (const gtl::ArraySlice< float > & x) | ছবির ক্রপ করা এলাকায় অবশ্যই এই সীমার মধ্যে সরবরাহ করা ছবির একটি ভগ্নাংশ থাকতে হবে। |
AspectRatioRange (const gtl::ArraySlice< float > & x) | চিত্রের ক্রপ করা এলাকায় অবশ্যই একটি আকৃতির অনুপাত = প্রস্থ/উচ্চতা থাকতে হবে। |
MaxAttempts (int64 x) | নির্দিষ্ট সীমাবদ্ধতার চিত্রের একটি ক্রপ করা অঞ্চল তৈরি করার প্রচেষ্টার সংখ্যা৷ |
Seed (int64 x) | যদি seed বা seed2 অ-শূন্য সেট করা হয়, তাহলে প্রদত্ত seed দ্বারা এলোমেলো সংখ্যা জেনারেটর বীজ করা হয়। |
Seed2 (int64 x) | একটি দ্বিতীয় বীজ বীজ সংঘর্ষ এড়াতে. |
UseImageIfNoBoundingBoxes (bool x) | কোনো বাউন্ডিং বাক্স সরবরাহ না হলে আচরণ নিয়ন্ত্রণ করে। |
পাবলিক বৈশিষ্ট্য
এলাকা_পরিসীমা_
gtl::ArraySlice< float > tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::area_range_ = Default_area_range()
আকৃতি_অনুপাত_পরিসীমা_
gtl::ArraySlice< float > tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::aspect_ratio_range_ = Default_aspect_ratio_range()
সর্বোচ্চ_প্রচেষ্টা_
int64 tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::max_attempts_ = 100
বীজ2_
int64 tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::seed2_ = 0
বীজ_
int64 tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::seed_ = 0
ব্যবহার_ছবি_যদি_না_বাউন্ডিং_বক্স_
bool tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::use_image_if_no_bounding_boxes_ = false
পাবলিক ফাংশন
এলাকা রেঞ্জ
TF_MUST_USE_RESULT Attrs tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::AreaRange(
const gtl::ArraySlice< float > & x
)
ছবির ক্রপ করা এলাকায় অবশ্যই এই সীমার মধ্যে সরবরাহ করা ছবির একটি ভগ্নাংশ থাকতে হবে।
ডিফল্টে [0.05, 1]
Aspect RatioRange
TF_MUST_USE_RESULT Attrs tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::AspectRatioRange(
const gtl::ArraySlice< float > & x
)
চিত্রের ক্রপ করা এলাকায় অবশ্যই একটি আকৃতির অনুপাত = প্রস্থ/উচ্চতা থাকতে হবে।
ডিফল্ট [0.75, 1.33]
সর্বোচ্চ প্রচেষ্টা
TF_MUST_USE_RESULT Attrs tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::MaxAttempts(
int64 x
)
নির্দিষ্ট সীমাবদ্ধতার চিত্রের একটি ক্রপ করা অঞ্চল তৈরি করার প্রচেষ্টার সংখ্যা৷
max_attempts
ব্যর্থ হওয়ার পরে, সম্পূর্ণ চিত্রটি ফিরিয়ে দিন।
ডিফল্ট 100
বীজ
TF_MUST_USE_RESULT Attrs tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::Seed(
int64 x
)
যদি seed
বা seed2
অ-শূন্য সেট করা হয়, তাহলে প্রদত্ত seed
দ্বারা এলোমেলো সংখ্যা জেনারেটর বীজ করা হয়।
অন্যথায়, এটি একটি এলোমেলো বীজ দ্বারা বীজ হয়।
ডিফল্ট 0
বীজ ২
TF_MUST_USE_RESULT Attrs tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::Seed2(
int64 x
)
একটি দ্বিতীয় বীজ বীজ সংঘর্ষ এড়াতে.
ডিফল্ট 0
ImageIfNoBoundingBoxes ব্যবহার করুন
TF_MUST_USE_RESULT Attrs tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::UseImageIfNoBoundingBoxes(
bool x
)
কোনো বাউন্ডিং বাক্স সরবরাহ না হলে আচরণ নিয়ন্ত্রণ করে।
যদি সত্য হয়, অনুমান করুন একটি অন্তর্নিহিত বাউন্ডিং বক্স পুরো ইনপুটকে কভার করে। মিথ্যা হলে, একটি ত্রুটি বাড়ান।
ডিফল্ট থেকে মিথ্যা
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-26 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-26 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs Struct Reference\n\ntensorflow::ops::SampleDistortedBoundingBoxV2::Attrs\n====================================================\n\n`#include \u003cimage_ops.h\u003e`\n\nOptional attribute setters for [SampleDistortedBoundingBoxV2](/versions/r2.3/api_docs/cc/class/tensorflow/ops/sample-distorted-bounding-box-v2#classtensorflow_1_1ops_1_1_sample_distorted_bounding_box_v2).\n\nSummary\n-------\n\n| ### Public attributes ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------|\n| [area_range_](#structtensorflow_1_1ops_1_1_sample_distorted_bounding_box_v2_1_1_attrs_1a69ae593a1a5a7780e524e2356d2faff8)` = Default_area_range()` | `gtl::ArraySlice\u003c float \u003e` |\n| [aspect_ratio_range_](#structtensorflow_1_1ops_1_1_sample_distorted_bounding_box_v2_1_1_attrs_1a0c4e44eabfe7afab174ee2f85df1726d)` = Default_aspect_ratio_range()` | `gtl::ArraySlice\u003c float \u003e` |\n| [max_attempts_](#structtensorflow_1_1ops_1_1_sample_distorted_bounding_box_v2_1_1_attrs_1a730472cdd7975ef9d970e1f8b5023364)` = 100` | `int64` |\n| [seed2_](#structtensorflow_1_1ops_1_1_sample_distorted_bounding_box_v2_1_1_attrs_1a7c9b9d92bf0a822f1545d6ca832b0422)` = 0` | `int64` |\n| [seed_](#structtensorflow_1_1ops_1_1_sample_distorted_bounding_box_v2_1_1_attrs_1acff1116d6929f772cb713fe9a3d32eeb)` = 0` | `int64` |\n| [use_image_if_no_bounding_boxes_](#structtensorflow_1_1ops_1_1_sample_distorted_bounding_box_v2_1_1_attrs_1ad86cffc54629ac12206d2c500e0779cb)` = false` | `bool` |\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AreaRange](#structtensorflow_1_1ops_1_1_sample_distorted_bounding_box_v2_1_1_attrs_1a8df62937b62cff944feb1b8fa311ded7)`(const gtl::ArraySlice\u003c float \u003e & x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/sample-distorted-bounding-box-v2/attrs#structtensorflow_1_1ops_1_1_sample_distorted_bounding_box_v2_1_1_attrs) The cropped area of the image must contain a fraction of the supplied image within this range. |\n| [AspectRatioRange](#structtensorflow_1_1ops_1_1_sample_distorted_bounding_box_v2_1_1_attrs_1a3cbee228822ba7b22c16480f4b924bf0)`(const gtl::ArraySlice\u003c float \u003e & x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/sample-distorted-bounding-box-v2/attrs#structtensorflow_1_1ops_1_1_sample_distorted_bounding_box_v2_1_1_attrs) The cropped area of the image must have an aspect ratio = width / height within this range. |\n| [MaxAttempts](#structtensorflow_1_1ops_1_1_sample_distorted_bounding_box_v2_1_1_attrs_1a3d45be2446f3ad2895375dc1dad9cc0b)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/sample-distorted-bounding-box-v2/attrs#structtensorflow_1_1ops_1_1_sample_distorted_bounding_box_v2_1_1_attrs) Number of attempts at generating a cropped region of the image of the specified constraints. |\n| [Seed](#structtensorflow_1_1ops_1_1_sample_distorted_bounding_box_v2_1_1_attrs_1adc049c4ba5c6fdd2d276098deeb8c992)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/sample-distorted-bounding-box-v2/attrs#structtensorflow_1_1ops_1_1_sample_distorted_bounding_box_v2_1_1_attrs) If either `seed` or `seed2` are set to non-zero, the random number generator is seeded by the given `seed`. |\n| [Seed2](#structtensorflow_1_1ops_1_1_sample_distorted_bounding_box_v2_1_1_attrs_1a676c3cc02479e14a7f557fe7d469cb93)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/sample-distorted-bounding-box-v2/attrs#structtensorflow_1_1ops_1_1_sample_distorted_bounding_box_v2_1_1_attrs) A second seed to avoid seed collision. |\n| [UseImageIfNoBoundingBoxes](#structtensorflow_1_1ops_1_1_sample_distorted_bounding_box_v2_1_1_attrs_1a3179a059c42359549522461cb227d6c3)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/sample-distorted-bounding-box-v2/attrs#structtensorflow_1_1ops_1_1_sample_distorted_bounding_box_v2_1_1_attrs) Controls behavior if no bounding boxes supplied. |\n\nPublic attributes\n-----------------\n\n### area_range_\n\n```scdoc\ngtl::ArraySlice\u003c float \u003e tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::area_range_ = Default_area_range()\n``` \n\n### aspect_ratio_range_\n\n```scdoc\ngtl::ArraySlice\u003c float \u003e tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::aspect_ratio_range_ = Default_aspect_ratio_range()\n``` \n\n### max_attempts_\n\n```scdoc\nint64 tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::max_attempts_ = 100\n``` \n\n### seed2_\n\n```scdoc\nint64 tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::seed2_ = 0\n``` \n\n### seed_\n\n```scdoc\nint64 tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::seed_ = 0\n``` \n\n### use_image_if_no_bounding_boxes_\n\n```scdoc\nbool tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::use_image_if_no_bounding_boxes_ = false\n``` \n\nPublic functions\n----------------\n\n### AreaRange\n\n```gdscript\nTF_MUST_USE_RESULT Attrs tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::AreaRange(\n const gtl::ArraySlice\u003c float \u003e & x\n)\n``` \nThe cropped area of the image must contain a fraction of the supplied image within this range.\n\nDefaults to \\[0.05, 1\\] \n\n### AspectRatioRange\n\n```gdscript\nTF_MUST_USE_RESULT Attrs tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::AspectRatioRange(\n const gtl::ArraySlice\u003c float \u003e & x\n)\n``` \nThe cropped area of the image must have an aspect ratio = width / height within this range.\n\nDefaults to \\[0.75, 1.33\\] \n\n### MaxAttempts\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::MaxAttempts(\n int64 x\n)\n``` \nNumber of attempts at generating a cropped region of the image of the specified constraints.\n\nAfter `max_attempts` failures, return the entire image.\n\nDefaults to 100 \n\n### Seed\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::Seed(\n int64 x\n)\n``` \nIf either `seed` or `seed2` are set to non-zero, the random number generator is seeded by the given `seed`.\n\nOtherwise, it is seeded by a random seed.\n\nDefaults to 0 \n\n### Seed2\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::Seed2(\n int64 x\n)\n``` \nA second seed to avoid seed collision.\n\nDefaults to 0 \n\n### UseImageIfNoBoundingBoxes\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::UseImageIfNoBoundingBoxes(\n bool x\n)\n``` \nControls behavior if no bounding boxes supplied.\n\nIf true, assume an implicit bounding box covering the whole input. If false, raise an error.\n\nDefaults to false"]]