Vergil0327

Vergil0327

Member Since 5 years ago

Experience Points
1
follower
Lessons Completed
1
follow
Lessons Completed
5
stars
Best Reply Awards
22
repos

3 contributions in the last year

Pinned
⚡ Official vue-tutorial and code created during recording sessions.
⚡ :necktie: :briefcase: Build fast :rocket: and easy multiple beautiful resumes and create your best CV ever! Made with Vue and LESS.
⚡ fish hackathon
Activity
Nov
2
4 weeks ago
Activity icon
fork

Vergil0327 forked wuxudong/react-native-charts-wrapper

⚡ a react native charts wrapper (support android & iOS)
Vergil0327 Updated
fork time in 3 weeks ago
Oct
15
1 month ago
Activity icon
issue

Vergil0327 issue pytorch/pytorch

Vergil0327
Vergil0327

Can't integrate pytorch-mobile with react-native android app

❓ Questions and Help

Description

I want to integrate pytorch mobile in react-native app. though I can build successfully but get error after I invoke method

error messages: couldn't find DSO to load: libpytorch_jni.so SoSource 0: com.facebook.soloader.ApkSoSource[root=/data/data/com.example.pytorchmobile/lib-main flags = 1] ...

also try this, but not works

implementation ("com.facebook.react:react-native:+") {
        exclude module: 'fbjni-java-only'
}

According to this, [email protected] already upgrade android fbjni dependency to 0.2.2.

React Native version:

System: OS: macOS 11.4 CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @2.70GHz Memory: 96.56 MB / 8.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 12.22.6 - ~/.nvm/versions/node/v12.22.6/bin/node Yarn: 1.22.15 - /usr/local/bin/yarn npm: 6.14.15 - ~/.nvm/versions/node/v12.22.6/bin/npm Watchman: 2021.10.11.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /Users/vergil/.rvm/rubies/ruby-2.6.6/bin/pod SDKs: iOS SDK: Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0 Android SDK: API Levels: 23, 25, 26, 27, 28, 29, 30 Build Tools: 27.0.3, 28.0.3, 29.0.2, 30.0.2 System Images: android-26 | Google APIs Intel x86 Atom_64, android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 2020.3 AI-203.7717.56.2031.7784292 Xcode: 13.0/13A233 - /usr/bin/xcodebuild Languages: Java: 14.0.1 - /usr/bin/javac Python: 3.7.4 - /Users/vergil/opt/anaconda3/bin/python npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.66.0 => 0.66.0 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. use reate-react-native-library to create project
$ npx reate-react-native-library testproject
  1. follow instruction to add Gradle dependancies
  2. try this demo app example
  3. build android app & run

I also add these to testproject > example > android > app > build.gradle to fix "More than one file was found with OS independent path 'lib/x86/libfbjni.so'" issue and prevent pytorch model from compression in the APK

...

android {
     packagingOptions {
        pickFirst 'lib/arm64-v8a/libfbjni.so'
        pickFirst 'lib/armeabi-v7a/libfbjni.so'
        pickFirst 'lib/x86/libfbjni.so'
        pickFirst 'lib/x86_64/libfbjni.so'

        pickFirst 'lib/arm64-v8a/libc++_shared.so'
        pickFirst 'lib/armeabi-v7a/libc++_shared.so'
        pickFirst 'lib/x86/libc++_shared.so'
        pickFirst 'lib/x86_64/libc++_shared.so'
    }

    aaptOptions {
        // pytorch model
        noCompress 'pt'
        noCompress 'ptl'
    }
}

Expected Results

should load model and run successfully

Please note that this issue tracker is not a help form and this issue will be closed.

We have a set of listed resources available on the website. Our primary means of support is our discussion forum:

Activity icon
issue

Vergil0327 issue comment pytorch/pytorch

Vergil0327
Vergil0327

Can't integrate pytorch-mobile with react-native android app

❓ Questions and Help

Description

I want to integrate pytorch mobile in react-native app. though I can build successfully but get error after I invoke method

error messages: couldn't find DSO to load: libpytorch_jni.so SoSource 0: com.facebook.soloader.ApkSoSource[root=/data/data/com.example.pytorchmobile/lib-main flags = 1] ...

also try this, but not works

implementation ("com.facebook.react:react-native:+") {
        exclude module: 'fbjni-java-only'
}

According to this, [email protected] already upgrade android fbjni dependency to 0.2.2.

React Native version:

