Skip to content

Commit

Permalink
Add scripts and demo project
Browse files Browse the repository at this point in the history
  • Loading branch information
hollance committed Nov 27, 2018
1 parent a573bd7 commit 265188b
Show file tree
Hide file tree
Showing 20 changed files with 1,058 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .gitignore
Expand Up @@ -102,3 +102,40 @@ venv.bak/

# mypy
.mypy_cache/

# Xcode
build/
DerivedData/

*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3

*.xcuserstate
xcuserdata/

## Other
*.moved-aside
*.xccheckout
*.xcscmblueprint

profile
*.hmap
*.ipa

# CocoaPods
Pods/
!Podfile.lock

# Temporary files
.DS_Store
.Trashes
.Spotlight-V100
*.swp
*.lock

349 changes: 349 additions & 0 deletions CheckInputImage/CheckInputImage.xcodeproj/project.pbxproj
@@ -0,0 +1,349 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objects = {

/* Begin PBXBuildFile section */
7B4106C021A06D03009E7CE2 /* Image2Image.mlmodel in Sources */ = {isa = PBXBuildFile; fileRef = 7B4106BF21A06D03009E7CE2 /* Image2Image.mlmodel */; };
7BDA8C1221A051E600450D49 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BDA8C1121A051E600450D49 /* AppDelegate.swift */; };
7BDA8C1421A051E600450D49 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BDA8C1321A051E600450D49 /* ViewController.swift */; };
7BDA8C1721A051E600450D49 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7BDA8C1521A051E600450D49 /* Main.storyboard */; };
7BDA8C1921A051E800450D49 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7BDA8C1821A051E800450D49 /* Assets.xcassets */; };
7BDA8C1C21A051E800450D49 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7BDA8C1A21A051E800450D49 /* LaunchScreen.storyboard */; };
7BDA8C2621A0523000450D49 /* sunflower.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 7BDA8C2521A0523000450D49 /* sunflower.jpg */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
7B4106BF21A06D03009E7CE2 /* Image2Image.mlmodel */ = {isa = PBXFileReference; lastKnownFileType = file.mlmodel; path = Image2Image.mlmodel; sourceTree = SOURCE_ROOT; };
7BDA8C0E21A051E600450D49 /* CheckInputImage.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CheckInputImage.app; sourceTree = BUILT_PRODUCTS_DIR; };
7BDA8C1121A051E600450D49 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
7BDA8C1321A051E600450D49 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
7BDA8C1621A051E600450D49 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
7BDA8C1821A051E800450D49 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
7BDA8C1B21A051E800450D49 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
7BDA8C1D21A051E800450D49 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
7BDA8C2521A0523000450D49 /* sunflower.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = sunflower.jpg; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
7BDA8C0B21A051E600450D49 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
7BDA8C0521A051E600450D49 = {
isa = PBXGroup;
children = (
7BDA8C1021A051E600450D49 /* CheckInputImage */,
7BDA8C0F21A051E600450D49 /* Products */,
);
sourceTree = "<group>";
};
7BDA8C0F21A051E600450D49 /* Products */ = {
isa = PBXGroup;
children = (
7BDA8C0E21A051E600450D49 /* CheckInputImage.app */,
);
name = Products;
sourceTree = "<group>";
};
7BDA8C1021A051E600450D49 /* CheckInputImage */ = {
isa = PBXGroup;
children = (
7B4106BF21A06D03009E7CE2 /* Image2Image.mlmodel */,
7BDA8C2521A0523000450D49 /* sunflower.jpg */,
7BDA8C1121A051E600450D49 /* AppDelegate.swift */,
7BDA8C1321A051E600450D49 /* ViewController.swift */,
7BDA8C1521A051E600450D49 /* Main.storyboard */,
7BDA8C1A21A051E800450D49 /* LaunchScreen.storyboard */,
7BDA8C1821A051E800450D49 /* Assets.xcassets */,
7BDA8C1D21A051E800450D49 /* Info.plist */,
);
path = CheckInputImage;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
7BDA8C0D21A051E600450D49 /* CheckInputImage */ = {
isa = PBXNativeTarget;
buildConfigurationList = 7BDA8C2021A051E800450D49 /* Build configuration list for PBXNativeTarget "CheckInputImage" */;
buildPhases = (
7BDA8C0A21A051E600450D49 /* Sources */,
7BDA8C0B21A051E600450D49 /* Frameworks */,
7BDA8C0C21A051E600450D49 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = CheckInputImage;
productName = CheckInputImage;
productReference = 7BDA8C0E21A051E600450D49 /* CheckInputImage.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
7BDA8C0621A051E600450D49 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1010;
LastUpgradeCheck = 1010;
ORGANIZATIONNAME = MachineThink;
TargetAttributes = {
7BDA8C0D21A051E600450D49 = {
CreatedOnToolsVersion = 10.1;
};
};
};
buildConfigurationList = 7BDA8C0921A051E600450D49 /* Build configuration list for PBXProject "CheckInputImage" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 7BDA8C0521A051E600450D49;
productRefGroup = 7BDA8C0F21A051E600450D49 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
7BDA8C0D21A051E600450D49 /* CheckInputImage */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
7BDA8C0C21A051E600450D49 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
7BDA8C1C21A051E800450D49 /* LaunchScreen.storyboard in Resources */,
7BDA8C2621A0523000450D49 /* sunflower.jpg in Resources */,
7BDA8C1921A051E800450D49 /* Assets.xcassets in Resources */,
7BDA8C1721A051E600450D49 /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
7BDA8C0A21A051E600450D49 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
7B4106C021A06D03009E7CE2 /* Image2Image.mlmodel in Sources */,
7BDA8C1421A051E600450D49 /* ViewController.swift in Sources */,
7BDA8C1221A051E600450D49 /* AppDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXVariantGroup section */
7BDA8C1521A051E600450D49 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
7BDA8C1621A051E600450D49 /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
7BDA8C1A21A051E800450D49 /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
7BDA8C1B21A051E800450D49 /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
7BDA8C1E21A051E800450D49 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
7BDA8C1F21A051E800450D49 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
7BDA8C2121A051E800450D49 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = CheckInputImage/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = net.machinethink.CheckInputImage;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
7BDA8C2221A051E800450D49 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = CheckInputImage/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = net.machinethink.CheckInputImage;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
7BDA8C0921A051E600450D49 /* Build configuration list for PBXProject "CheckInputImage" */ = {
isa = XCConfigurationList;
buildConfigurations = (
7BDA8C1E21A051E800450D49 /* Debug */,
7BDA8C1F21A051E800450D49 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
7BDA8C2021A051E800450D49 /* Build configuration list for PBXNativeTarget "CheckInputImage" */ = {
isa = XCConfigurationList;
buildConfigurations = (
7BDA8C2121A051E800450D49 /* Debug */,
7BDA8C2221A051E800450D49 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 7BDA8C0621A051E600450D49 /* Project object */;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 265188b

Please sign in to comment.