jordipons / musicnn

Pronounced as "musician", musicnn is a set of pre-trained deep convolutional neural networks for music audio tagging.
ISC License
599 stars 87 forks source link

Update the project to current numpy and librosa #25

Open Dazzid opened 11 months ago

Dazzid commented 11 months ago

Hi Jordi, We are trying to run musicnn but are having issues with both libraries numpy and librosa versions. The problem is numpy==1.14.5 which is quite deprecated, and it is needed to run librosa==0.7.0. Any suggestion on how to fix it?

Dazzid commented 11 months ago

Ok, I managed to run the musicnn by moving all the docker image back to 2020

Dockerfile

# Use an official Miniconda3 image as a parent image
FROM continuumio/miniconda3:4.10.3

# Set the working directory to /app
WORKDIR /app

# Create a conda environment with Python 3.6 and activate it
RUN conda create --name myenv python=3.6
SHELL ["conda", "run", "-n", "myenv", "/bin/bash", "-c"]

# Install any needed packages specified in requirements.txt
RUN conda install -y numpy==1.14.5

# Make port 80 available to the world outside this container
EXPOSE 80

# Define environment variable
ENV NAME World

# Copy the current directory contents into the container at /app
COPY . /app