System: OS: macOS 11.4 CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @2.70GHz Memory: 96.56 MB / 8.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 12.22.6 - ~/.nvm/versions/node/v12.22.6/bin/node Yarn: 1.22.15 - /usr/local/bin/yarn npm: 6.14.15 - ~/.nvm/versions/node/v12.22.6/bin/npm Watchman: 2021.10.11.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /Users/vergil/.rvm/rubies/ruby-2.6.6/bin/pod SDKs: iOS SDK: Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0 Android SDK: API Levels: 23, 25, 26, 27, 28, 29, 30 Build Tools: 27.0.3, 28.0.3, 29.0.2, 30.0.2 System Images: android-26 | Google APIs Intel x86 Atom_64, android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 2020.3 AI-203.7717.56.2031.7784292 Xcode: 13.0/13A233 - /usr/bin/xcodebuild Languages: Java: 14.0.1 - /usr/bin/javac Python: 3.7.4 - /Users/vergil/opt/anaconda3/bin/python npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.66.0 => 0.66.0 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. use reate-react-native-library to create project
$ npx reate-react-native-library testproject
  1. follow instruction to add Gradle dependancies
  2. try this demo app example
  3. build android app & run

I also add these to testproject > example > android > app > build.gradle to fix "More than one file was found with OS independent path 'lib/x86/libfbjni.so'" issue and prevent pytorch model from compression in the APK

...

android {
     packagingOptions {
        pickFirst 'lib/arm64-v8a/libfbjni.so'
        pickFirst 'lib/armeabi-v7a/libfbjni.so'
        pickFirst 'lib/x86/libfbjni.so'
        pickFirst 'lib/x86_64/libfbjni.so'

        pickFirst 'lib/arm64-v8a/libc++_shared.so'
        pickFirst 'lib/armeabi-v7a/libc++_shared.so'
        pickFirst 'lib/x86/libc++_shared.so'
        pickFirst 'lib/x86_64/libc++_shared.so'
    }

    aaptOptions {
        // pytorch model
        noCompress 'pt'
        noCompress 'ptl'
    }
}

Expected Results

should load model and run successfully

Please note that this issue tracker is not a help form and this issue will be closed.

We have a set of listed resources available on the website. Our primary means of support is our discussion forum:

Vergil0327
Vergil0327

I see related discussion I think It takes some time to wait for react-native team to updating react-native master.

Activity icon
issue

Vergil0327 issue pytorch/pytorch

Vergil0327
Vergil0327

Can't integrate pytorch-mobile with react-native android app

❓ Questions and Help

Description

I want to integrate pytorch mobile in react-native app. though I can build successfully but get error after I invoke method

error messages: couldn't find DSO to load: libpytorch_jni.so SoSource 0: com.facebook.soloader.ApkSoSource[root=/data/data/com.example.pytorchmobile/lib-main flags = 1] ...

React Native version:

System: OS: macOS 11.4 CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @2.70GHz Memory: 96.56 MB / 8.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 12.22.6 - ~/.nvm/versions/node/v12.22.6/bin/node Yarn: 1.22.15 - /usr/local/bin/yarn npm: 6.14.15 - ~/.nvm/versions/node/v12.22.6/bin/npm Watchman: 2021.10.11.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /Users/vergil/.rvm/rubies/ruby-2.6.6/bin/pod SDKs: iOS SDK: Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0 Android SDK: API Levels: 23, 25, 26, 27, 28, 29, 30 Build Tools: 27.0.3, 28.0.3, 29.0.2, 30.0.2 System Images: android-26 | Google APIs Intel x86 Atom_64, android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 2020.3 AI-203.7717.56.2031.7784292 Xcode: 13.0/13A233 - /usr/bin/xcodebuild Languages: Java: 14.0.1 - /usr/bin/javac Python: 3.7.4 - /Users/vergil/opt/anaconda3/bin/python npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.66.0 => 0.66.0 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. use reate-react-native-library to create project
$ npx reate-react-native-library testproject
  1. follow instruction to add Gradle dependancies
  2. try this demo app example
  3. build android app & run

I also add these to testproject > example > android > app > build.gradle to fix "More than one file was found with OS independent path 'lib/x86/libfbjni.so'" issue and prevent pytorch model from compression in the APK

...

android {
     packagingOptions {
        pickFirst 'lib/arm64-v8a/libfbjni.so'
        pickFirst 'lib/armeabi-v7a/libfbjni.so'
        pickFirst 'lib/x86/libfbjni.so'
        pickFirst 'lib/x86_64/libfbjni.so'

        pickFirst 'lib/arm64-v8a/libc++_shared.so'
        pickFirst 'lib/armeabi-v7a/libc++_shared.so'
        pickFirst 'lib/x86/libc++_shared.so'
        pickFirst 'lib/x86_64/libc++_shared.so'
    }

    aaptOptions {
        // pytorch model
        noCompress 'pt'
        noCompress 'ptl'
    }
}

Expected Results

should load model and run successfully

Please note that this issue tracker is not a help form and this issue will be closed.

We have a set of listed resources available on the website. Our primary means of support is our discussion forum:

Activity icon
issue

Vergil0327 issue pytorch/pytorch

Vergil0327
Vergil0327

Can't integrate pytorch-mobile with react-native android app

❓ Questions and Help

Description

I want to integrate pytorch mobile in react-native app. though I can build successfully but get error after I invoke method

error messages: couldn't find DSO to load: libpytorch_jni.so SoSource 0: com.facebook.soloader.ApkSoSource[root=/data/data/com.example.pytorchmobile/lib-main flags = 1] ...

React Native version:

System: OS: macOS 11.4 CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @2.70GHz Memory: 96.56 MB / 8.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 12.22.6 - ~/.nvm/versions/node/v12.22.6/bin/node Yarn: 1.22.15 - /usr/local/bin/yarn npm: 6.14.15 - ~/.nvm/versions/node/v12.22.6/bin/npm Watchman: 2021.10.11.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /Users/vergil/.rvm/rubies/ruby-2.6.6/bin/pod SDKs: iOS SDK: Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0 Android SDK: API Levels: 23, 25, 26, 27, 28, 29, 30 Build Tools: 27.0.3, 28.0.3, 29.0.2, 30.0.2 System Images: android-26 | Google APIs Intel x86 Atom_64, android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 2020.3 AI-203.7717.56.2031.7784292 Xcode: 13.0/13A233 - /usr/bin/xcodebuild Languages: Java: 14.0.1 - /usr/bin/javac Python: 3.7.4 - /Users/vergil/opt/anaconda3/bin/python npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.66.0 => 0.66.0 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. use reate-react-native-library to create project
$ npx reate-react-native-library testproject
  1. follow instruction to add Gradle dependancies
  2. try this demo app example
  3. build android app & run

I also add these to testproject > example > android > app > build.gradle to fix "More than one file was found with OS independent path 'lib/x86/libfbjni.so'" issue and prevent pytorch model from compression in the APK

...

android {
     packagingOptions {
        pickFirst 'lib/arm64-v8a/libfbjni.so'
        pickFirst 'lib/armeabi-v7a/libfbjni.so'
        pickFirst 'lib/x86/libfbjni.so'
        pickFirst 'lib/x86_64/libfbjni.so'

        pickFirst 'lib/arm64-v8a/libc++_shared.so'
        pickFirst 'lib/armeabi-v7a/libc++_shared.so'
        pickFirst 'lib/x86/libc++_shared.so'
        pickFirst 'lib/x86_64/libc++_shared.so'
    }

    aaptOptions {
        // pytorch model
        noCompress 'pt'
        noCompress 'ptl'
    }
}

Expected Results

should load model and run successfully

Please note that this issue tracker is not a help form and this issue will be closed.

We have a set of listed resources available on the website. Our primary means of support is our discussion forum:

Activity icon
issue

Vergil0327 issue pytorch/pytorch

Vergil0327
Vergil0327

Can't integrate pytorch-mobile with react-native android app

❓ Questions and Help

Description

I want to integrate pytorch mobile in react-native app. though I can build successfully but get error after I invoke method

error messages: couldn't find DSO to load: libpytorch_jni.so SoSource 0: com.facebook.soloader.ApkSoSource[root=/data/data/com.example.pytorchmobile/lib-main flags = 1] ...

React Native version:

