Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,13 @@
*.pyc
.venv/
__pycache__/

## ide / dev
.idea/
.vscode/
.venv
.python-version

## ds
.DS_Store
Thumbs.db
22 changes: 10 additions & 12 deletions app/routers/explain_router.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
import logging
from fastapi import APIRouter, UploadFile, File, HTTPException, Request, Depends
from typing import Optional
import httpx
import asyncio
import logging
from pathlib import Path
from app.schemas.model_response import ModelResponse
import torch
from torch.utils.data import DataLoader

import cv2
from pydantic import BaseModel
import httpx
import numpy as np
import torch
import torchvision.transforms as transforms
from PIL import Image
from app.utils.helpers import get_chip_from_img
from app.utils.pairx.core import explain
from app.models.model_handler import ModelHandler
import numpy as np
from fastapi import APIRouter, HTTPException, Request, Depends
from pydantic import BaseModel
from pairx import explain

from app.models.model_handler import ModelHandler
from app.utils.helpers import get_chip_from_img

logger = logging.getLogger(__name__)

Expand Down
1 change: 0 additions & 1 deletion app/utils/pairx
Submodule pairx deleted from 731904
1 change: 1 addition & 0 deletions docker/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ RUN apt-get update && apt-get install -y \
libgl1-mesa-glx \
libglib2.0-dev \
libglib2.0-0 \
git \
&& rm -rf /var/lib/apt/lists/*

# Set default timezone
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ typing-extensions==4.12.2
pyyaml==6.0.1
PytorchWildlife==1.2.3
zennit==0.5.1
git+https://github.com/WildMeOrg/pairx.git#egg=pairx