Deutsch English Français Italiano |
<mailman.51.1722377808.2981.python-list@python.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!not-for-mail From: dn <PythonList@DancesWithMice.info> Newsgroups: comp.lang.python Subject: Re: Predicting an object over an pretrained model is not working Date: Wed, 31 Jul 2024 10:16:29 +1200 Organization: DWM Lines: 33 Message-ID: <mailman.51.1722377808.2981.python-list@python.org> References: <CAGJtH9Qjv2fQm=_HKwhoGS11uh+u4YoTVzYGHF=2jZC9HpdV9A@mail.gmail.com> <339c86d5-8cb5-4995-b5ba-12f88d71a107@DancesWithMice.info> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de B/42eOCBIao0hNIQ5YpZ6A2zFngihxp0F23bGkPKkfFg== Cancel-Lock: sha1:uuX3zLxY4Vjiklrs0dE+6lr2+QU= sha256:9S4YIle/sxjXx15uXBM+ip3sRXczSRX0HURVxqlJNlc= Return-Path: <PythonList@DancesWithMice.info> X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org Authentication-Results: mail.python.org; dkim=pass reason="2048-bit key; unprotected key" header.d=danceswithmice.info header.i=@danceswithmice.info header.b=NA4IGw/Y; dkim-adsp=pass; dkim-atps=neutral X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '(assuming': 0.09; '=dn': 0.09; 'code?': 0.09; 'from:addr:danceswithmice.info': 0.09; 'from:addr:pythonlist': 0.09; 'output:': 0.09; 'subject:not': 0.09; 'tensorflow': 0.09; 'annotated': 0.16; 'dict': 0.16; 'message-id:@DancesWithMice.info': 0.16; 'numbers?': 0.16; 'possible?': 0.16; 'received:cloud': 0.16; 'received:rangi.cloud': 0.16; 'sheep': 0.16; 'skip:5 20': 0.16; 'sorted': 0.16; 'subject:model': 0.16; 'subject:working': 0.16; 'wrote:': 0.16; 'to:addr:python-list': 0.20; 'all,': 0.20; 'input': 0.21; 'code': 0.23; 'object': 0.26; 'expect': 0.28; 'header:User-Agent:1': 0.30; 'header:Organization:1': 0.31; 'python-list': 0.32; 'received:192.168.1': 0.32; 'able': 0.34; 'header:In-Reply-To:1': 0.34; 'following': 0.35; 'fix': 0.36; 'target': 0.36; 'using': 0.37; 'received:192.168': 0.37; 'added': 0.39; 'want': 0.40; 'tell': 0.60; 'likely': 0.61; 'key': 0.64; 'order': 0.69; 'model.': 0.69; 'prediction': 0.69; 'skip:4 10': 0.75; '....': 0.76; 'database': 0.80; 'study': 0.82; 'subject:over': 0.84 DKIM-Filter: OpenDKIM Filter v2.11.0 vps.rangi.cloud 362EF82A6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=danceswithmice.info; s=staff; t=1722377794; bh=/K4qqS2OBwMXVaooACCxSLC2Nl4TOBISFjDYPUzQ/xs=; h=Date:From:Subject:To:References:In-Reply-To:From; b=NA4IGw/Y3H/FDR3qQOGyiZlNVk03Cw/YXBl8y6HIgCZePP43Lh1Bb68xueAJqPjxr 2HauR2gckDXmRQNjRE9RVc37Vz7l9Soi5r6TL2E3xkh6k3vy64F3yCRszn3oNxyIcV SV2U1lwo0ZYMGoXKFDIQ+276zMfTIAgkqB2giACeEoPwSaWhpPGQ/rMLXBLiIFbhqx PgPURVG1Gq1lMhmufTGzEyEx8/l6tGOhHVBrQM6JXfDbseNFtGv26aaqr6vFnVGcBl ywssqJ6kxz+Rmg7GnEk5u/d6AR+MIg+jlzx9OxCVARk+q27FopwQrdBZonIRfBVHZH MJ1LXQIrH1ZOA== User-Agent: Mozilla Thunderbird Content-Language: en-US In-Reply-To: <CAGJtH9Qjv2fQm=_HKwhoGS11uh+u4YoTVzYGHF=2jZC9HpdV9A@mail.gmail.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.39 Precedence: list List-Id: General discussion list for the Python programming language <python-list.python.org> List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> List-Archive: <https://mail.python.org/pipermail/python-list/> List-Post: <mailto:python-list@python.org> List-Help: <mailto:python-list-request@python.org?subject=help> List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> X-Mailman-Original-Message-ID: <339c86d5-8cb5-4995-b5ba-12f88d71a107@DancesWithMice.info> X-Mailman-Original-References: <CAGJtH9Qjv2fQm=_HKwhoGS11uh+u4YoTVzYGHF=2jZC9HpdV9A@mail.gmail.com> Bytes: 5001 On 31/07/24 06:18, marc nicole via Python-list wrote: > Hello all, > > I want to predict an object by given as input an image and want to have my > model be able to predict the label. I have trained a model using tensorflow > based on annotated database where the target object to predict was added to > the pretrained model. the code I am using is the following where I set the > target object image as input and want to have the prediction output: .... > WHile I expect only the dict to contain the small_ball key > How's that is possible? where's the prediction output?How to fix the code? To save us lots of reading and study to be able to help you, please advise: 1 what are the meanings of all these numbers? > 'sheep': [[233.0, 92.0, 448.0, -103.0, >> 5.3531270027160645], [167.0, 509.0, 209.0, 101.0, 4.947688579559326], >> [0.0, 0.0, 448.0, 431.0, 3.393721580505371]] 2 (assuming it hasn't) why the dict has not been sorted into a meaningful order 3 how can one tell that the image is more likely to be a sheep than a train? -- Regards, =dn