
Python
zooop
这个作者很懒,什么都没留下…
展开
-
IDEA : no python interpreter configured for the module
问题:no python interpreter configured for the module(没有为模块配置python解释器)解决方案:File -> Project Structure -> PlatForm Settings -> SDKs ,点击+,-> New environment -> Base interpreter:指向python3.9的安装目录中的python.exe问题出现的简单复盘:1.IDEA中,在 File -> S原创 2021-08-31 17:01:12 · 8620 阅读 · 1 评论 -
Flask中线程重复启动以及跨域问题的解决
做了一个项目,项目中使用了cafee 的两个预训练模型识别物体,以及使用了keras的四个模型(因为keras的模型识别耗时长,只启用了2个)。并能显示出图片以及每种模型识别的信息。为了能够在浏览器中循环加载新的图片,就使用了Flask完成了一个http服务器。在运行期间,发现此识别线程重复启动。一张图片被这四个模型识别了2次。以及跨域问题,跨域问题。对比了集中解决方法,使用下面这两行解决from...原创 2018-03-27 17:44:55 · 1498 阅读 · 0 评论