Create YOLACT++ Google Colaboratory demo#252
Conversation
|
@mrm8488 where is the google colab file , is it only the inference pipeline or even training is available . Wonderful thought in getting into the colab |
|
It's in the root dir. It's for inference. |
|
@mrm8488 thanks a lot i was looking into wrong directory |
breznak
left a comment
There was a problem hiding this comment.
Hi @mrm8488 , this a is great work! 👍 Thanks for setting the Collab up.
I've tested and reviewed your PR,
- mostly some formatting improvement suggestions
- I got the image upload fail on me (FF, linux)
- would be good to include some out of the box images to test (already avail in the repo)
| "colab": {} | ||
| }, | ||
| "source": [ | ||
| "!mkdir weights" |
There was a problem hiding this comment.
can we merge the
git clone
cd yolact
mkdir weights
into one execution block?
| "colab": {} | ||
| }, | ||
| "source": [ | ||
| "cd external/DCNv2" |
There was a problem hiding this comment.
I think this should be part of the section below
"# Compile deformable convolutional layers (from DCNv2) to use YOLACT++ version"
| "colab_type": "text" | ||
| }, | ||
| "source": [ | ||
| "# Download the model weights" |
There was a problem hiding this comment.
You might add more details from the Readme, ie the different pretrained nets and their FPS/mAP as a documentation here. Ofc only one net is downloaded
| "colab": {} | ||
| }, | ||
| "source": [ | ||
| "from google.colab import files\n", |
There was a problem hiding this comment.
I'm getting an err executing this cell:
Upload widget is only available when the cell has been executed in the current browser session. Please rerun this cell to enable.
---------------------------------------------------------------------------
MessageError Traceback (most recent call last)
<ipython-input-12-354be791d27e> in <module>()
1 from google.colab import files
2
----> 3 uploaded = files.upload()
4 pic_names = list(uploaded.keys())
5 for pic_name in pic_names:
2 frames
/usr/local/lib/python3.6/dist-packages/google/colab/_message.py in read_reply_from_input(message_id, timeout_sec)
104 reply.get('colab_msg_id') == message_id):
105 if 'error' in reply:
--> 106 raise MessageError(reply['error'])
107 return reply.get('data', None)
108
MessageError: TypeError: google.colab._files is undefined
Running on FF on linux
| "colab_type": "text" | ||
| }, | ||
| "source": [ | ||
| "# Detect objects in the uploaded pictures" |
There was a problem hiding this comment.
...as the custom image upload may fail, offer a cell running detection on already available image(s) in the repo.
|
I think this is a great idea! It looks like Adam Kelly has also created a collab notebook that also has video support: https://colab.research.google.com/drive/1ncRxvmNR-iTtQCscj2UFSGV8ZQX_LN0M Should we merge the functionality of both notebooks? |
|
I'm not sure if the author of this PR is still active, @mrm8488 ? Anyway, the Adam's notebook worked great for me!
|
|
@breznak He reached out to me about the existence of it, so I can ask him. Worst case we can just link it right? Or is it better to have it in the repo (in which case we can roll our own / update this one). |
|
Ofc, you can do you decide with my PR. License is the same as this repo. |
true, we can always put a link in the Readme.
imho slightly better:
|
|
@mrm8488 @breznak @dbolya hi thanks for opensourcing and sharing the colab to run the yolact++ but when i try to do the same by myself by creating a repo and uploading all the files and changing the git clone from author to my repo and run it i get error in evaluation as mentioned below "File "/content/yolact_adas/backbone.py", line 11, in DCN |
|
really interesting and helpful |
|
@dbolya can we merge this? |
I think this is so helpful to get people into YOLACT/YOLACT++ in the easiest way!
Just one click and everything is ready :)