Skip to content

Commit fdbce99

Browse files
committed
fix conflict
2 parents bfbf0ff + 3b407e7 commit fdbce99

9 files changed

Lines changed: 8 additions & 7 deletions

File tree

demo/craft_text_detector/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sys
22
sys.path.append('../../')
3-
from cnnumpy import read_onnx
3+
from npcnn import read_onnx
44
import numpy as np
55
from matplotlib import pyplot as plt
66
from skimage import io, transform

demo/hed_edge_detector/main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
from cnnumpy import read_onnx
1+
import sys
2+
sys.path.append('../../')
3+
from npcnn import read_onnx
24
import numpy as np
35
from matplotlib import pyplot as plt
46
from skimage import io, transform
@@ -24,7 +26,6 @@ def normal(img):
2426
img = makesize8(img)
2527
x = normal(img).transpose(2, 0, 1)[None, :, :, :].copy()
2628

27-
2829
# 2 files needed, hed.txt, hed.npy
2930
net = read_onnx('hed')
3031
y = net(x)

demo/resnet18/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import numpy as np
2-
from cnnumpy import read_onnx
2+
from npcnn import read_onnx
33
from imagenet_labels import classes
44
from skimage import io, transform
55
from matplotlib import pyplot as plt
@@ -21,4 +21,4 @@
2121

2222
plt.imshow(img.astype('uint8'))
2323
plt.title(rst)
24-
plt.show()
24+
plt.show()
File renamed without changes.

cnnumpy/io.py renamed to npcnn/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def read_onnx(path):
4343
with open(path+'.txt') as f:
4444
cont = f.read()
4545
for i in res: cont = i.sub(parse, cont)
46-
#for i in cont.split('\n'): print(i)
46+
# for i in cont.split('\n'): print(i)
4747
cont = [eval(i) for i in cont.split('\n') if len(i)>0 and i[0]=='[']
4848
cont = [[eval(j) if (',' in j) else j for j in i] for i in cont]
4949

File renamed without changes.
File renamed without changes.
File renamed without changes.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from setuptools import setup, find_packages
22

33
setup(
4-
name='cnnumpy',
4+
name='npcnn',
55
packages=find_packages()
66
)

0 commit comments

Comments
 (0)