小编Kon*_*rad的帖子

在Azure应用服务上使用python 3.6 - 尽管它是作为扩展安装的,但仍无法正常工作

我使用外部Git仓库(Bitbucket)将Azure应用程序(准确地说是wagtail)部署到Azure Web Services,这是一个挑战.我想使用Python 3.6.1,因此我遵循了在Azure App Service手册上管理Python的说明

  • 我安装了python 3.6.1扩展并且到位
  • 我在我的应用程序的根目录中创建了web.config文件(我检查过并将其上传到服务器)

但是,部署失败并显示消息

Detecting Python runtime from runtime.txt
Unsupported runtime: python-3.6.1

Supported runtime values are:
python-2.7
python-3.4
An error has occurred during web site deployment.
\r\nD:\Program Files (x86)\SiteExtensions\Kudu\66.61008.3066\bin\Scripts\starter.cmd "D:\home\site\deployments\tools\deploy.cmd"
Run Code Online (Sandbox Code Playgroud)

我的web.config文件

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <appSettings>
    <add key="PYTHONPATH" value="D:\home\site\wwwroot"/>
    <!-- Django apps only -->
    <add key="WSGI_HANDLER" value="django.core.wsgi.get_wsgi_application()"/>
    <add key="WSGI_LOG" value="D:\home\LogFiles\wfastcgi.log"/>
  </appSettings>
  <system.webServer>
    <handlers>
      <add name="PythonHandler" path="*" verb="*" modules="FastCgiModule"
           scriptProcessor="D:\home\python361x64\python.exe|D:\home\python361x64\wfastcgi.py"
           resourceType="Unspecified" requireAccess="Script"/>
    </handlers>
  </system.webServer>
</configuration>
Run Code Online (Sandbox Code Playgroud)

路径还可以,下面是ls来自Kudu控制台

D:\home\python361x64>ls
DLLs
Lib
Scripts
__pycache__ …
Run Code Online (Sandbox Code Playgroud)

python django azure azure-web-sites wagtail

3
推荐指数
1
解决办法
4256
查看次数

Tensorflow 对象检测 API 中预测数量的限制

我用 Tensorflow 对象检测 API 训练了一个 Faster R-CNN 模型,但遇到了一个奇怪的问题。尽管图像中有更多的对象,但模型的输出最多有 100 个预测。这是我测试过的每个图像的情况。

我在 10 个 GitHub 上发现了类似的问题,但据我所知,他们在这些方面做得并不多。 https://github.com/tensorflow/tensorflow/issues/30464

也许您过去遇到过类似的问题?知道如何解决这个问题吗?

示例图像

python object-detection tensorflow object-detection-api

3
推荐指数
1
解决办法
1228
查看次数