Giter VIP home page Giter VIP logo

Comments (4)

GHUFRAN-HYDER avatar GHUFRAN-HYDER commented on May 27, 2024 1

Hi @javid235 and @javid235
Here's the soloution: -

Step 1: Install Miniconda/Anaconda
Download Miniconda/Anaconda from the official website: Follow the installation instructions for your operating system.

Step 2: Create a New Environment with Python 3.6
Open a terminal or command prompt and run the following command to create a new environment named "handwriting-env" with Python 3.6:
conda create --name handwriting-env python=3.6

Step 3: Activate the New Environment
Activate the newly created environment. On Windows, use:
conda activate handwriting-env

Step 4: Install Dependencies
Now, navigate to your project directory and run your code:
cd path/to/your/project
Make sure you are in the activated environment, then install the required dependencies:
pip install –r requirements.txt

Step 5: Run the Code
python demo.py

Make sure you're using the correct paths in the commands above. Adjust them based on your actual project structure.
These steps create a Conda environment, activate it, install the necessary dependencies, and run your code in a version-controlled environment. If you encounter any issues or have further questions, feel free to ask!

from handwriting-synthesis.

AceBeaker2 avatar AceBeaker2 commented on May 27, 2024

same issue

from handwriting-synthesis.

bmccabe2 avatar bmccabe2 commented on May 27, 2024

I had the same issue. The code is specifically trying to use Tensorflow 1.6.0 which will only work on Pyhon3.6.
Here's what worked for me:

  • install microconda (Python package/env manager)
  • create a new env with python=3.6
  • pip3 install the dependencies and make sure you pip3 install tensorflow=1.6.0 (other dependencies did not need specific version for me)

(I think you can also set up unique python3 envs using pypi envs but I've not tried)
image

from handwriting-synthesis.

Fardenco avatar Fardenco commented on May 27, 2024

It's because tensoflow.contrib does not exist anymore in tensorflow 2.0, and as bmccabe2 said, this code is written for tensorflow 1.6. Tensorflow 1.6 is not available anymore on python version > 3.6, this is why you need to use python 3.6. If you use a newer version, you'll install tensorflow >2.0, and then you'll get this error

from handwriting-synthesis.

Related Issues (20)

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.