[BUG] Failed to load image-classification model microsoft/resnet-50 #1593

Closed
opened 2026-02-05 02:28:03 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @yyyyyyyysssss on GitHub (Nov 9, 2023).

The bug

image
Unable to pass huggingface.co Download,Is there any other channel to download to local?

The OS that Immich Server is running on

Docker version 23.0.1, build a5ee5b1

Version of Immich Server

release

Version of Immich Mobile App

release

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

version: "3.8"

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    command: ["start.sh", "immich"]
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    depends_on:
      - redis
      - database
      - typesense
    restart: always

  immich-microservices:
    container_name: immich_microservices
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    # extends:
    #   file: hwaccel.yml
    #   service: hwaccel
    command: ["start.sh", "microservices"]
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    depends_on:
      - redis
      - database
      - typesense
    restart: always

  immich-machine-learning:
    container_name: immich_machine_learning
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    volumes:
      - /data/immich-app/model-cache:/cache
    env_file:
      - .env
    restart: always

  immich-web:
    container_name: immich_web
    image: ghcr.io/immich-app/immich-web:${IMMICH_VERSION:-release}
    env_file:
      - .env
    restart: always

  typesense:
    container_name: immich_typesense
    image: typesense/typesense:0.24.1@sha256:9bcff2b829f12074426ca044b56160ca9d777a0c488303469143dd9f8259d4dd
    environment:
      - TYPESENSE_API_KEY=${TYPESENSE_API_KEY}
      - TYPESENSE_DATA_DIR=/data
      # remove this to get debug messages
      - GLOG_minloglevel=1
    volumes:
      - /data/immich-app/tsdata:/data
    restart: always

  redis:
    container_name: immich_redis
    image: redis:6.2-alpine@sha256:70a7a5b641117670beae0d80658430853896b5ef269ccf00d1827427e3263fa3
    restart: always

  database:
    container_name: immich_postgres
    image: postgres:14-alpine@sha256:28407a9961e76f2d285dc6991e8e48893503cc3836a4755bbc2d40bcc272a441
    env_file:
      - .env
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
    volumes:
      - /data/immich-app/pgdata:/var/lib/postgresql/data
    restart: always

  immich-proxy:
    container_name: immich_proxy
    image: ghcr.io/immich-app/immich-proxy:${IMMICH_VERSION:-release}
    ports:
      - 2283:8080
    depends_on:
      - immich-server
      - immich-web
    restart: always

Your .env content

# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION=/data/share/photo

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secrets for postgres and typesense. You should change these to random passwords
TYPESENSE_API_KEY=836fee83b6eec2bde34279fa38e5b15e
DB_PASSWORD=postgres

# The values below this line do not need to be changed
###################################################################################
DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_DATABASE_NAME=immich

REDIS_HOSTNAME=immich_redis

Reproduction steps

Retry failed

Additional information

No response

