Questions tagged pytorch

Explore the latest questions and answers asked by our top developers.

How to install pytorch in docker file on NVIDIA Jetson Xavier NX

As title mentioned, since I want to form a docker image which include my application using pytorch, the following is my Dockerfile: From python:3.6-slim RUN pip3 install numpy==1.19.4 RUN pip3 install opencv-python-headless RUN pip3 install grpcio RUN pip3 install protobuf RUN apt-get update RUN apt-get install -y libopenblas-base libopenmpi-dev libopenmpi2 #RUN apt-get install -y libgfortran3 […]

By Edward Chang
Published
Categorised as docker, nvidia-jetson, pytorch Tagged , ,

Is there an image that I could use to reduce size and use pytorch too?

My dockerfile I have made this dockerfile for a pytorch application, however, i am facing this error. It works fine when i use it with image "bitnami/pytorch" or "armswdev/pytorch-arm-neoverse-n1:r21.09-torch-1.9.0-onednn-acl", but the size exceeds 4 GB in the latter and 7 GB in the former. I need to reduce it to 1.5 GB at max. FROM […]

By vivek singh
Published
Categorised as docker, pytorch Tagged ,

Docker cant install pytorch 1.9.1 with cuda 10.2

I am new to docker and I am trying to create a custom image for a streamlit webapp from this base image: pymesh/pymesh The Dockerfile looks like this: FROM pymesh/pymesh:latest WORKDIR /app COPY requirements.txt ./requirements.txt RUN pip install -r requirements.txt EXPOSE 8501 COPY . /app ENTRYPOINT ["streamlit", "run"] CMD ["dockerapp.py"] When I try to create […]

By Aman Savaria
Published
Categorised as docker, pytorch Tagged ,

make: *** No rule to make target `build’. Stop

Hi I never used docker before and so confused. I want to run the model from this tutorial: https://towardsdatascience.com/counsel-chat-bootstrapping-high-quality-therapy-data-971b419f33da They only said to run make build but I get this error: make: *** No rule to make target `build’. Stop. P.S. I’m using an IOS system. This is the unzipped folder: Source: Docker Questions

By Aya
Published
Categorised as docker, ios, python, pytorch Tagged , , ,

Flownet2 pytorch installation issue

I was following the following tutorial flownet2-pytorch to get optical flow data from video. However, when trying to launch the docker file I got the following error docker-error. Source: Docker Questions

By danix
Published
Categorised as docker, python, pytorch Tagged , ,

How to show picture in docker

my pycharm connect to a docker python interpreter. if i run this code in pycharm import os import gym import matplotlib.pyplot as plt from IPython import display os.environ[‘DISPLAY’] = ‘:0’ env = gym.make(‘LunarLander-v2′) env.reset() img = plt.imshow(env.render(mode=’rgb_array’)) done = False while not done: action = env.action_space.sample() observation, reward, done, _ = env.step(action) img.set_data(env.render(mode=’rgb_array’)) display.display(plt.gcf()) display.clear_output(wait=True) […]

By radeon 1279
Published
Categorised as docker, python, pytorch, ssh Tagged , , ,

How do I use separate types of gpus (e.g. 1080Ti vs 2080Ti) on the same docker image without needing to re-run `python setup.py develop`?

I’m using a pytorch-based repository where the installation step specifies to run python setup.py develop with this setup.py file. I have been running the repository fine with 1080Ti and 1080 GPUs using a docker image which clones the repo and runs the setup.py script in the build process. The following are files copied from my […]

By darrenjkt
Published
Categorised as docker, gpu, nvidia, python, pytorch Tagged , , , ,

Error installing PyTorch when building Docker image

I run into this error when trying to build a Docker image. My requirements.txt file only contains ‘torch==1.9.0’. This version clearly exists, but after downloading for a minute or longer, this error pops up. Source: Docker Questions

By Clueless
Published
Categorised as docker, docker-image, pytorch Tagged , ,

How do I create a new docker image based on an NVIDIA NGC image, but including more Python packages?

The NVIDIA NGC PyTorch docker images provide fast and stable versions of PyTorch for NVIDIA GPUs. However, they do not have many of the Python packages that I need for training neural networks. How can I create a new docker image based on one of the NVIDIA NGC PyTorch docker images, but adding a list […]

By user550701
Published
Categorised as docker, nvidia, pytorch Tagged , ,

get Error about install pytorch-mpi when doing environment configuration in a essay

I’m tring to run the code in an Federated Learning essay but get Error about install pytorch-mpi when doing environment configuration. I ran the Docker file the essay provided to do environment configuration. This is the source code https://github.com/epfml/federated-learning-public-code Service ‘pytorch-mpi’ failed to build: The command ‘/bin/sh -c cd pytorch && git checkout v1.6.0 && […]

1 2 3 4 8

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq