Code Monkey home page Code Monkey logo

Comments (6)

ChenglongMa avatar ChenglongMa commented on August 19, 2024 1

Hi @ergo70,

I'm glad your problem was solved.

Have a nice day :)

from skintoneclassifier.

ChenglongMa avatar ChenglongMa commented on August 19, 2024

Hi @ergo70,

Thanks for your feedback.

I tried on my side and in a Google Colab session, but it works well.

Can you give me more details to reproduce this problem?
You can also check the Colab example here: Google Colab. It is a running example, so that you can see more intuitively how to use this library.

Thanks!

from skintoneclassifier.

ergo70 avatar ergo70 commented on August 19, 2024

I tried with your minimal example:

pip uninstall skin-tone-classifier
pip install skin-tone-classifier

skin-tone-classifier Version is 1.1.2

import stone

image_path = "https://raw.githubusercontent.com/ChenglongMa/SkinToneClassifier/main/docs/demo.png" # Use the demo.png stored in my repo

result = stone.process(image_path, image_type="color", return_report_image=False)

Traceback (most recent call last):
File "c:\Devel\SkinToneAPI\stonetest.py", line 5, in
result = stone.process(image_path, image_type="color", return_report_image=True)
AttributeError: module 'stone' has no attribute 'process'

Maybe because I try it on Windows 11?

from skintoneclassifier.

ergo70 avatar ergo70 commented on August 19, 2024

I now tried it on WSL2 Ubuntu 22.04.3 LTS / Python 3.10.12 and it works without problems.

As said, the stone.exe Script also works on Windows. The error occurs only when I try the library in code.

from skintoneclassifier.

ChenglongMa avatar ChenglongMa commented on August 19, 2024

Hi @ergo70,

Are you using Anaconda, Miniconda, or pure Python?
I have no Win 11 devices, but I will try creating another sandbox environment to reproduce the problem.

BTW, are there other folders or modules in your project named stone?

Thanks!

from skintoneclassifier.

ergo70 avatar ergo70 commented on August 19, 2024

Obviously, I had a stone.py leftover from earlier tests. Now it works... ;-\

Sorry for tripping over this.

from skintoneclassifier.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.