Compare commits
5 Commits
master
...
niyinglin_
Author | SHA1 | Date |
---|---|---|
|
e058d7528b | 3 years ago |
|
a72be2f905 | 3 years ago |
|
c8e4562d18 | 3 years ago |
|
4ea6cbd021 | 3 years ago |
|
23188212d4 | 3 years ago |
@ -1,18 +1,18 @@
|
|||||||
import pygame
|
import pygame
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
pygame.init()
|
pygame.init()
|
||||||
win = pygame.display.set_mode((400, 400))
|
win = pygame.display.set_mode((400, 400))
|
||||||
|
|
||||||
def getKey(keyName):
|
def getKey(keyName):
|
||||||
ans = False
|
ans = False
|
||||||
for eve in pygame.event.get(): pass
|
for eve in pygame.event.get(): pass
|
||||||
keyInput = pygame.key.get_pressed()
|
keyInput = pygame.key.get_pressed()
|
||||||
myKey = getattr(pygame,'K_{}'.format(keyName))
|
myKey = getattr(pygame,'K_{}'.format(keyName))
|
||||||
if keyInput[myKey]:
|
if keyInput[myKey]:
|
||||||
ans = True
|
ans = True
|
||||||
pygame.display.update()
|
pygame.display.update()
|
||||||
return ans
|
return ans
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
init()
|
init()
|
Before Width: | Height: | Size: 24 MiB |
Before Width: | Height: | Size: 13 KiB |
@ -1,7 +0,0 @@
|
|||||||
include LICENSE.txt
|
|
||||||
include README.md
|
|
||||||
include docs/en/whl_en.md
|
|
||||||
recursive-include deploy/python predict_cls.py preprocess.py postprocess.py det_preprocess.py
|
|
||||||
recursive-include deploy/utils get_image_list.py config.py logger.py predictor.py
|
|
||||||
|
|
||||||
recursive-include ppcls/ *.py *.txt
|
|
@ -1,17 +0,0 @@
|
|||||||
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
__all__ = ['PaddleClas']
|
|
||||||
from .paddleclas import PaddleClas
|
|
||||||
from ppcls.arch.backbone import *
|
|
@ -1,22 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
dataset_url=$1
|
|
||||||
|
|
||||||
package_check_list=(imageio tqdm Cython pycocotools tb_paddle scipy pandas wget h5py sklearn opencv-python visualdl)
|
|
||||||
for package in ${package_check_list[@]}; do
|
|
||||||
if python -c "import ${package}" >/dev/null 2>&1; then
|
|
||||||
echo "${package} have already installed"
|
|
||||||
else
|
|
||||||
echo "${package} NOT FOUND"
|
|
||||||
pip install ${package}
|
|
||||||
echo "${package} installed"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
cd dataset
|
|
||||||
rm -rf ILSVRC2012
|
|
||||||
wget -nc ${dataset_url}
|
|
||||||
tar xf ILSVRC2012_val.tar
|
|
||||||
ln -s ILSVRC2012_val ILSVRC2012
|
|
||||||
cd ILSVRC2012
|
|
||||||
ln -s val_list.txt train_list.txt
|
|
||||||
cd ../../
|
|
@ -1,3 +0,0 @@
|
|||||||
# 默认忽略的文件
|
|
||||||
/shelf/
|
|
||||||
/workspace.xml
|
|
@ -1,12 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<module type="PYTHON_MODULE" version="4">
|
|
||||||
<component name="NewModuleRootManager">
|
|
||||||
<content url="file://$MODULE_DIR$" />
|
|
||||||
<orderEntry type="inheritedJdk" />
|
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
|
||||||
</component>
|
|
||||||
<component name="PyDocumentationSettings">
|
|
||||||
<option name="format" value="GOOGLE" />
|
|
||||||
<option name="myDocStringFormat" value="Google" />
|
|
||||||
</component>
|
|
||||||
</module>
|
|
@ -1,6 +0,0 @@
|
|||||||
<component name="InspectionProjectProfileManager">
|
|
||||||
<settings>
|
|
||||||
<option name="USE_PROJECT_PROFILE" value="false" />
|
|
||||||
<version value="1.0" />
|
|
||||||
</settings>
|
|
||||||
</component>
|
|
@ -1,4 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9" project-jdk-type="Python SDK" />
|
|
||||||
</project>
|
|
@ -1,8 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="ProjectModuleManager">
|
|
||||||
<modules>
|
|
||||||
<module fileurl="file://$PROJECT_DIR$/.idea/deploy.iml" filepath="$PROJECT_DIR$/.idea/deploy.iml" />
|
|
||||||
</modules>
|
|
||||||
</component>
|
|
||||||
</project>
|
|
@ -1,6 +0,0 @@
|
|||||||
projectKey=deploy
|
|
||||||
serverUrl=http://localhost:9000
|
|
||||||
serverVersion=8.1.0.31237
|
|
||||||
dashboardUrl=http://localhost:9000/dashboard?id=deploy
|
|
||||||
ceTaskId=AYA_xvBwrgFtfprwzYuQ
|
|
||||||
ceTaskUrl=http://localhost:9000/api/ce/task?id=AYA_xvBwrgFtfprwzYuQ
|
|
Before Width: | Height: | Size: 559 KiB |
Before Width: | Height: | Size: 99 KiB |
Before Width: | Height: | Size: 359 KiB |
Before Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 114 KiB |
Before Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 180 KiB |
Before Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 496 KiB |
Before Width: | Height: | Size: 118 KiB |
Before Width: | Height: | Size: 380 KiB |
Before Width: | Height: | Size: 1.7 MiB |
Before Width: | Height: | Size: 73 KiB |
Before Width: | Height: | Size: 406 KiB |
Before Width: | Height: | Size: 3.0 MiB |
Before Width: | Height: | Size: 542 KiB |
Before Width: | Height: | Size: 7.0 KiB |
Before Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 54 KiB |
Before Width: | Height: | Size: 247 KiB |
Before Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 96 KiB |
Before Width: | Height: | Size: 238 KiB |
Before Width: | Height: | Size: 152 KiB |
Before Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 199 KiB |
Before Width: | Height: | Size: 215 KiB |
Before Width: | Height: | Size: 162 KiB |
Before Width: | Height: | Size: 71 KiB |
Before Width: | Height: | Size: 200 KiB |
Before Width: | Height: | Size: 284 KiB |
Before Width: | Height: | Size: 150 KiB |
Before Width: | Height: | Size: 636 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 193 KiB |
Before Width: | Height: | Size: 190 KiB |
Before Width: | Height: | Size: 472 KiB |
Before Width: | Height: | Size: 477 KiB |
Before Width: | Height: | Size: 432 KiB |
Before Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 285 KiB |
Before Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 205 KiB |
Before Width: | Height: | Size: 493 KiB |
Before Width: | Height: | Size: 475 KiB |
Before Width: | Height: | Size: 139 KiB |
Before Width: | Height: | Size: 548 KiB |
Before Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 205 KiB |
Before Width: | Height: | Size: 101 KiB |
Before Width: | Height: | Size: 123 KiB |
Before Width: | Height: | Size: 85 KiB |
Before Width: | Height: | Size: 155 KiB |
Before Width: | Height: | Size: 2.9 MiB |
Before Width: | Height: | Size: 575 KiB |
Before Width: | Height: | Size: 121 KiB |
Before Width: | Height: | Size: 178 KiB |
Before Width: | Height: | Size: 908 KiB |