├── README.md ├── SAM ├── ImageProcessor.swift ├── Metal │ ├── ImageProcessor-Bridging-Header.h │ ├── image_processor.metal │ ├── image_processor_ios.ir │ ├── image_processor_ios.metallib │ ├── image_processor_ios_sim.ir │ ├── image_processor_ios_sim.metallib │ ├── image_processor_macos.ir │ └── image_processor_macos.metallib ├── Models │ ├── ImageEncoder.mlpackage │ │ ├── Data │ │ │ └── com.apple.CoreML │ │ │ │ ├── model.mlmodel │ │ │ │ └── weights │ │ │ │ └── weight.bin │ │ └── Manifest.json │ ├── MaskDecoder.mlpackage │ │ ├── Data │ │ │ └── com.apple.CoreML │ │ │ │ ├── FeatureDescriptions.json │ │ │ │ ├── Metadata.json │ │ │ │ ├── model.mlmodel │ │ │ │ └── weights │ │ │ │ └── weight.bin │ │ └── Manifest.json │ └── PromptEncoder.mlpackage │ │ ├── Data │ │ └── com.apple.CoreML │ │ │ ├── FeatureDescriptions.json │ │ │ ├── Metadata.json │ │ │ ├── model.mlmodel │ │ │ └── weights │ │ │ └── weight.bin │ │ └── Manifest.json ├── Resources │ └── image_embeddings.bin ├── SegmentAnything.swift ├── filters.ir ├── filters.metallib └── image_encoder.mlmodelkey ├── SegmentAnythingMobile-iOS ├── App.swift ├── Assets.xcassets │ ├── AccentColor.colorset │ │ └── Contents.json │ ├── AppIcon.appiconset │ │ └── Contents.json │ ├── Contents.json │ ├── IMG_5102.textureset │ │ ├── Contents.json │ │ └── Universal.mipmapset │ │ │ ├── Contents.json │ │ │ └── IMG_5102.jpg │ └── Image.imageset │ │ ├── Contents.json │ │ └── IMG_5102.jpg ├── ImageView.swift ├── LoadingView.swift ├── MaskProcessor.swift ├── SegmentAnythingView.swift ├── SplashView.swift ├── TextureLoader.swift └── mask.metal ├── SegmentAnythingMobile.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── xcshareddata │ └── xcschemes │ │ ├── SegmentAnythingMobile-iOS.xcscheme │ │ └── SegmentAnythingMobileCLI.xcscheme └── xcuserdata │ └── aleto.xcuserdatad │ ├── xcdebugger │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ └── xcschememanagement.plist └── SegmentAnythingMobileCLI ├── Resources └── IMG_5102.jpg └── main.swift /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/README.md -------------------------------------------------------------------------------- /SAM/ImageProcessor.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SAM/ImageProcessor.swift -------------------------------------------------------------------------------- /SAM/Metal/ImageProcessor-Bridging-Header.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SAM/Metal/ImageProcessor-Bridging-Header.h -------------------------------------------------------------------------------- /SAM/Metal/image_processor.metal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SAM/Metal/image_processor.metal -------------------------------------------------------------------------------- /SAM/Metal/image_processor_ios.ir: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SAM/Metal/image_processor_ios.ir -------------------------------------------------------------------------------- /SAM/Metal/image_processor_ios.metallib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SAM/Metal/image_processor_ios.metallib -------------------------------------------------------------------------------- /SAM/Metal/image_processor_ios_sim.ir: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SAM/Metal/image_processor_ios_sim.ir -------------------------------------------------------------------------------- /SAM/Metal/image_processor_ios_sim.metallib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SAM/Metal/image_processor_ios_sim.metallib -------------------------------------------------------------------------------- /SAM/Metal/image_processor_macos.ir: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SAM/Metal/image_processor_macos.ir -------------------------------------------------------------------------------- /SAM/Metal/image_processor_macos.metallib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SAM/Metal/image_processor_macos.metallib -------------------------------------------------------------------------------- /SAM/Models/ImageEncoder.mlpackage/Data/com.apple.CoreML/model.mlmodel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SAM/Models/ImageEncoder.mlpackage/Data/com.apple.CoreML/model.mlmodel -------------------------------------------------------------------------------- /SAM/Models/ImageEncoder.mlpackage/Data/com.apple.CoreML/weights/weight.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SAM/Models/ImageEncoder.mlpackage/Data/com.apple.CoreML/weights/weight.bin -------------------------------------------------------------------------------- /SAM/Models/ImageEncoder.mlpackage/Manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SAM/Models/ImageEncoder.mlpackage/Manifest.json -------------------------------------------------------------------------------- /SAM/Models/MaskDecoder.mlpackage/Data/com.apple.CoreML/FeatureDescriptions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SAM/Models/MaskDecoder.mlpackage/Data/com.apple.CoreML/FeatureDescriptions.json -------------------------------------------------------------------------------- /SAM/Models/MaskDecoder.mlpackage/Data/com.apple.CoreML/Metadata.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SAM/Models/MaskDecoder.mlpackage/Data/com.apple.CoreML/Metadata.json -------------------------------------------------------------------------------- /SAM/Models/MaskDecoder.mlpackage/Data/com.apple.CoreML/model.mlmodel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SAM/Models/MaskDecoder.mlpackage/Data/com.apple.CoreML/model.mlmodel -------------------------------------------------------------------------------- /SAM/Models/MaskDecoder.mlpackage/Data/com.apple.CoreML/weights/weight.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SAM/Models/MaskDecoder.mlpackage/Data/com.apple.CoreML/weights/weight.bin -------------------------------------------------------------------------------- /SAM/Models/MaskDecoder.mlpackage/Manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SAM/Models/MaskDecoder.mlpackage/Manifest.json -------------------------------------------------------------------------------- /SAM/Models/PromptEncoder.mlpackage/Data/com.apple.CoreML/FeatureDescriptions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SAM/Models/PromptEncoder.mlpackage/Data/com.apple.CoreML/FeatureDescriptions.json -------------------------------------------------------------------------------- /SAM/Models/PromptEncoder.mlpackage/Data/com.apple.CoreML/Metadata.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SAM/Models/PromptEncoder.mlpackage/Data/com.apple.CoreML/Metadata.json -------------------------------------------------------------------------------- /SAM/Models/PromptEncoder.mlpackage/Data/com.apple.CoreML/model.mlmodel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SAM/Models/PromptEncoder.mlpackage/Data/com.apple.CoreML/model.mlmodel -------------------------------------------------------------------------------- /SAM/Models/PromptEncoder.mlpackage/Data/com.apple.CoreML/weights/weight.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SAM/Models/PromptEncoder.mlpackage/Data/com.apple.CoreML/weights/weight.bin -------------------------------------------------------------------------------- /SAM/Models/PromptEncoder.mlpackage/Manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SAM/Models/PromptEncoder.mlpackage/Manifest.json -------------------------------------------------------------------------------- /SAM/Resources/image_embeddings.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SAM/Resources/image_embeddings.bin -------------------------------------------------------------------------------- /SAM/SegmentAnything.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SAM/SegmentAnything.swift -------------------------------------------------------------------------------- /SAM/filters.ir: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SAM/filters.ir -------------------------------------------------------------------------------- /SAM/filters.metallib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SAM/filters.metallib -------------------------------------------------------------------------------- /SAM/image_encoder.mlmodelkey: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SAM/image_encoder.mlmodelkey -------------------------------------------------------------------------------- /SegmentAnythingMobile-iOS/App.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SegmentAnythingMobile-iOS/App.swift -------------------------------------------------------------------------------- /SegmentAnythingMobile-iOS/Assets.xcassets/AccentColor.colorset/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SegmentAnythingMobile-iOS/Assets.xcassets/AccentColor.colorset/Contents.json -------------------------------------------------------------------------------- /SegmentAnythingMobile-iOS/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SegmentAnythingMobile-iOS/Assets.xcassets/AppIcon.appiconset/Contents.json -------------------------------------------------------------------------------- /SegmentAnythingMobile-iOS/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SegmentAnythingMobile-iOS/Assets.xcassets/Contents.json -------------------------------------------------------------------------------- /SegmentAnythingMobile-iOS/Assets.xcassets/IMG_5102.textureset/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SegmentAnythingMobile-iOS/Assets.xcassets/IMG_5102.textureset/Contents.json -------------------------------------------------------------------------------- /SegmentAnythingMobile-iOS/Assets.xcassets/IMG_5102.textureset/Universal.mipmapset/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SegmentAnythingMobile-iOS/Assets.xcassets/IMG_5102.textureset/Universal.mipmapset/Contents.json -------------------------------------------------------------------------------- /SegmentAnythingMobile-iOS/Assets.xcassets/IMG_5102.textureset/Universal.mipmapset/IMG_5102.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SegmentAnythingMobile-iOS/Assets.xcassets/IMG_5102.textureset/Universal.mipmapset/IMG_5102.jpg -------------------------------------------------------------------------------- /SegmentAnythingMobile-iOS/Assets.xcassets/Image.imageset/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SegmentAnythingMobile-iOS/Assets.xcassets/Image.imageset/Contents.json -------------------------------------------------------------------------------- /SegmentAnythingMobile-iOS/Assets.xcassets/Image.imageset/IMG_5102.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SegmentAnythingMobile-iOS/Assets.xcassets/Image.imageset/IMG_5102.jpg -------------------------------------------------------------------------------- /SegmentAnythingMobile-iOS/ImageView.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SegmentAnythingMobile-iOS/ImageView.swift -------------------------------------------------------------------------------- /SegmentAnythingMobile-iOS/LoadingView.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SegmentAnythingMobile-iOS/LoadingView.swift -------------------------------------------------------------------------------- /SegmentAnythingMobile-iOS/MaskProcessor.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SegmentAnythingMobile-iOS/MaskProcessor.swift -------------------------------------------------------------------------------- /SegmentAnythingMobile-iOS/SegmentAnythingView.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SegmentAnythingMobile-iOS/SegmentAnythingView.swift -------------------------------------------------------------------------------- /SegmentAnythingMobile-iOS/SplashView.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SegmentAnythingMobile-iOS/SplashView.swift -------------------------------------------------------------------------------- /SegmentAnythingMobile-iOS/TextureLoader.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SegmentAnythingMobile-iOS/TextureLoader.swift -------------------------------------------------------------------------------- /SegmentAnythingMobile-iOS/mask.metal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SegmentAnythingMobile-iOS/mask.metal -------------------------------------------------------------------------------- /SegmentAnythingMobile.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SegmentAnythingMobile.xcodeproj/project.pbxproj -------------------------------------------------------------------------------- /SegmentAnythingMobile.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SegmentAnythingMobile.xcodeproj/project.xcworkspace/contents.xcworkspacedata -------------------------------------------------------------------------------- /SegmentAnythingMobile.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SegmentAnythingMobile.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist -------------------------------------------------------------------------------- /SegmentAnythingMobile.xcodeproj/xcshareddata/xcschemes/SegmentAnythingMobile-iOS.xcscheme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SegmentAnythingMobile.xcodeproj/xcshareddata/xcschemes/SegmentAnythingMobile-iOS.xcscheme -------------------------------------------------------------------------------- /SegmentAnythingMobile.xcodeproj/xcshareddata/xcschemes/SegmentAnythingMobileCLI.xcscheme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SegmentAnythingMobile.xcodeproj/xcshareddata/xcschemes/SegmentAnythingMobileCLI.xcscheme -------------------------------------------------------------------------------- /SegmentAnythingMobile.xcodeproj/xcuserdata/aleto.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SegmentAnythingMobile.xcodeproj/xcuserdata/aleto.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist -------------------------------------------------------------------------------- /SegmentAnythingMobile.xcodeproj/xcuserdata/aleto.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SegmentAnythingMobile.xcodeproj/xcuserdata/aleto.xcuserdatad/xcschemes/xcschememanagement.plist -------------------------------------------------------------------------------- /SegmentAnythingMobileCLI/Resources/IMG_5102.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SegmentAnythingMobileCLI/Resources/IMG_5102.jpg -------------------------------------------------------------------------------- /SegmentAnythingMobileCLI/main.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlessandroToschi/SegmentAnythingMobile/HEAD/SegmentAnythingMobileCLI/main.swift --------------------------------------------------------------------------------