Originally created by @yyyyyyyysssss on GitHub (Nov 9, 2023). ### The bug ![image](https://github.com/immich-app/immich/assets/105531316/05526232-b421-48bd-823e-0def686fa000) Unable to pass huggingface.co Download,Is there any other channel to download to local? ### The OS that Immich Server is running on Docker version 23.0.1, build a5ee5b1 ### Version of Immich Server release ### Version of Immich Mobile App release ### Platform with the issue - [X] Server - [X] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML version: "3.8" services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} command: ["start.sh", "immich"] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro env_file: - .env depends_on: - redis - database - typesense restart: always immich-microservices: container_name: immich_microservices image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} # extends: # file: hwaccel.yml # service: hwaccel command: ["start.sh", "microservices"] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro env_file: - .env depends_on: - redis - database - typesense restart: always immich-machine-learning: container_name: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} volumes: - /data/immich-app/model-cache:/cache env_file: - .env restart: always immich-web: container_name: immich_web image: ghcr.io/immich-app/immich-web:${IMMICH_VERSION:-release} env_file: - .env restart: always typesense: container_name: immich_typesense image: typesense/typesense:0.24.1@sha256:9bcff2b829f12074426ca044b56160ca9d777a0c488303469143dd9f8259d4dd environment: - TYPESENSE_API_KEY=${TYPESENSE_API_KEY} - TYPESENSE_DATA_DIR=/data # remove this to get debug messages - GLOG_minloglevel=1 volumes: - /data/immich-app/tsdata:/data restart: always redis: container_name: immich_redis image: redis:6.2-alpine@sha256:70a7a5b641117670beae0d80658430853896b5ef269ccf00d1827427e3263fa3 restart: always database: container_name: immich_postgres image: postgres:14-alpine@sha256:28407a9961e76f2d285dc6991e8e48893503cc3836a4755bbc2d40bcc272a441 env_file: - .env environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} volumes: - /data/immich-app/pgdata:/var/lib/postgresql/data restart: always immich-proxy: container_name: immich_proxy image: ghcr.io/immich-app/immich-proxy:${IMMICH_VERSION:-release} ports: - 2283:8080 depends_on: - immich-server - immich-web restart: always ``` ### Your .env content ```Shell # You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables # The location where your uploaded files are stored UPLOAD_LOCATION=/data/share/photo # The Immich version to use. You can pin this to a specific version like "v1.71.0" IMMICH_VERSION=release # Connection secrets for postgres and typesense. You should change these to random passwords TYPESENSE_API_KEY=836fee83b6eec2bde34279fa38e5b15e DB_PASSWORD=postgres # The values below this line do not need to be changed ################################################################################### DB_HOSTNAME=immich_postgres DB_USERNAME=postgres DB_DATABASE_NAME=immich REDIS_HOSTNAME=immich_redis ``` ### Reproduction steps ```bash Retry failed ``` ### Additional information _No response_
Author
Owner
@aviv926 commented on GitHub (Nov 10, 2023): 1. You can use VPN to solve the problem 2. You can download the model from here and push it yourself to your server https://clip-as-service.s3.us-east-2.amazonaws.com/models-436c69702d61732d53657276696365/onnx/RN50/textual.onnx https://clip-as-service.s3.us-east-2.amazonaws.com/models-436c69702d61732d53657276696365/onnx/RN50/visual.onnx OR https://huggingface.co/immich-app/RN50__openai/tree/main
Author
Owner

@chAwater commented on GitHub (Dec 13, 2023):

Similar to #5134
Temporary solution (outdated): https://github.com/immich-app/immich/issues/4117#issuecomment-1772790612

@chAwater commented on GitHub (Dec 13, 2023): Similar to #5134 Temporary solution (**outdated**): https://github.com/immich-app/immich/issues/4117#issuecomment-1772790612
Author
Owner

@aviv926 commented on GitHub (Dec 14, 2023):

Similar to #5134
Temporary solution: https://github.com/immich-app/immich/issues/4117#issuecomment-1772790612

Are you still experiencing this problem? In the new versions, the download source of the models is different so that you don't have to experience this problem.

What version are you on?

@aviv926 commented on GitHub (Dec 14, 2023): > Similar to #5134 > Temporary solution: https://github.com/immich-app/immich/issues/4117#issuecomment-1772790612 Are you still experiencing this problem? In the new versions, the download source of the models is different so that you don't have to experience this problem. What version are you on?
Author
Owner

@chAwater commented on GitHub (Dec 14, 2023):

I'm sorry that I just found the "Temporary solution" is outdated.

@aviv926 Yes, I'm still experiencing this problem (actually, I'm facing the same problem as #5134)

And I have successful downloaded the buffalo_l for facial-recognition,
but I'm still working on the models for image-classification and clip.

@chAwater commented on GitHub (Dec 14, 2023): I'm sorry that I just found the "Temporary solution" is outdated. @aviv926 Yes, I'm still experiencing this problem (actually, I'm facing the same problem as #5134) And I have successful downloaded the `buffalo_l` for `facial-recognition`, but I'm still working on the models for `image-classification` and `clip`.
Author
Owner

@mertalev commented on GitHub (Dec 24, 2023):

Closing as we've removed this job altogether.

@mertalev commented on GitHub (Dec 24, 2023): Closing as we've removed this job altogether.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#1593