Giter Club home page Giter Club logo

Comments (4)

duhaime avatar duhaime commented on May 12, 2024

@cncoleman Thanks for reaching out! This is kind of interesting--my hunch is that the Docker image you are interacting with was created before 19947f3#diff-399d4153eb7850d9e753a39ce95351db landed. That's the commit that specified the tensorflow version should be <=2.x (e.g. it specified that tensorflow should be 1.x).

Recommended path forward

If I were you, I would destroy the image: docker rmi pixplot. Then I'd run a fresh clone and create the docker image again following the steps in the readme.

For the brave and true

Alternatively, you could drop a shell into your container (the instance of your pixplot image) by running:

# create an instance of the pixplot image
docker run -dit \
  -v $(pwd)/output:/pixplot/output \
  -v /Users/my_user/Desktop/my_images:/pixplot/images \
  -p 5000:5000 \
  pixplot

# list all containers and look for the most recent pixplot container
docker ps -a 

# drop a shell into the container
docker exec -it {{ CONTAINER_ID, e.g. c9989785d56c }} /bin/bash

Then, once you're inside the container, you could manually update the container:

# upgrade setuptools
pip install setuptools -U 

# install tensorflow 1.x
pip install tensorflow==1.15.0

# run all the commands manually
cd pixplot && python3.6 utils/process_images.py images/*.jpg && \
  python3.6 -m http.server 5000

All of that said, I would just reclone and rebuild the image and container if I were you!

If you give either approach a go, I'd be happy to help with any follow up questions you might have!

from pix-plot.

cncoleman avatar cncoleman commented on May 12, 2024

@duhaime Thank you for your help. I was actually using the recent container image but I did as you instructed. "Recommened Path Forward." It threw the same errors. I went into requirements.txt and changed it to tensorflow>=1.8.0,<2.0.0 (e.g. I removed the = so it 2.0 is not an option). That worked much better. The only error I see now is
ERROR: tensorflow 1.15.0 has requirement numpy<2.0,>=1.16.0, but you'll have numpy 1.14.3 which is incompatible.
At this point perhaps I'll move forward with your suggestion to drop a shell into the container and edit. Will let you know.

from pix-plot.

cncoleman avatar cncoleman commented on May 12, 2024

Works to remove the "<=" and replace with "<" while also updating setuptools in the container.

from pix-plot.

duhaime avatar duhaime commented on May 12, 2024

!egads! that's a bad typo! You're quite right, just < is intended. Thank you for identifying that!

from pix-plot.

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.