ZongxuPan / DrBox-v2-tensorflow

The tensorflow implementation of DrBox-v2 which is an improved detector with rotatable boxes for target detection in remote sensing images
Apache License 2.0
47 stars 21 forks source link

python2的程序在python3里面如何运行 #21

Open APeiZou opened 4 years ago

APeiZou commented 4 years ago
from model import *

File "D:\Work\Python_Project\Work_tf2\DrBox-v2-tensorflow-master\model.py", line 4, in from rbox_functions import * File "D:\Work\Python_Project\Work_tf2\DrBox-v2-tensorflow-master\rbox_functions.py", line 7, in librbox = so("./librbox.so") File "D:\ProgramFiles\Anaconda3\lib\ctypes__init__.py", line 434, in LoadLibrary return self._dlltype(name) File "D:\ProgramFiles\Anaconda3\lib\ctypes__init.py", line 356, in init__ self._handle = _dlopen(self._name, mode) OSError: [WinError 193] %1 不是有效的 Win32 应用程序。

MrLuer commented 4 years ago

python提供了不同版本转换工具,2to3.py

model103 commented 2 years ago

请问你解决了吗,我也遇到了一样的错误,貌似不是python2转python3的原因。