Skip to content
Open
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.pyc
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM nvcr.io/nvidia/pytorch:20.12-py3
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8

RUN apt update -y
RUN apt-get upgrade -y
RUN apt-get install libgl1-mesa-glx -y

RUN pip install torch opencv-python torchvision tqdm scikit-image keras tensorflow-gpu
RUN pip uninstall h5py -y
RUN pip install 'h5py<3.0.0'
COPY . .
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
*** https://www.markdownguide.org/basic-syntax/#reference-style-links
-->

docker build . --tag style:latest

docker run --shm-size=1g --ulimit memlock=-1 --ulimit stack=67108864 --gpus all -it --entrypoint bash style:latest



<!-- PROJECT LOGO -->
Expand Down
6 changes: 3 additions & 3 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
ims_config = {
"cat.jpg": {
"seg_models": ["VOC"], # ["ADE20k", "Cityscapes", "VOC", "resnet_VOC"]
"styles": ["cartoon.jpg", "mondrian.jpg", "misty.jpg"],
"styles": ["cartoon.jpg", "mondrian.jpg", "van_gogh.jpg"],
"class": [8] # One per model
},
"ville.png": {
Expand All @@ -38,12 +38,12 @@
},
"chicago.jpg": {
"seg_models": ["ADE20k"],
"styles": ["van_gogh.jpg"],
"styles": ["mondrian.jpg"],
"class": [2] # One per model
},
"building.jpg": {
"seg_models": ["ADE20k"],
"styles": ["misty.jpg"],
"styles": ["van_gogh.jpg"],
"class": [1] # One per model
}
}
Expand Down
Binary file added output/segmentations/building_ADE20k.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified output/segmentations/cat_VOC.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.