这是一个简单的问题,我无法通过谷歌搜索和查看github 文档找到答案。
如果有人对 github 中已关闭的问题发表新评论,Repo 所有者是否会收到通知?
我想安装这个https://github.com/sraashis/deepdyn项目的要求,但是当我运行时:
pip install -r deepdyn/assets/requirements.txt
Run Code Online (Sandbox Code Playgroud)
我在终端中收到以下错误:
ERROR: Command errored out with exit status 1:
command: /home/masoud/anaconda3/envs/tfgpu/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-xzvdvhgj/MarkupSafe/setup.py'"'"'; __file__='"'"'/tmp/pip-install-xzvdvhgj/MarkupSafe/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-v7ebj7ab
cwd: /tmp/pip-install-xzvdvhgj/MarkupSafe/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-xzvdvhgj/MarkupSafe/setup.py", line 6, in <module>
from setuptools import setup, Extension, Feature
ImportError: cannot import name 'Feature' from 'setuptools' (/home/masoud/anaconda3/envs/tfgpu/lib/python3.7/site-packages/setuptools/__init__.py)
----------------------------------------
ERROR: Command errored out with exit status …Run Code Online (Sandbox Code Playgroud) 作为 Python 的初学者,我正在尝试使用本教程说明(https://www.youtube.com/watch?v=kq2Gjv_pPe8&list=PLiIy2ThQvgewp67FDKV2H1h-154bJK9RS&index=2&t=477s)将我的 XML 文件转换为 CSV 。最后,我需要 tfrecord 格式的图像和注释,以便在我的自定义 EfficientDet 模型中使用它们。我遵循了这两个帖子的解决方案(IndexError: child index out of range以及为什么我不断让 child out of range 错误?)并尝试了一堆这句话中不同节点号(1-9)的“int(member[3][0].text)”却不断收到“IndexError: child index out of range”错误!
我正在尝试使用以下格式转换我的 XML 文件:
<annotation>
<folder>images</folder>
<filename>Czech_000010.jpg</filename>
<size>
<depth>3</depth>
<width>600</width>
<height>600</height>
</size>
<object>
<name>D40</name>
<bndbox>
<xmin>213</xmin>
<ymin>409</ymin>
<xmax>274</xmax>
<ymax>441</ymax>
</bndbox>
</object>
<object>
<name>D10</name>
<bndbox>
<xmin>228</xmin>
<ymin>473</ymin>
<xmax>327</xmax>
<ymax>495</ymax>
</bndbox>
</object>
</annotation>
Run Code Online (Sandbox Code Playgroud)
使用以下脚本转换为 CSV:
import os
import glob
import pandas as pd
import xml.etree.ElementTree as ET
def xml_to_csv(path):
xml_list = …Run Code Online (Sandbox Code Playgroud)