Understood. So those lines are actually fine in Dockerfile.
I debugged further to look into issue your code (#59996) is facing and this is what I found:
Traceback (most recent call last):
File "run.py", line 332, in <module>
run()
[.... removed ....]
File "/usr/local/lib/python3.6/dist-packages/keras/engine/topology.py", line 1364, in __init__
name=self.name)
File "/usr/local/lib/python3.6/dist-packages/keras/backend/tensorflow_backend.py", line 504, in placeholder
x = tf.placeholder(dtype, shape=shape, name=name)
AttributeError: module 'tensorflow' has no attribute 'placeholder'
This is happening due to wrong (?) version of tensorflow used in your submission v/s the one you may be using on your system. This can be mitigated by using tensorflow v1.4 or by disabling v2 behaviour, etc. More: https://github.com/theislab/scgen/issues/14, https://stackoverflow.com/questions/37383812/tensorflow-module-object-has-no-attribute-placeholder
When running manually the next issue I came across is, you need to add import skimage
:
Traceback (most recent call last):
File "run.py", line 332, in <module>
run()
File "run.py", line 304, in run
predictions=evaluate_coco(model, image_ids=image_ids)
File "run.py", line 220, in evaluate_coco
image = load_image(image_id)
File "run.py", line 162, in load_image
image = skimage.io.imread(path)
NameError: name 'skimage' is not defined
After that your submission can start running immediately.
Running COCO evaluation on 1959 images.
0
1
2
3
4
5
6
7
8
[....] (I didn't run further)
You can fix based on above remarks and start submitting your solution.
In case you want to debug properly on your desktop directly and are comfortable with Docker, you can use aicrowd-repo2docker to generate image & execute ./run.sh
(More: Which docker image is used for my submissions?).
Let us know in case we can provide any other feedback. Also, it will be good to know which starter kit/initial repository you referred for making the submission, so we can add some more debug/testing scripts to the same.
All the best with the competition!