-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make.sh error on pytorch1.0 #402
Comments
@wanghan0501 I guess you are still using pytorch 0.4 (master) branch, please go to pytorch-1.0 branch and try again. |
I find the reason that I got error message. You should remove make.sh in branch You shoud add setup file in # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
import os
from setuptools import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy as np
# Obtain the numpy include directory. This logic works across numpy versions.
try:
numpy_include = np.get_include()
except AttributeError:
numpy_include = np.get_numpy_include()
ext_modules = [
Extension(
'_mask',
sources=['maskApi.c', '_mask.pyx'],
include_dirs = [numpy_include, '.'],
extra_compile_args=['-Wno-cpp', '-Wno-unused-function', '-std=c99'],
)
]
setup(
name='faster_rcnn',
ext_modules=ext_modules,
# inject our custom trigger
cmdclass={'build_ext': build_ext},
) and run
|
thanks! In pytorch-1.0 branch, I already removed sh make.sh for the installation, will remove the file as well. The compiled pycocotools file in pytorch-0.4.0 is reusable and thus I did not compile here. Thanks for reminding. |
so there no need to run "sh make.sh" ? or is it necessary to run ?? |
when I run
sh maske.sh
, I got the error message as shown above.The text was updated successfully, but these errors were encountered: