Skip to content

Instantly share code, notes, and snippets.

View himanshunaidu's full-sized avatar

Himanshu Naidu himanshunaidu

View GitHub Profile
@himanshunaidu
himanshunaidu / executorch_0.6.yml
Created April 15, 2025 00:01
Executorch release 0.6 environment
# packages in environment at /opt/anaconda3/envs/executorch_0.6:
#
# Name Version Build Channel
attrs 25.3.0 pypi_0 pypi
blas 1.0 openblas
bzip2 1.0.8 h80987f9_6
ca-certificates 2025.2.25 hca03da5_0
cattrs 24.1.3 pypi_0 pypi
certifi 2025.1.31 pypi_0 pypi
charset-normalizer 3.4.1 pypi_0 pypi
@himanshunaidu
himanshunaidu / executorch_0.6_bisenetv2_testing_warning_logs.txt
Last active April 15, 2025 00:00
Warning logs during testing of BiSeNetv2 Using ExecuTorch 0.6
Torch version 2.7.0 has not been tested with coremltools. You may run into unexpected errors. Torch 2.5.0 is the most recent version that has been tested.
W0414 16:08:42.133000 61242 site-packages/torch/distributed/elastic/multiprocessing/redirects.py:29] NOTE: Redirects are currently not supported in Windows or MacOs.
2025-04-14 16:08:43 - INFO - Number of images in the dataset: 500
[program.cpp:136] InternalConsistency verification requested but not available
/opt/anaconda3/envs/executorch_0.6/lib/python3.10/site-packages/torch/utils/data/dataloader.py:683: UserWarning: 'pin_memory' argument is set as true but not supported on MPS now, then device pinned memory won't be used.
warnings.warn(warn_msg)
0%| | 0/500 [00:00<?, ?it/s]scikit-learn version 1.6.1 is not supported. Minimum required version: 0.17. Maximum required version: 1.5.1. Disabling scikit-learn conversion API.
scikit-learn version 1.6.1 is not supported.
@himanshunaidu
himanshunaidu / executorch_0.6_bisenetv2_conversion_warning_logs.txt
Created April 14, 2025 23:49
Warning logs during conversion of PyTorch model BiSeNetv2 Using ExecuTorch 0.6
Torch version 2.7.0 has not been tested with coremltools. You may run into unexpected errors. Torch 2.5.0 is the most recent version that has been tested.
W0414 16:01:54.813146 59303 site-packages/torch/distributed/elastic/multiprocessing/redirects.py:29] NOTE: Redirects are currently not supported in Windows or MacOs.
Loading image: ./coreml/semantic_segmentation/model_zoo/dump/test.jpg
WARNING:executorch.backends.apple.coreml.partition.coreml_partitioner:Encountered exception when checking node support: For now, since CoreML only supports call_function torch fx node, all ops should be functional, i.e. there should not be any in-place op
WARNING:executorch.backends.apple.coreml.partition.coreml_partitioner:Encountered exception when checking node support: For now, since CoreML only supports call_function torch fx node, all ops should be functional, i.e. there should not be any in-place op
WARNING:executorch.backends.apple.coreml.partition.coreml_partitioner:Encountered exception when checking node support: F
@himanshunaidu
himanshunaidu / executorch_0.5.yml
Created April 14, 2025 20:03
Executorch release 0.5 environment after haphazard fixes
# packages in environment at /opt/anaconda3/envs/executorch_0.5:
#
# Name Version Build Channel
attrs 25.3.0 pypi_0 pypi
blas 1.0 openblas
bzip2 1.0.8 h80987f9_6
c-ares 1.34.5 h5505292_0 conda-forge
ca-certificates 2025.2.25 hca03da5_0
cattrs 24.1.3 pypi_0 pypi
certifi 2025.1.31 pypi_0 pypi
@himanshunaidu
himanshunaidu / executorch_error_release_0.5.txt
Last active April 14, 2025 20:04
Executorch pip wheel build error before cmake downgrade
Building wheels for collected packages: executorch
Running command Building wheel for executorch (pyproject.toml)
running bdist_wheel
running build
command options for 'CustomBuild':
build_base = pip-out
build_purelib = pip-out/lib
build_platlib = pip-out/lib.macosx-11.1-arm64-cpython-312
build_lib = pip-out/lib.macosx-11.1-arm64-cpython-312
build_scripts = pip-out/scripts-3.12
import SwiftUI
import AVFoundation
import Vision
// Used as delegate by the CameraController
protocol CaptureDataReceiver: AnyObject {
func onNewData(cameraImage: CGImage, depthPixelBuffer: CVPixelBuffer)
}
class CameraController: NSObject, ObservableObject {
@himanshunaidu
himanshunaidu / MainActivity
Created April 30, 2017 11:05
An Android Application to Find Determine prescence of water bodies using data from NASA GRACE
package com.hfad.spaceappswater;
import android.content.Context;
import android.content.Intent;
import android.location.Address;
import android.location.Geocoder;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.net.wifi.p2p.WifiP2pManager;