From 499a3aba24335bdbc0f1192c682a8dd334efc1d2 Mon Sep 17 00:00:00 2001 From: liuruilong Date: Fri, 6 Jul 2018 18:04:06 +0800 Subject: [PATCH] update ios demo header --- .../project.pbxproj | 22 ++++++------ .../UserInterfaceState.xcuserstate | Bin 21894 -> 25510 bytes .../PaddleMobile/PaddleMobile.h | 32 ++++++++++++++++-- 3 files changed, 40 insertions(+), 14 deletions(-) diff --git a/demo/ios/PaddleMobileDemo/PaddleMobileDemo.xcodeproj/project.pbxproj b/demo/ios/PaddleMobileDemo/PaddleMobileDemo.xcodeproj/project.pbxproj index 8500c89c9a..469c228e82 100644 --- a/demo/ios/PaddleMobileDemo/PaddleMobileDemo.xcodeproj/project.pbxproj +++ b/demo/ios/PaddleMobileDemo/PaddleMobileDemo.xcodeproj/project.pbxproj @@ -15,9 +15,9 @@ FC12E94120EB6B2900807EF4 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = FC12E94020EB6B2900807EF4 /* main.m */; }; FC12E94A20EB6B6800807EF4 /* libpaddle-mobile.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FC12E94820EB6B6800807EF4 /* libpaddle-mobile.a */; }; FC12E94D20EB6BBB00807EF4 /* libstdc++.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = FC12E94C20EB6BBB00807EF4 /* libstdc++.tbd */; }; - FC12E95120EB6BED00807EF4 /* params in Resources */ = {isa = PBXBuildFile; fileRef = FC12E94F20EB6BED00807EF4 /* params */; }; - FC12E95220EB6BED00807EF4 /* model in Resources */ = {isa = PBXBuildFile; fileRef = FC12E95020EB6BED00807EF4 /* model */; }; FC12E95420EB6C0D00807EF4 /* apple.jpg in Resources */ = {isa = PBXBuildFile; fileRef = FC12E95320EB6C0D00807EF4 /* apple.jpg */; }; + FC51640120EF758D00636C28 /* params in Resources */ = {isa = PBXBuildFile; fileRef = FC5163FF20EF758D00636C28 /* params */; }; + FC51640220EF758D00636C28 /* model in Resources */ = {isa = PBXBuildFile; fileRef = FC51640020EF758D00636C28 /* model */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -34,9 +34,9 @@ FC12E94820EB6B6800807EF4 /* libpaddle-mobile.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = "libpaddle-mobile.a"; sourceTree = ""; }; FC12E94920EB6B6800807EF4 /* PaddleMobile.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PaddleMobile.h; sourceTree = ""; }; FC12E94C20EB6BBB00807EF4 /* libstdc++.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = "libstdc++.tbd"; path = "usr/lib/libstdc++.tbd"; sourceTree = SDKROOT; }; - FC12E94F20EB6BED00807EF4 /* params */ = {isa = PBXFileReference; lastKnownFileType = file; path = params; sourceTree = ""; }; - FC12E95020EB6BED00807EF4 /* model */ = {isa = PBXFileReference; lastKnownFileType = file; path = model; sourceTree = ""; }; FC12E95320EB6C0D00807EF4 /* apple.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = apple.jpg; sourceTree = ""; }; + FC5163FF20EF758D00636C28 /* params */ = {isa = PBXFileReference; lastKnownFileType = file; path = params; sourceTree = ""; }; + FC51640020EF758D00636C28 /* model */ = {isa = PBXFileReference; lastKnownFileType = file; path = model; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -72,9 +72,9 @@ FC12E93020EB6B2800807EF4 /* PaddleMobileDemo */ = { isa = PBXGroup; children = ( - FC12E95320EB6C0D00807EF4 /* apple.jpg */, - FC12E94E20EB6BED00807EF4 /* googlenet_combine */, FC12E94720EB6B6800807EF4 /* PaddleMobile */, + FC5163FE20EF758D00636C28 /* googlenet_combine */, + FC12E95320EB6C0D00807EF4 /* apple.jpg */, FC12E93120EB6B2800807EF4 /* AppDelegate.h */, FC12E93220EB6B2800807EF4 /* AppDelegate.m */, FC12E93420EB6B2800807EF4 /* ViewController.h */, @@ -105,11 +105,11 @@ name = Frameworks; sourceTree = ""; }; - FC12E94E20EB6BED00807EF4 /* googlenet_combine */ = { + FC5163FE20EF758D00636C28 /* googlenet_combine */ = { isa = PBXGroup; children = ( - FC12E94F20EB6BED00807EF4 /* params */, - FC12E95020EB6BED00807EF4 /* model */, + FC5163FF20EF758D00636C28 /* params */, + FC51640020EF758D00636C28 /* model */, ); path = googlenet_combine; sourceTree = ""; @@ -171,10 +171,10 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + FC51640220EF758D00636C28 /* model in Resources */, + FC51640120EF758D00636C28 /* params in Resources */, FC12E93E20EB6B2900807EF4 /* LaunchScreen.storyboard in Resources */, - FC12E95220EB6BED00807EF4 /* model in Resources */, FC12E93B20EB6B2900807EF4 /* Assets.xcassets in Resources */, - FC12E95120EB6BED00807EF4 /* params in Resources */, FC12E95420EB6C0D00807EF4 /* apple.jpg in Resources */, FC12E93920EB6B2800807EF4 /* Main.storyboard in Resources */, ); diff --git a/demo/ios/PaddleMobileDemo/PaddleMobileDemo.xcodeproj/project.xcworkspace/xcuserdata/liuruilong.xcuserdatad/UserInterfaceState.xcuserstate b/demo/ios/PaddleMobileDemo/PaddleMobileDemo.xcodeproj/project.xcworkspace/xcuserdata/liuruilong.xcuserdatad/UserInterfaceState.xcuserstate index 395136a63bb50378df8c37256880d4bbf9fd2f83..a5b221642f9973f6abd0b18cc017a58d9a61e434 100644 GIT binary patch delta 11088 zcmZu$2VB#~7r*HWBLp%@AS8i62qa;J5pbc_jUvH~2tiO31YAX%`?apBwIl9YE8wiH zyTfg@b?;R>thKdjZLO=*I{ud+j`j~9!Y_C4-o1P8`_}!Yu7NA|!#8C39{tC2lNfOj zJoILJn|lN(2P45KPys5zXix>JK@FG)rh~VD2P_2df~BAiEC;K>H1Hl+3)X>+;1jR~ z>;RvFec%u{22O$V;7f23dpusLi2Tf$aQ1T`=WhC?lkfI6s$ z255$HFdo`qf*U5o6zG8MU`N;m_JBQMF6;yQ!$EKeEQT&v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Z zV#mg=h&>Yf$Qo(2S{+uG)nlz`tz%8JHn29ewzqb-_OPZ~Gp+rs{jK@dk=9Apsn!|R znbtYh`PPNjCDskrP1Y^eZPstByR3Vx`>gw|_u?dR-ng{5k#Qw)KgRtOcP8#a+@-iH zaW~>_$KCVC-H&^1gEo;(Vw2jUYzCXj7HzZIY_^)V+P1p3`nFQr2HOtXPTOwVUfX`# zkG7Mx)3$TA3%1{Ff7q_Y%i|ly4~SnBe<1#3{OS0!@#o_&#b1uU9e+RmQT&tmr*>i& z+e7U#dzf8gkFx9SM!VVG+}_&W-JWIl*>mjvT>C(KfxXB+#6HYE#y-cs#9n4!ZeMBN zZr^L)Z~xJL*#3+CjQyJZw*8*{f&Gd7nf-wccnCDpTSmjvj z*x=aY_{wqCalvuhamR7j@u%a3F$3Ew8{N_gmzcw#&*PaRL9r=h2@ zr7^wlkLgz4Dbx{6nTbthIvXoM?EjSAzq1>^LriMYTlaOI^INY6K`{G zvbTk|mA8|(i#Oey=PmRO_73xo^p5q8_kQM`?49bJy;63C$<~`{> z?LFr`@4e=|>wS_;lgA`aOJ0z?IJq==S@O!{HOcFfze(PeygPYs^8Vz5$%m2;CqGP4 zr6i^FO({$nk>dL#WkSmIlsPF2Qg)_%mvS)Wr<5ZpzoeW`xs-A_!dbFZCc)8BX-mu_zQX4wU^%kklOtJ07{5~ AH2?qr diff --git a/demo/ios/PaddleMobileDemo/PaddleMobileDemo/PaddleMobile/PaddleMobile.h b/demo/ios/PaddleMobileDemo/PaddleMobileDemo/PaddleMobile/PaddleMobile.h index ec58371de0..5854c5c3a4 100644 --- a/demo/ios/PaddleMobileDemo/PaddleMobileDemo/PaddleMobile/PaddleMobile.h +++ b/demo/ios/PaddleMobileDemo/PaddleMobileDemo/PaddleMobile/PaddleMobile.h @@ -1,26 +1,52 @@ /* Copyright (c) 2018 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. */ +#pragma once + #import #import @interface PaddleMobile : NSObject +/* + 创建对象 +*/ - (instancetype)init; + +/* + load 模型, 开辟内存 +*/ - (BOOL)load:(NSString *)modelPath andWeightsPath:(NSString *)weighsPath; + +/* + 加载散开形式的模型, 需传入模型的目录 +*/ +- (BOOL)load:(NSString *)modelAndWeightPath; + +/* + 进行预测, means 和 scale 为训练模型时的预处理参数, 如训练时没有做这些预处理则直接使用 predict +*/ - (NSArray *)predict:(CGImageRef)image dim:(NSArray *)dim means:(NSArray *)means scale:(float)scale; + +/* + 进行预测 +*/ - (NSArray *)predict:(CGImageRef)image dim:(NSArray *)dim; + +/* + 清理内存 +*/ - (void)clear; @end -- GitLab