System: OS: macOS 11.4 CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @2.70GHz Memory: 96.56 MB / 8.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 12.22.6 - ~/.nvm/versions/node/v12.22.6/bin/node Yarn: 1.22.15 - /usr/local/bin/yarn npm: 6.14.15 - ~/.nvm/versions/node/v12.22.6/bin/npm Watchman: 2021.10.11.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /Users/vergil/.rvm/rubies/ruby-2.6.6/bin/pod SDKs: iOS SDK: Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0 Android SDK: API Levels: 23, 25, 26, 27, 28, 29, 30 Build Tools: 27.0.3, 28.0.3, 29.0.2, 30.0.2 System Images: android-26 | Google APIs Intel x86 Atom_64, android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 2020.3 AI-203.7717.56.2031.7784292 Xcode: 13.0/13A233 - /usr/bin/xcodebuild Languages: Java: 14.0.1 - /usr/bin/javac Python: 3.7.4 - /Users/vergil/opt/anaconda3/bin/python npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.66.0 => 0.66.0 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. use reate-react-native-library to create project
$ npx reate-react-native-library testproject
  1. follow instruction to add Gradle dependancies
  2. try this demo app example
  3. build android app & run

I also add these to testproject > example > android > app > build.gradle to fix "More than one file was found with OS independent path 'lib/x86/libfbjni.so'" issue and prevent pytorch model from compression in the APK

...

android {
     packagingOptions {
        pickFirst 'lib/arm64-v8a/libfbjni.so'
        pickFirst 'lib/armeabi-v7a/libfbjni.so'
        pickFirst 'lib/x86/libfbjni.so'
        pickFirst 'lib/x86_64/libfbjni.so'

        pickFirst 'lib/arm64-v8a/libc++_shared.so'
        pickFirst 'lib/armeabi-v7a/libc++_shared.so'
        pickFirst 'lib/x86/libc++_shared.so'
        pickFirst 'lib/x86_64/libc++_shared.so'
    }

    aaptOptions {
        // pytorch model
        noCompress 'pt'
        noCompress 'ptl'
    }
}

Expected Results

should load model and run successfully

Please note that this issue tracker is not a help form and this issue will be closed.

We have a set of listed resources available on the website. Our primary means of support is our discussion forum:

Activity icon
issue

Vergil0327 issue facebook/react-native

Vergil0327
Vergil0327

Can't integrate pytorch-mobile with react-native android app

Please provide all the information requested. Issues that do not follow this format are likely to stall.

Description

I want to integrate pytorch mobile in react-native app. though I can build successfully but get error after I invoke method

error messages: couldn't find DSO to load: libpytorch_jni.so SoSource 0: com.facebook.soloader.ApkSoSource[root=/data/data/com.example.pytorchmobile/lib-main flags = 1] ...

React Native version:

System: OS: macOS 11.4 CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @2.70GHz Memory: 96.56 MB / 8.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 12.22.6 - ~/.nvm/versions/node/v12.22.6/bin/node Yarn: 1.22.15 - /usr/local/bin/yarn npm: 6.14.15 - ~/.nvm/versions/node/v12.22.6/bin/npm Watchman: 2021.10.11.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /Users/vergil/.rvm/rubies/ruby-2.6.6/bin/pod SDKs: iOS SDK: Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0 Android SDK: API Levels: 23, 25, 26, 27, 28, 29, 30 Build Tools: 27.0.3, 28.0.3, 29.0.2, 30.0.2 System Images: android-26 | Google APIs Intel x86 Atom_64, android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 2020.3 AI-203.7717.56.2031.7784292 Xcode: 13.0/13A233 - /usr/bin/xcodebuild Languages: Java: 14.0.1 - /usr/bin/javac Python: 3.7.4 - /Users/vergil/opt/anaconda3/bin/python npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.66.0 => 0.66.0 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. use reate-react-native-library to create project
$ npx reate-react-native-library testproject
  1. follow instruction to add Gradle dependancies
  2. try this demo app example
  3. build android app & run

Expected Results

should load model and run successfully

Snack, code example, screenshot, or link to a repository:

I also add these to testproject > example > android > app > build.gradle to fix "More than one file was found with OS independent path 'lib/x86/libfbjni.so'" issue and prevent pytorch model from compression in the APK

...

android {
     packagingOptions {
        pickFirst 'lib/arm64-v8a/libfbjni.so'
        pickFirst 'lib/armeabi-v7a/libfbjni.so'
        pickFirst 'lib/x86/libfbjni.so'
        pickFirst 'lib/x86_64/libfbjni.so'

        pickFirst 'lib/arm64-v8a/libc++_shared.so'
        pickFirst 'lib/armeabi-v7a/libc++_shared.so'
        pickFirst 'lib/x86/libc++_shared.so'
        pickFirst 'lib/x86_64/libc++_shared.so'
    }

    aaptOptions {
        // pytorch model
        noCompress 'pt'
        noCompress 'ptl'
    }
}