This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
#import <dlfcn.h> | |
// clang main.m -framework Foundation | |
int main(int argc, const char * argv[]) { | |
@autoreleasepool { | |
dlopen("/System/Library/Frameworks/CoreGraphics.framework/Resources/BridgeSupport/CoreGraphics.dylib", RTLD_LAZY); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Before running this, setup a python venv for everything: | |
# python3 -m venv coremltools-venv | |
# source coremltools-venv/bin/activate | |
# pip install -U coremltools | |
import coremltools as ct | |
from coremltools.models.neural_network import quantization_utils | |
# load full precision model | |
model_fp32 = ct.models.MLModel('Beby-GANx4.mlmodel') |
OlderNewer